mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -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
|
||||
; This file defines syntax highlighting for GROQ in Neovim
|
||||
; Keywords
|
||||
"select" @keyword
|
||||
[
|
||||
"select"
|
||||
"asc"
|
||||
"desc"
|
||||
] @keyword
|
||||
|
||||
"asc" @keyword
|
||||
|
||||
"desc" @keyword
|
||||
|
||||
"in" @keyword.operator
|
||||
|
||||
"match" @keyword.operator
|
||||
[
|
||||
"in"
|
||||
"match"
|
||||
] @keyword.operator
|
||||
|
||||
; Operators
|
||||
"==" @operator
|
||||
|
||||
"!=" @operator
|
||||
|
||||
">" @operator
|
||||
|
||||
">=" @operator
|
||||
|
||||
"<" @operator
|
||||
|
||||
"<=" @operator
|
||||
|
||||
"&&" @operator
|
||||
|
||||
"||" @operator
|
||||
|
||||
"!" @operator
|
||||
|
||||
"+" @operator
|
||||
|
||||
"-" @operator
|
||||
|
||||
"*" @operator
|
||||
|
||||
"/" @operator
|
||||
|
||||
"%" @operator
|
||||
|
||||
"**" @operator
|
||||
|
||||
".." @operator
|
||||
|
||||
"..." @operator
|
||||
|
||||
"=>" @operator
|
||||
|
||||
"->" @operator
|
||||
|
||||
"|" @operator
|
||||
[
|
||||
"=="
|
||||
"!="
|
||||
">"
|
||||
">="
|
||||
"<"
|
||||
"<="
|
||||
"&&"
|
||||
"||"
|
||||
"!"
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"**"
|
||||
".."
|
||||
"..."
|
||||
"=>"
|
||||
"->"
|
||||
"|"
|
||||
] @operator
|
||||
|
||||
; Punctuation
|
||||
"(" @punctuation.bracket
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
")" @punctuation.bracket
|
||||
|
||||
"[" @punctuation.bracket
|
||||
|
||||
"]" @punctuation.bracket
|
||||
|
||||
"{" @punctuation.bracket
|
||||
|
||||
"}" @punctuation.bracket
|
||||
|
||||
"," @punctuation.delimiter
|
||||
|
||||
":" @punctuation.delimiter
|
||||
|
||||
"." @punctuation.delimiter
|
||||
[
|
||||
","
|
||||
":"
|
||||
"."
|
||||
] @punctuation.delimiter
|
||||
|
||||
; Literals
|
||||
(string) @string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue