YAML: update queries (#1203)

Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
This commit is contained in:
Santos Gallegos 2021-04-18 16:51:03 -05:00 committed by GitHub
parent 15f27cf301
commit 574bd5ae37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 8 deletions

View file

@ -147,7 +147,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [ ] [elm](https://github.com/elm-tooling/tree-sitter-elm) - [ ] [elm](https://github.com/elm-tooling/tree-sitter-elm)
- [x] [erlang](https://github.com/AbstractMachinesLab/tree-sitter-erlang) (maintained by @ostera) - [x] [erlang](https://github.com/AbstractMachinesLab/tree-sitter-erlang) (maintained by @ostera)
- [x] [fennel](https://github.com/travonted/tree-sitter-fennel) (maintained by @TravonteD) - [x] [fennel](https://github.com/travonted/tree-sitter-fennel) (maintained by @TravonteD)
- [x] [Godot (gdscript)](https://github.com/PrestonKnopp/tree-sitter-gdscript) (maintained by not @tjdevries) - [x] [Godot (gdscript)](https://github.com/PrestonKnopp/tree-sitter-gdscript) (maintained by @Shatur95)
- [x] [Glimmer and Ember](https://github.com/alexlafroscia/tree-sitter-glimmer) (maintained by @alexlafroscia) - [x] [Glimmer and Ember](https://github.com/alexlafroscia/tree-sitter-glimmer) (maintained by @alexlafroscia)
- [x] [go](https://github.com/tree-sitter/tree-sitter-go) (maintained by @theHamsta, @WinWisely268) - [x] [go](https://github.com/tree-sitter/tree-sitter-go) (maintained by @theHamsta, @WinWisely268)
- [x] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley) - [x] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley)
@ -189,7 +189,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [typescript](https://github.com/tree-sitter/tree-sitter-typescript) (maintained by @steelsojka) - [x] [typescript](https://github.com/tree-sitter/tree-sitter-typescript) (maintained by @steelsojka)
- [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv) - [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv)
- [x] [vue](https://github.com/ikatyang/tree-sitter-vue) (maintained by @WhyNotHugo) - [x] [vue](https://github.com/ikatyang/tree-sitter-vue) (maintained by @WhyNotHugo)
- [ ] [yaml](https://github.com/ikatyang/tree-sitter-yaml) - [x] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
- [x] [zig](https://github.com/Himujjal/tree-sitter-zig) (maintained by @Himujjal) - [x] [zig](https://github.com/Himujjal/tree-sitter-zig) (maintained by @Himujjal)
<!--parserinfo--> <!--parserinfo-->

View file

@ -168,7 +168,7 @@
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06" "revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
}, },
"yaml": { "yaml": {
"revision": "2240ccd0538c8f41394b9cd2202a175b1660b8d6" "revision": "6129a83eeec7d6070b1c0567ec7ce3509ead607c"
}, },
"zig": { "zig": {
"revision": "05d6f44e5ae8fe986a7ca09ce2a301aa5148a20f" "revision": "05d6f44e5ae8fe986a7ca09ce2a301aa5148a20f"

View file

@ -352,7 +352,8 @@ list.yaml = {
install_info = { install_info = {
url = "https://github.com/ikatyang/tree-sitter-yaml", url = "https://github.com/ikatyang/tree-sitter-yaml",
files = { "src/parser.c", "src/scanner.cc" }, files = { "src/parser.c", "src/scanner.cc" },
} },
maintainers = {"@stsewd"},
} }
list.nix = { list.nix = {

View file

@ -8,11 +8,12 @@
(integer_scalar) @number (integer_scalar) @number
(float_scalar) @number (float_scalar) @number
(comment) @comment (comment) @comment
(anchor) @type (anchor_name) @type
(alias) @type (alias_name) @type
(tag) @type (tag) @type
(yaml_directive) @keyword (yaml_directive) @keyword
(ERROR) @error (ERROR) @error
[ [
"," ","
"-" "-"
@ -21,9 +22,12 @@
"?" "?"
"|" "|"
] @punctuation.delimiter ] @punctuation.delimiter
[ [
"[" "["
"]" "]"
"{" "{"
"}" "}"
] @punctuation.bracket ] @punctuation.bracket
["*" "&"] @punctuation.special

View file

@ -1,4 +1,4 @@
(document) @scope (document) @scope
(anchor) @definition (anchor_name) @definition
(alias) @reference (alias_name) @reference