diff options
author | Tim Hatch <tim@timhatch.com> | 2012-03-09 12:06:18 -0800 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2012-03-09 12:06:18 -0800 |
commit | 558f41c0580935533c6b4a67ca6bd7f2a5d4e723 (patch) | |
tree | 0ab1336082361cb91c65731fb6feb3184f1ccd7c /pygments/lexers/hdl.py | |
parent | 2151bee78a86b01e66f8be2d7d54d2fd205766f6 (diff) | |
download | pygments-558f41c0580935533c6b4a67ca6bd7f2a5d4e723.tar.gz |
Fix a bunch of minor issues noticed by regexlint
---
pygments/lexers/agile.py | 8 ++++----
pygments/lexers/dotnet.py | 8 ++++----
pygments/lexers/functional.py | 5 ++++-
pygments/lexers/hdl.py | 5 +++--
pygments/lexers/other.py | 2 +-
pygments/lexers/templates.py | 31 ++++++++++++++++---------------
pygments/lexers/text.py | 4 ++--
pygments/lexers/web.py | 6 +++---
8 files changed, 37 insertions(+), 32 deletions(-)
Diffstat (limited to 'pygments/lexers/hdl.py')
-rw-r--r-- | pygments/lexers/hdl.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/hdl.py b/pygments/lexers/hdl.py index 86534b76..f1e9f26d 100644 --- a/pygments/lexers/hdl.py +++ b/pygments/lexers/hdl.py @@ -56,8 +56,9 @@ class VerilogLexer(RegexLexer): (r'[()\[\],.;\']', Punctuation), (r'`[a-zA-Z_][a-zA-Z0-9_]*', Name.Constant), - (r'^\s*(package)(\s+)', bygroups(Keyword.Namespace, Text)), - (r'^\s*(import)(\s+)', bygroups(Keyword.Namespace, Text), 'import'), + (r'^(\s*)(package)(\s+)', bygroups(Text, Keyword.Namespace, Text)), + (r'^(\s*)(import)(\s+)', bygroups(Text, Keyword.Namespace, Text), + 'import'), (r'(always|always_comb|always_ff|always_latch|and|assign|automatic|' r'begin|break|buf|bufif0|bufif1|case|casex|casez|cmos|const|' |