diff options
-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 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), |