mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
Group keywords operators and punctuation
This commit is contained in:
parent
16e0b1ae24
commit
a94f00603e
1 changed files with 44 additions and 63 deletions
|
|
@ -1,75 +1,56 @@
|
||||||
; Tree-sitter highlights for GROQ language
|
; Tree-sitter highlights for GROQ language
|
||||||
; This file defines syntax highlighting for GROQ in Neovim
|
; This file defines syntax highlighting for GROQ in Neovim
|
||||||
; Keywords
|
; Keywords
|
||||||
"select" @keyword
|
[
|
||||||
|
"select"
|
||||||
|
"asc"
|
||||||
|
"desc"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
"asc" @keyword
|
[
|
||||||
|
"in"
|
||||||
"desc" @keyword
|
"match"
|
||||||
|
] @keyword.operator
|
||||||
"in" @keyword.operator
|
|
||||||
|
|
||||||
"match" @keyword.operator
|
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
"==" @operator
|
[
|
||||||
|
"=="
|
||||||
"!=" @operator
|
"!="
|
||||||
|
">"
|
||||||
">" @operator
|
">="
|
||||||
|
"<"
|
||||||
">=" @operator
|
"<="
|
||||||
|
"&&"
|
||||||
"<" @operator
|
"||"
|
||||||
|
"!"
|
||||||
"<=" @operator
|
"+"
|
||||||
|
"-"
|
||||||
"&&" @operator
|
"*"
|
||||||
|
"/"
|
||||||
"||" @operator
|
"%"
|
||||||
|
"**"
|
||||||
"!" @operator
|
".."
|
||||||
|
"..."
|
||||||
"+" @operator
|
"=>"
|
||||||
|
"->"
|
||||||
"-" @operator
|
"|"
|
||||||
|
] @operator
|
||||||
"*" @operator
|
|
||||||
|
|
||||||
"/" @operator
|
|
||||||
|
|
||||||
"%" @operator
|
|
||||||
|
|
||||||
"**" @operator
|
|
||||||
|
|
||||||
".." @operator
|
|
||||||
|
|
||||||
"..." @operator
|
|
||||||
|
|
||||||
"=>" @operator
|
|
||||||
|
|
||||||
"->" @operator
|
|
||||||
|
|
||||||
"|" @operator
|
|
||||||
|
|
||||||
; Punctuation
|
; Punctuation
|
||||||
"(" @punctuation.bracket
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
")" @punctuation.bracket
|
[
|
||||||
|
","
|
||||||
"[" @punctuation.bracket
|
":"
|
||||||
|
"."
|
||||||
"]" @punctuation.bracket
|
] @punctuation.delimiter
|
||||||
|
|
||||||
"{" @punctuation.bracket
|
|
||||||
|
|
||||||
"}" @punctuation.bracket
|
|
||||||
|
|
||||||
"," @punctuation.delimiter
|
|
||||||
|
|
||||||
":" @punctuation.delimiter
|
|
||||||
|
|
||||||
"." @punctuation.delimiter
|
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue