diff options
| author | Mateus Melchiades <mateusbmelchiades@gmail.com> | 2022-02-11 13:18:16 -0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-11 18:24:39 +0100 |
| commit | ad1bc3577c16897a558335d545e6fe0a161a4644 (patch) | |
| tree | 1fd9f60d27d0210b97fc592857c924a89026a915 /queries/vala | |
| parent | Update lockfile.json (#2514) (diff) | |
| download | nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.tar nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.tar.gz nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.tar.bz2 nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.tar.lz nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.tar.xz nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.tar.zst nvim-treesitter-ad1bc3577c16897a558335d545e6fe0a161a4644.zip | |
Improve Vala syntax highlight
Diffstat (limited to 'queries/vala')
| -rw-r--r-- | queries/vala/highlights.scm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/queries/vala/highlights.scm b/queries/vala/highlights.scm index 3d4b1be8a..371873977 100644 --- a/queries/vala/highlights.scm +++ b/queries/vala/highlights.scm @@ -28,13 +28,10 @@ "}" "(" ")" - "[" - "]" ] @punctuation.bracket [ ";" - ":" "." "," "->" @@ -74,6 +71,10 @@ "owned" "throws" "delete" + "#if" + "#elif" + (preproc_else) + (preproc_endif) ] @keyword "throw" @exception @@ -128,7 +129,6 @@ "&=" "^=" "??" - "=" ] @operator ) @@ -206,7 +206,7 @@ ) (class_constructor_definition - [ + name: [ (_) (namespaced_identifier (_) @constructor .) ] @constructor @@ -229,6 +229,7 @@ ; Strings and escape sequences (string_literal) @string +(verbatim) @string (escape_sequence) @string.escape (string_template |
