diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 12:26:04 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 12:26:04 +0100 |
commit | 9f1763bdbb8c156dd1c5897c50d5cfcf1ccad4c7 (patch) | |
tree | 38aecd295c761beac1ffba59efce26f1e274b4d0 /pygments/lexers/tcl.py | |
parent | f8417e3412d061538ddff8b707048112120f3647 (diff) | |
download | pygments-9f1763bdbb8c156dd1c5897c50d5cfcf1ccad4c7.tar.gz |
Simplify charclasses in a few more modules
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'), |