diff options
author | Yannick Loiseau <me@yloiseau.net> | 2014-04-05 12:50:28 +0200 |
---|---|---|
committer | Yannick Loiseau <me@yloiseau.net> | 2014-04-05 12:50:28 +0200 |
commit | 3b16de7ddaab4ba4aeef5ba78873d8373c5c78fd (patch) | |
tree | 7bed128e5f8019dfdc478e6fd3e02001554848ad | |
parent | eae21c24cca2d081de6b21cbbd1317411bc4939f (diff) | |
download | pygments-3b16de7ddaab4ba4aeef5ba78873d8373c5c78fd.tar.gz |
improved namespaces: match every name with dots
-rw-r--r-- | pygments/lexers/golo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/golo.py b/pygments/lexers/golo.py index 79690c6e..ca373a02 100644 --- a/pygments/lexers/golo.py +++ b/pygments/lexers/golo.py @@ -8,7 +8,6 @@ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ -#TODO: backquote escaped litterals #TODO: ---- quoted doc string: conflict with - operator from pygments.lexer import RegexLexer, bygroups, include, combined @@ -42,6 +41,7 @@ class GoloLexer(RegexLexer): bygroups(Keyword.Namespace, Text), 'modname'), (r'\b([a-zA-Z_][a-z$A-Z0-9._]*)(::)', bygroups(Name.Namespace, Punctuation)), + (r'\b([a-zA-Z_][a-z$A-Z0-9_]*(?:\.[a-zA-Z_][a-z$A-Z0-9_]*)+)\b', Name.Namespace), (r'(let|var)(\s+)', bygroups(Keyword.Declaration, Text), |