mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
chore: apply code review suggestions
This commit is contained in:
parent
5ca72f9b30
commit
ffc90cb037
3 changed files with 21 additions and 12 deletions
2
SUPPORTED_LANGUAGES.md
generated
2
SUPPORTED_LANGUAGES.md
generated
|
|
@ -80,7 +80,7 @@ ecma (queries only)[^ecma] | unstable | `HFIJL` | | @steelsojka
|
||||||
[facility](https://github.com/FacilityApi/tree-sitter-facility) | unstable | `HFIJ ` | | @bryankenote
|
[facility](https://github.com/FacilityApi/tree-sitter-facility) | unstable | `HFIJ ` | | @bryankenote
|
||||||
[faust](https://github.com/khiner/tree-sitter-faust) | unstable | `H J ` | | @khiner
|
[faust](https://github.com/khiner/tree-sitter-faust) | unstable | `H J ` | | @khiner
|
||||||
[fennel](https://github.com/alexmozaidze/tree-sitter-fennel) | unstable | `HF JL` | | @alexmozaidze
|
[fennel](https://github.com/alexmozaidze/tree-sitter-fennel) | unstable | `HF JL` | | @alexmozaidze
|
||||||
[fga](https://github.com/matoous/tree-sitter-fga) | unstable | `H ` | | @matoous
|
[fga](https://github.com/matoous/tree-sitter-fga) | unstable | `H J ` | | @matoous
|
||||||
[fidl](https://github.com/google/tree-sitter-fidl) | unstable | `HF J ` | | @chaopeng
|
[fidl](https://github.com/google/tree-sitter-fidl) | unstable | `HF J ` | | @chaopeng
|
||||||
[firrtl](https://github.com/tree-sitter-grammars/tree-sitter-firrtl) | unstable | `HFIJL` | | @amaanq
|
[firrtl](https://github.com/tree-sitter-grammars/tree-sitter-firrtl) | unstable | `HFIJL` | | @amaanq
|
||||||
[fish](https://github.com/ram02z/tree-sitter-fish) | unstable | `HFIJL` | | @ram02z
|
[fish](https://github.com/ram02z/tree-sitter-fish) | unstable | `HFIJL` | | @ram02z
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
field: (identifier) @function.method))
|
field: (identifier) @function.method))
|
||||||
|
|
||||||
((type_identifier) @type.builtin
|
((type_identifier) @type.builtin
|
||||||
(#match? @type.builtin "^(string|int|map|uint|list|timestamp|bool|duration|double|ipaddress)$"))
|
(#any-of? @type.builtin
|
||||||
|
"string" "int" "map" "uint" "list" "timestamp" "bool" "duration" "double" "ipaddress"))
|
||||||
|
|
||||||
(condition_declaration
|
(condition_declaration
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
|
|
@ -14,6 +15,17 @@
|
||||||
(version) @number
|
(version) @number
|
||||||
|
|
||||||
[
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
[
|
||||||
|
"+"
|
||||||
|
"-"
|
||||||
|
"|"
|
||||||
|
"^"
|
||||||
"*"
|
"*"
|
||||||
"/"
|
"/"
|
||||||
"%"
|
"%"
|
||||||
|
|
@ -21,25 +33,18 @@
|
||||||
"<<"
|
"<<"
|
||||||
"&"
|
"&"
|
||||||
"&^"
|
"&^"
|
||||||
] @operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
|
||||||
"+"
|
|
||||||
"-"
|
|
||||||
"|"
|
|
||||||
"^"
|
|
||||||
] @operator
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"or"
|
"or"
|
||||||
"and"
|
"and"
|
||||||
"but not"
|
"but not"
|
||||||
] @operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
"model"
|
"model"
|
||||||
|
"module"
|
||||||
"schema"
|
"schema"
|
||||||
"type"
|
|
||||||
"relations"
|
"relations"
|
||||||
"define"
|
"define"
|
||||||
"from"
|
"from"
|
||||||
|
|
@ -47,4 +52,6 @@
|
||||||
|
|
||||||
"condition" @keyword.function
|
"condition" @keyword.function
|
||||||
|
|
||||||
|
"type" @keyword.operator
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
|
||||||
2
runtime/queries/fga/injections.scm
Normal file
2
runtime/queries/fga/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue