summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorYannick Loiseau <me@yloiseau.net>2014-04-05 12:19:59 +0200
committerYannick Loiseau <me@yloiseau.net>2014-04-05 12:19:59 +0200
commiteae21c24cca2d081de6b21cbbd1317411bc4939f (patch)
tree8b64e6f79ad6d90f3a0415a29c5a81a06216bc8b /pygments
parentd098e98b8d5906d6ec38d2c261f5c0672b0c08be (diff)
downloadpygments-eae21c24cca2d081de6b21cbbd1317411bc4939f.tar.gz
improved namespaces: match also in use, not only in declaration
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/golo.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/golo.py b/pygments/lexers/golo.py
index 0a000635..79690c6e 100644
--- a/pygments/lexers/golo.py
+++ b/pygments/lexers/golo.py
@@ -41,6 +41,7 @@ class GoloLexer(RegexLexer):
(r'(module|import)(\s+)',
bygroups(Keyword.Namespace, Text),
'modname'),
+ (r'\b([a-zA-Z_][a-z$A-Z0-9._]*)(::)', bygroups(Name.Namespace, Punctuation)),
(r'(let|var)(\s+)',
bygroups(Keyword.Declaration, Text),