mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
Update Teal queries and parser
This commit is contained in:
parent
6823adf458
commit
c76709fd36
2 changed files with 7 additions and 5 deletions
|
|
@ -99,7 +99,7 @@
|
||||||
"revision": "a22fa5e19bae50098e2252ea96cba3aba43f4c58"
|
"revision": "a22fa5e19bae50098e2252ea96cba3aba43f4c58"
|
||||||
},
|
},
|
||||||
"teal": {
|
"teal": {
|
||||||
"revision": "024fb0da8a4e277ad48246f9fa47098e0c755155"
|
"revision": "59f90be8d211f9abd63ee68ca1ff65096d7d0b2a"
|
||||||
},
|
},
|
||||||
"toml": {
|
"toml": {
|
||||||
"revision": "02e774c911d123ea3fbe5273cf9d987fa88dd3fb"
|
"revision": "02e774c911d123ea3fbe5273cf9d987fa88dd3fb"
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
(function_statement "global" @keyword)
|
(function_statement "global" @keyword)
|
||||||
|
|
||||||
|
|
||||||
; Ops
|
;; Ops
|
||||||
[ "not" "and" "or" "as" "is" ] @keyword.operator
|
[ "not" "and" "or" "as" "is" ] @keyword.operator
|
||||||
|
|
||||||
[ "=" "~=" "==" "<=" ">=" "<" ">"
|
[ "=" "~=" "==" "<=" ">=" "<" ">"
|
||||||
|
|
@ -50,13 +50,15 @@
|
||||||
(arg
|
(arg
|
||||||
name: (identifier) @parameter)
|
name: (identifier) @parameter)
|
||||||
|
|
||||||
; type stuffs
|
;; type stuffs
|
||||||
(type_declaration "type" @keyword)
|
(type_declaration "type" @keyword)
|
||||||
(type_declaration (type_name) @type)
|
(type_declaration (type_name) @type)
|
||||||
(simple_type) @type
|
(simple_type) @type
|
||||||
(function_type "function" @type)
|
(function_type "function" @type)
|
||||||
(record_name) @type
|
(record_declaration
|
||||||
(enum_name) @type
|
name: (identifier) @type)
|
||||||
|
(enum_declaration
|
||||||
|
name: (identifier) @type)
|
||||||
(typeargs (identifier) @parameter)
|
(typeargs (identifier) @parameter)
|
||||||
|
|
||||||
(table_constructor ["{" "}"] @constructor)
|
(table_constructor ["{" "}"] @constructor)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue