mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -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
|
||||
[faust](https://github.com/khiner/tree-sitter-faust) | unstable | `H J ` | | @khiner
|
||||
[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
|
||||
[firrtl](https://github.com/tree-sitter-grammars/tree-sitter-firrtl) | unstable | `HFIJL` | | @amaanq
|
||||
[fish](https://github.com/ram02z/tree-sitter-fish) | unstable | `HFIJL` | | @ram02z
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
field: (identifier) @function.method))
|
||||
|
||||
((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
|
||||
name: (identifier) @function)
|
||||
|
|
@ -14,6 +15,17 @@
|
|||
(version) @number
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
"|"
|
||||
"^"
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
|
|
@ -21,25 +33,18 @@
|
|||
"<<"
|
||||
"&"
|
||||
"&^"
|
||||
] @operator
|
||||
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
"|"
|
||||
"^"
|
||||
] @operator
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"or"
|
||||
"and"
|
||||
"but not"
|
||||
] @operator
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"model"
|
||||
"module"
|
||||
"schema"
|
||||
"type"
|
||||
"relations"
|
||||
"define"
|
||||
"from"
|
||||
|
|
@ -47,4 +52,6 @@
|
|||
|
||||
"condition" @keyword.function
|
||||
|
||||
"type" @keyword.operator
|
||||
|
||||
(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