Commits

Georg Brandl committed b3e9153

Fix degenerate regex in Scala lexer (#671).

  • Participants
  • Parent commits f6f65db

Comments (0)

Files changed (2)

 
 - 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

             (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,