diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 09:51:00 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 09:51:00 +0100 |
commit | ad95acc37363a5c05b33004f76014289577c9df4 (patch) | |
tree | 351875fc51099531104387132dfd8316a22e90c2 | |
parent | 051d743b6ac14985596149757a803716e2fb26cc (diff) | |
download | pygments-ad95acc37363a5c05b33004f76014289577c9df4.tar.gz |
VHDL: fix comment regex; two hyphens always start a comment
-rw-r--r-- | pygments/lexers/hdl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/hdl.py b/pygments/lexers/hdl.py index 35a4045a..97b654e9 100644 --- a/pygments/lexers/hdl.py +++ b/pygments/lexers/hdl.py @@ -286,7 +286,7 @@ class VhdlLexer(RegexLexer): (r'\n', Text), (r'\s+', Text), (r'\\\n', Text), # line continuation - (r'--(?![!#$%&*+./<=>?@\^|_~]).*?$', Comment.Single), + (r'--.*?$', Comment.Single), (r"'(U|X|0|1|Z|W|L|H|-)'", String.Char), (r'[~!%^&*+=|?:<>/-]', Operator), (r"'[a-z_]\w*", Name.Attribute), |