summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorBJ Neilsen <bj.neilsen@gmail.com>2014-09-07 23:17:57 -0600
committerBJ Neilsen <bj.neilsen@gmail.com>2014-09-07 23:17:57 -0600
commitfb6c708a8b3706cf97ebfecb9ad46a92bdf16116 (patch)
treec35a2fe8d3d9254bf8096aff4b67ea1523b79e03 /pygments/lexers/other.py
parent750ca02ad15f5c6a8090e090f08c659748cfc592 (diff)
downloadpygments-fb6c708a8b3706cf97ebfecb9ad46a92bdf16116.tar.gz
Add "oneof" keyword to ProtoBufLexer
[Protocol Buffers version 2.6][1] added a new union construct with the `oneof` keyword. [1]: https://groups.google.com/d/msg/protobuf/lvI8-sWZbUY/2_a8LVDMi5YJ
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 608e499d..0075fc07 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -2473,7 +2473,7 @@ class ProtoBufLexer(RegexLexer):
(r'/(\\\n)?/(\n|(.|\n)*?[^\\]\n)', Comment.Single),
(r'/(\\\n)?\*(.|\n)*?\*(\\\n)?/', Comment.Multiline),
(r'\b(import|option|optional|required|repeated|default|packed|'
- r'ctype|extensions|to|max|rpc|returns)\b', Keyword),
+ r'ctype|extensions|to|max|rpc|returns|oneof)\b', Keyword),
(r'(int32|int64|uint32|uint64|sint32|sint64|'
r'fixed32|fixed64|sfixed32|sfixed64|'
r'float|double|bool|string|bytes)\b', Keyword.Type),