diff options
-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), |