1. larvacea
  2. pygments-main

Commits

Georg Brandl  committed b3e9153

Fix degenerate regex in Scala lexer (#671).

  • Participants
  • Parent commits f6f65db
  • Branches default

Comments (0)

Files changed (2)

File CHANGES

View file
  • Ignore whitespace
 
 - Fix Lua "class" highlighting: it does not have classes (#665).
 
+- Fix degenerate regex in Scala lexer (#671).
+
 
 Version 1.4
 -----------

File pygments/lexers/compiled.py

View file
  • Ignore whitespace
             (r'(true|false|null)\b', Keyword.Constant),
             (r'(import|package)(\s+)', bygroups(Keyword, Text), 'import'),
             (r'(type)(\s+)', bygroups(Keyword, Text), 'type'),
-            (r'"""(?:.|\n)*?"""', String),
+            (r'""".*?"""', String),
             (r'"(\\\\|\\"|[^"])*"', String),
             (ur"'\\.'|'[^\\]'|'\\u[0-9a-f]{4}'", String.Char),
 #            (ur'(\.)(%s|%s|`[^`]+`)' % (idrest, op), bygroups(Operator,