summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-06 10:56:31 +0100
committerGeorg Brandl <georg@python.org>2014-11-06 10:56:31 +0100
commit96dbe1ac542311207d930320b782f1aa4072dfda (patch)
treee0de636628fbc04fa55e470c7e6ba402bb88ebef /pygments
parent7f412caf248c9c4135144aaeca0f5d1a49f4471a (diff)
downloadpygments-96dbe1ac542311207d930320b782f1aa4072dfda.tar.gz
Groovy: recognize triple quoted strings
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/jvm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py
index 37b99f9a..7b422253 100644
--- a/pygments/lexers/jvm.py
+++ b/pygments/lexers/jvm.py
@@ -491,6 +491,8 @@ class GroovyLexer(RegexLexer):
(r'(class|interface)(\s+)', bygroups(Keyword.Declaration, Text),
'class'),
(r'(import)(\s+)', bygroups(Keyword.Namespace, Text), 'import'),
+ (r'""".*?"""', String.Double),
+ (r"'''.*?'''", String.Single),
(r'"(\\\\|\\"|[^"])*"', String.Double),
(r"'(\\\\|\\'|[^'])*'", String.Single),
(r'\$/((?!/\$).)*/\$', String),