diff options
author | Yannick Loiseau <me@yloiseau.net> | 2014-04-05 15:30:22 +0200 |
---|---|---|
committer | Yannick Loiseau <me@yloiseau.net> | 2014-04-05 15:30:22 +0200 |
commit | 02683b5def213065f6b893f91fc54f313141fbdf (patch) | |
tree | 567bd8d028099672cbee41abebe64d88394f3ffd | |
parent | 8b43e9765a4914b336d4b99faf0814c67b710d4a (diff) | |
download | pygments-02683b5def213065f6b893f91fc54f313141fbdf.tar.gz |
improved backtick escape
-rw-r--r-- | pygments/lexers/golo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/golo.py b/pygments/lexers/golo.py index e00239cb..1e3dcc3f 100644 --- a/pygments/lexers/golo.py +++ b/pygments/lexers/golo.py @@ -35,7 +35,7 @@ class GoloLexer(RegexLexer): Operator), (r'(?<=[^-])(-)(?=[^-])', Operator), - (r'(is|isnt|and|or|not|oftype|in|orIfNull)\b', Operator.Word), + (r'(?<=[^`])(is|isnt|and|or|not|oftype|in|orIfNull)\b', Operator.Word), (r'[]{}|(),[]', Punctuation), (r'(module|import)(\s+)', @@ -67,7 +67,7 @@ class GoloLexer(RegexLexer): bygroups(Name.Builtin, Punctuation)), (r'(print|println|readln|raise|fun' r'|asInterfaceInstance)\b', Name.Builtin), - (r'\b(`?[a-zA-Z_][a-z$A-Z0-9_]*)(\()', + (r'(`?[a-zA-Z_][a-z$A-Z0-9_]*)(\()', bygroups(Name.Function, Punctuation)), (r'-?[\d_]*\.[\d_]*([eE][+-]?\d[\d_]*)?F?', Number.Float), |