diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-21 16:54:23 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-21 16:54:23 -0700 |
commit | 953e92558ddf11020e519c47bd11f05729e81e8f (patch) | |
tree | a6a362972ba3988a20fb419c41bd84063e0f6c9e | |
parent | 9ebc6c73ab60b9616888cfdc97a4c24d7f437361 (diff) | |
download | pygments-953e92558ddf11020e519c47bd11f05729e81e8f.tar.gz |
Update BroLexer hex constant.
From reading later use, I assume this was meant to match a single character.
Removes some double-repetitions from patterns.
-rw-r--r-- | pygments/lexers/dsls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/dsls.py b/pygments/lexers/dsls.py index dcd15011..e4ec2312 100644 --- a/pygments/lexers/dsls.py +++ b/pygments/lexers/dsls.py @@ -87,7 +87,7 @@ class BroLexer(RegexLexer): aliases = ['bro'] filenames = ['*.bro'] - _hex = r'[0-9a-fA-F_]+' + _hex = r'[0-9a-fA-F_]' _float = r'((\d*\.?\d+)|(\d+\.?\d*))([eE][-+]?\d+)?' _h = r'[A-Za-z0-9][-A-Za-z0-9]*' |