summaryrefslogtreecommitdiffstats
path: root/misc/syntax/protobuf.syntax
diff options
context:
space:
mode:
Diffstat (limited to 'misc/syntax/protobuf.syntax')
-rw-r--r--misc/syntax/protobuf.syntax57
1 files changed, 57 insertions, 0 deletions
diff --git a/misc/syntax/protobuf.syntax b/misc/syntax/protobuf.syntax
new file mode 100644
index 0000000..2490889
--- /dev/null
+++ b/misc/syntax/protobuf.syntax
@@ -0,0 +1,57 @@
+# Syntax rules for Protobuf files and gRPC extensions
+
+context default
+ keyword whole enum yellow
+ keyword whole extend yellow
+ keyword whole extensions yellow
+ keyword whole import yellow
+ keyword whole map yellow
+ keyword whole message yellow
+ keyword whole oneof yellow
+ keyword whole option yellow
+ keyword whole optional yellow
+ keyword whole package yellow
+ keyword whole public yellow
+ keyword whole repeated yellow
+ keyword whole required yellow
+ keyword whole reserved yellow
+ keyword whole returns yellow
+ keyword whole rpc yellow
+ keyword whole service yellow
+ keyword whole stream yellow
+
+ keyword whole double yellow
+ keyword whole float yellow
+ keyword whole int32 yellow
+ keyword whole int64 yellow
+ keyword whole uint32 yellow
+ keyword whole uint64 yellow
+ keyword whole sint32 yellow
+ keyword whole sint64 yellow
+ keyword whole fixed32 yellow
+ keyword whole fixed64 yellow
+ keyword whole sfixed32 yellow
+ keyword whole sfixed64 yellow
+ keyword whole bool yellow
+ keyword whole string yellow
+ keyword whole bytes yellow
+
+ keyword // brown
+
+# punctuation characters, sorted by ASCII code
+ keyword ( brightcyan
+ keyword ) brightcyan
+ keyword , brightcyan
+ keyword : brightcyan
+ keyword ; brightmagenta
+ keyword = yellow
+ keyword [ brightcyan
+ keyword ] brightcyan
+ keyword { brightcyan
+ keyword } brightcyan
+
+context exclusive // \n brown
+ spellcheck
+
+context " " green
+ spellcheck