summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Loiseau <me@yloiseau.net>2014-04-05 12:50:28 +0200
committerYannick Loiseau <me@yloiseau.net>2014-04-05 12:50:28 +0200
commit3b16de7ddaab4ba4aeef5ba78873d8373c5c78fd (patch)
tree7bed128e5f8019dfdc478e6fd3e02001554848ad
parenteae21c24cca2d081de6b21cbbd1317411bc4939f (diff)
downloadpygments-3b16de7ddaab4ba4aeef5ba78873d8373c5c78fd.tar.gz
improved namespaces: match every name with dots
-rw-r--r--pygments/lexers/golo.py2
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),