diff options
author | Yusuf Bera Ertan | 2021-08-18 10:54:47 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-19 00:54:14 +0000 |
commit | 4b45f27a13500bd5f85d11e2e3bcda49bfdd065c (patch) | |
tree | 3da84f41e5df60da71752ba69df254f7d27a4bb7 /runtime | |
parent | 1158fc44870ba21e8dabf3547f89a3be9ddaa286 (diff) |
feat: add protobuf tree-sitter parser with highlighting queries
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/protobuf/highlights.scm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/runtime/queries/protobuf/highlights.scm b/runtime/queries/protobuf/highlights.scm new file mode 100644 index 00000000..4597dd5a --- /dev/null +++ b/runtime/queries/protobuf/highlights.scm @@ -0,0 +1,60 @@ +[ + "syntax" + "package" + "option" + "import" + "service" + "rpc" + "returns" + "message" + "enum" + "oneof" + "repeated" + "reserved" + "to" + "stream" + "extend" +] @keyword + +[ + (keyType) + (type) +] @type.builtin + +[ + (mapName) + (oneofName) + (enumName) + (messageName) + (extendName) + (serviceName) + (rpcName) +] @type + +[ + (fieldName) + (optionName) +] @property +(enumVariantName) @type.enum.variant + +(fullIdent) @namespace + +[ + (intLit) + (floatLit) +] @number +(boolLit) @constant.builtin +(strLit) @string + +(constant) @constant + +(comment) @comment + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket
\ No newline at end of file |