diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-14 22:41:17 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-14 22:41:17 -0400 |
commit | c526e39da6e14d4e557f854aceaaff86c22530a8 (patch) | |
tree | bf866e10c8bb03796256b70e1947060168624a55 /pygments/lexers/hdl.py | |
parent | 745f1e190950d2510aecc33de9f1727e24ddddf0 (diff) | |
download | pygments-c526e39da6e14d4e557f854aceaaff86c22530a8.tar.gz |
Replace all occurences of a-zA-Z0-9_ with \w
Diffstat (limited to 'pygments/lexers/hdl.py')
-rw-r--r-- | pygments/lexers/hdl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/hdl.py b/pygments/lexers/hdl.py index 29abecbe..55eec252 100644 --- a/pygments/lexers/hdl.py +++ b/pygments/lexers/hdl.py @@ -115,7 +115,7 @@ class VerilogLexer(RegexLexer): (r'\n', Comment.Preproc, '#pop'), ], 'import': [ - (r'[a-zA-Z0-9_:]+\*?', Name.Namespace, '#pop') + (r'[\w:]+\*?', Name.Namespace, '#pop') ] } @@ -252,7 +252,7 @@ class SystemVerilogLexer(RegexLexer): (r'\n', Comment.Preproc, '#pop'), ], 'import': [ - (r'[a-zA-Z0-9_:]+\*?', Name.Namespace, '#pop') + (r'[\w:]+\*?', Name.Namespace, '#pop') ] } @@ -297,7 +297,7 @@ class VhdlLexer(RegexLexer): (r'(library)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword, Text, Name.Namespace)), (r'(use)(\s+)(entity)', bygroups(Keyword, Text, Keyword)), - (r'(use)(\s+)([a-zA-Z_][\.a-zA-Z0-9_]*)', + (r'(use)(\s+)([a-zA-Z_][\.\w]*)', bygroups(Keyword, Text, Name.Namespace)), (r'(entity|component)(\s+)([a-zA-Z_]\w*)', bygroups(Keyword, Text, Name.Class)), |