diff options
author | Yannick Loiseau <me@yloiseau.net> | 2014-04-05 14:26:03 +0200 |
---|---|---|
committer | Yannick Loiseau <me@yloiseau.net> | 2014-04-05 14:26:03 +0200 |
commit | 9c59d9287fd0d1e5b4cf08ea8deacaf7b60031bc (patch) | |
tree | 1cc6febba4794edb329b43957b68e870ae5f8e3b | |
parent | 3b16de7ddaab4ba4aeef5ba78873d8373c5c78fd (diff) | |
download | pygments-9c59d9287fd0d1e5b4cf08ea8deacaf7b60031bc.tar.gz |
change escaped string
-rw-r--r-- | pygments/lexers/golo.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pygments/lexers/golo.py b/pygments/lexers/golo.py index ca373a02..02fbb5b7 100644 --- a/pygments/lexers/golo.py +++ b/pygments/lexers/golo.py @@ -79,11 +79,11 @@ class GoloLexer(RegexLexer): (r'"""', String, combined('stringescape', 'triplestring')), (r'"', String, combined('stringescape', 'doublestring')), - (r"'", String, 'singlestring'), + (r"'", String, combined('stringescape', 'singlestring')), (r'----', String.Doc, 'doc'), ], - + 'funcname': [ (r'`?[a-zA-Z_][a-z$A-Z0-9_]*', Name.Function, '#pop'), ], @@ -111,12 +111,10 @@ class GoloLexer(RegexLexer): ], 'doublestring': [ (r'"', String.Double, '#pop'), - (r'\\\\|\\"|\\n', String.Escape), include('string'), ], 'singlestring': [ (r"'", String, '#pop'), - (r"\\\\|\\'|\\n", String.Escape), include('string'), ], 'doc': [ |