diff options
| author | Akin Sowemimo <akin.sowemimo@gmail.com> | 2020-09-18 14:36:52 +0100 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-18 21:30:13 +0200 |
| commit | 8cc0b8d4c443c208b5d8e11a19be21bc418613d0 (patch) | |
| tree | 4af456f25fcd581fb11fe8d57d840cc36b070087 | |
| parent | RST: update queries (diff) | |
| download | nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.tar nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.tar.gz nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.tar.bz2 nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.tar.lz nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.tar.xz nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.tar.zst nvim-treesitter-8cc0b8d4c443c208b5d8e11a19be21bc418613d0.zip | |
Add case builtin
Based on accepted PR to unhide this node
Also show Function as a type correctly
and use existing annotation highlight for annotations
| -rw-r--r-- | queries/dart/highlights.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm index 9ea563f4d..92870d524 100644 --- a/queries/dart/highlights.scm +++ b/queries/dart/highlights.scm @@ -8,14 +8,13 @@ ; Annotations (annotation - name: (identifier) @attribute) + name: (identifier) @annotation) (marker_annotation - name: (identifier) @attribute) + name: (identifier) @annotation) ; Operators and Tokens -; FIXME: nodes not accessible and ranges -; currently incorrect +; FIXME: nodes not accessible and ranges currently incorrect ; (template_substitution ; "${" @punctuation.special ; "}" @punctuation.special) @embedded @@ -103,6 +102,8 @@ ((identifier) @type (#match? @type "^[A-Z]")) +("Function" @type) + ; properties ; TODO: add method/call_expression to grammar and ; distinguish method call from variable access @@ -151,9 +152,9 @@ ; Reserved words (cannot be used as identifiers) ; TODO: "rethrow" @keyword - [ ; "assert" + (case_builtin) "class" "enum" "extends" @@ -178,7 +179,6 @@ "dynamic" "external" "factory" - "Function" "get" "implements" "interface" |
