diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-12-03 20:55:11 +0100 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-12-03 21:13:02 +0100 |
| commit | c76709fd366f3e2c09106319687199a0ce97b476 (patch) | |
| tree | 91bd59797d652bde157b2ffa51d366ca079af4b4 /queries | |
| parent | 6823adf458e25727732710a27badea6ae8208896 (diff) | |
Update Teal queries and parser
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/teal/highlights.scm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/queries/teal/highlights.scm b/queries/teal/highlights.scm index 2103dbdf..782ae1c0 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) |
