diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 09:33:04 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 09:33:04 +0100 |
commit | c6df9d02e6e7f269d0e74906fd9b3cad72d9c1e4 (patch) | |
tree | 62a7efa9dd1618d93d3c08788666985d59e6b3b8 /pygments | |
parent | 194d965811a396c947429f8e5f4678be50aabd79 (diff) | |
download | pygments-c6df9d02e6e7f269d0e74906fd9b3cad72d9c1e4.tar.gz |
Protobuf lexer: allow single-quoted strings.
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/dsls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/dsls.py b/pygments/lexers/dsls.py index e4ec2312..3c9ede1f 100644 --- a/pygments/lexers/dsls.py +++ b/pygments/lexers/dsls.py @@ -53,7 +53,8 @@ class ProtoBufLexer(RegexLexer): bygroups(Keyword.Declaration, Text), 'message'), (r'(enum|group|service)(\s+)', bygroups(Keyword.Declaration, Text), 'type'), - (r'\".*\"', String), + (r'\".*?\"', String), + (r'\'.*?\'', String), (r'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*', Number.Float), (r'(\d+\.\d*|\.\d+|\d+[fF])[fF]?', Number.Float), (r'(\-?(inf|nan))\b', Number.Float), |