aboutsummaryrefslogtreecommitdiffstats
path: root/queries/teal
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 /queries/teal
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
Diffstat (limited to 'queries/teal')
-rw-r--r--queries/teal/highlights.scm10
1 files changed, 6 insertions, 4 deletions
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)