diff options
Diffstat (limited to 'pygments/lexers/tcl.py')
-rw-r--r-- | pygments/lexers/tcl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/tcl.py b/pygments/lexers/tcl.py index b4c4cc89..966dc246 100644 --- a/pygments/lexers/tcl.py +++ b/pygments/lexers/tcl.py @@ -50,7 +50,7 @@ class TclLexer(RegexLexer): return [ (keyword_cmds_re, Keyword, 'params' + context), (builtin_cmds_re, Name.Builtin, 'params' + context), - (r'([\w\.\-]+)', Name.Variable, 'params' + context), + (r'([\w.-]+)', Name.Variable, 'params' + context), (r'#', Comment, 'comment'), ] @@ -85,8 +85,8 @@ class TclLexer(RegexLexer): (r'0[0-7]+', Number.Oct), (r'\d+\.\d+', Number.Float), (r'\d+', Number.Integer), - (r'\$([\w\.\-\:]+)', Name.Variable), - (r'([\w\.\-\:]+)', Text), + (r'\$([\w.:-]+)', Name.Variable), + (r'([\w.:-]+)', Text), ], 'params': [ (r';', Keyword, '#pop'), |