diff options
author | Nicolas R?mond <nremond+bitbucket@gmail.com> | 2012-09-05 19:04:57 +0200 |
---|---|---|
committer | Nicolas R?mond <nremond+bitbucket@gmail.com> | 2012-09-05 19:04:57 +0200 |
commit | e2b385ab0a41e3ca21e1575f291c0ff2eb39f65e (patch) | |
tree | 570c5d07f40f23f599686b6b8d2b3c0cd1b3a86d /pygments/lexers/jvm.py | |
parent | 7c371dd21127e55cbbee5daf955a0974115fc65a (diff) | |
download | pygments-e2b385ab0a41e3ca21e1575f291c0ff2eb39f65e.tar.gz |
fix triple-quote coloring in Scala
Diffstat (limited to 'pygments/lexers/jvm.py')
-rw-r--r-- | pygments/lexers/jvm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index c8caa2c0..008fb4f4 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -159,7 +159,7 @@ class ScalaLexer(RegexLexer): (r'(true|false|null)\b', Keyword.Constant), (r'(import|package)(\s+)', bygroups(Keyword, Text), 'import'), (r'(type)(\s+)', bygroups(Keyword, Text), 'type'), - (r'""".*?"""', String), + (r'""".*?"""(?!")', String), (r'"(\\\\|\\"|[^"])*"', String), (r"'\\.'|'[^\\]'|'\\u[0-9a-f]{4}'", String.Char), # (ur'(\.)(%s|%s|`[^`]+`)' % (idrest, op), bygroups(Operator, |