aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-12-03 20:55:11 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2020-12-03 21:13:02 +0100
commitc76709fd366f3e2c09106319687199a0ce97b476 (patch)
tree91bd59797d652bde157b2ffa51d366ca079af4b4
parentUpdate lockfile.json (Ruby, Elm) (diff)
downloadnvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.tar
nvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.tar.gz
nvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.tar.bz2
nvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.tar.lz
nvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.tar.xz
nvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.tar.zst
nvim-treesitter-c76709fd366f3e2c09106319687199a0ce97b476.zip
Update Teal queries and parser
-rw-r--r--lockfile.json2
-rw-r--r--queries/teal/highlights.scm10
2 files changed, 7 insertions, 5 deletions
diff --git a/lockfile.json b/lockfile.json
index 1f9943cf2..9346bba4f 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -99,7 +99,7 @@
"revision": "a22fa5e19bae50098e2252ea96cba3aba43f4c58"
},
"teal": {
- "revision": "024fb0da8a4e277ad48246f9fa47098e0c755155"
+ "revision": "59f90be8d211f9abd63ee68ca1ff65096d7d0b2a"
},
"toml": {
"revision": "02e774c911d123ea3fbe5273cf9d987fa88dd3fb"
diff --git a/queries/teal/highlights.scm b/queries/teal/highlights.scm
index 2103dbdfa..782ae1c01 100644
--- a/queries/teal/highlights.scm
+++ b/queries/teal/highlights.scm
@@ -21,7 +21,7 @@
(function_statement "global" @keyword)
-; Ops
+;; Ops
[ "not" "and" "or" "as" "is" ] @keyword.operator
[ "=" "~=" "==" "<=" ">=" "<" ">"
@@ -50,13 +50,15 @@
(arg
name: (identifier) @parameter)
-; type stuffs
+;; type stuffs
(type_declaration "type" @keyword)
(type_declaration (type_name) @type)
(simple_type) @type
(function_type "function" @type)
-(record_name) @type
-(enum_name) @type
+(record_declaration
+ name: (identifier) @type)
+(enum_declaration
+ name: (identifier) @type)
(typeargs (identifier) @parameter)
(table_constructor ["{" "}"] @constructor)