summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-07 16:00:19 +0200
committerGeorg Brandl <georg@python.org>2014-10-07 16:00:19 +0200
commitc009209e777e41f987bfccc9914f6615ec6b3553 (patch)
tree4464933c36ba304ad19267f0a85100c46c1200e7
parent1674b75f1ea10abb390d9e479b058c56bfb2ac4f (diff)
downloadpygments-c009209e777e41f987bfccc9914f6615ec6b3553.tar.gz
Closes #1003: fix highlighting of inf/nan in ProtoBufLexer.
-rw-r--r--pygments/lexers/dsls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/dsls.py b/pygments/lexers/dsls.py
index 732b926d..db2e2d48 100644
--- a/pygments/lexers/dsls.py
+++ b/pygments/lexers/dsls.py
@@ -56,7 +56,7 @@ class ProtoBufLexer(RegexLexer):
(r'\".*\"', String),
(r'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*', Number.Float),
(r'(\d+\.\d*|\.\d+|\d+[fF])[fF]?', Number.Float),
- (r'(\-?(inf|nan))', Number.Float),
+ (r'(\-?(inf|nan))\b', Number.Float),
(r'0x[0-9a-fA-F]+[LlUu]*', Number.Hex),
(r'0[0-7]+[LlUu]*', Number.Oct),
(r'\d+[LlUu]*', Number.Integer),