diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-04-18 16:51:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-18 21:51:03 +0000 |
| commit | 574bd5ae37a5b460d99d10b0c315fbb3246bdc10 (patch) | |
| tree | befc644a91830e646bedfc00fde21714cdd2335a /queries/yaml | |
| parent | Fix identifier type check (diff) | |
| download | nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.tar nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.tar.gz nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.tar.bz2 nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.tar.lz nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.tar.xz nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.tar.zst nvim-treesitter-574bd5ae37a5b460d99d10b0c315fbb3246bdc10.zip | |
YAML: update queries (#1203)
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
Diffstat (limited to 'queries/yaml')
| -rw-r--r-- | queries/yaml/highlights.scm | 8 | ||||
| -rw-r--r-- | queries/yaml/locals.scm | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm index 1517e9134..818352bb7 100644 --- a/queries/yaml/highlights.scm +++ b/queries/yaml/highlights.scm @@ -8,11 +8,12 @@ (integer_scalar) @number (float_scalar) @number (comment) @comment -(anchor) @type -(alias) @type +(anchor_name) @type +(alias_name) @type (tag) @type (yaml_directive) @keyword (ERROR) @error + [ "," "-" @@ -21,9 +22,12 @@ "?" "|" ] @punctuation.delimiter + [ "[" "]" "{" "}" ] @punctuation.bracket + +["*" "&"] @punctuation.special diff --git a/queries/yaml/locals.scm b/queries/yaml/locals.scm index 6a74fb473..be91b5ca7 100644 --- a/queries/yaml/locals.scm +++ b/queries/yaml/locals.scm @@ -1,4 +1,4 @@ (document) @scope -(anchor) @definition -(alias) @reference +(anchor_name) @definition +(alias_name) @reference |
