diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-11-23 20:13:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 20:13:51 +0100 |
commit | dd8a4e2c22ea8018ce3af989134b1e9c4607ce37 (patch) | |
tree | ebea7fdde54850d789173b77d9f6be2434121e28 /test/functional | |
parent | fd6df7481a88006fd60bc8980b4db1000ddeda27 (diff) | |
parent | 5676edb86d5d82b1426d7fff53996c0aebdf95de (diff) | |
download | rneovim-dd8a4e2c22ea8018ce3af989134b1e9c4607ce37.tar.gz rneovim-dd8a4e2c22ea8018ce3af989134b1e9c4607ce37.tar.bz2 rneovim-dd8a4e2c22ea8018ce3af989134b1e9c4607ce37.zip |
Merge pull request #16402 from clason/treesitter-bump
build(deps): bump tree-sitter,treesitter-c to v0.20.1 and adapt tests
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/treesitter/parser_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua index ffaa4141c4..1138cfbf4c 100644 --- a/test/functional/treesitter/parser_spec.lua +++ b/test/functional/treesitter/parser_spec.lua @@ -231,11 +231,11 @@ void ui_refresh(void) insert('char* astring = "\\n"; (1 + 1) * 2 != 2;') local res = exec_lua([[ - cquery = vim.treesitter.parse_query("c", '((_) @plus (vim-match? @plus "^\\\\+$"))'.. - '((_) @times (vim-match? @times "^\\\\*$"))'.. - '((_) @paren (vim-match? @paren "^\\\\($"))'.. - '((_) @escape (vim-match? @escape "^\\\\\\\\n$"))'.. - '((_) @string (vim-match? @string "^\\"\\\\\\\\n\\"$"))') + cquery = vim.treesitter.parse_query("c", '([_] @plus (#vim-match? @plus "^\\\\+$"))'.. + '([_] @times (#vim-match? @times "^\\\\*$"))'.. + '([_] @paren (#vim-match? @paren "^\\\\($"))'.. + '([_] @escape (#vim-match? @escape "^\\\\\\\\n$"))'.. + '([_] @string (#vim-match? @string "^\\"\\\\\\\\n\\"$"))') parser = vim.treesitter.get_parser(0, "c") tree = parser:parse()[1] res = {} @@ -321,7 +321,7 @@ void ui_refresh(void) insert('char* astring = "Hello World!";') local res = exec_lua([[ - cquery = vim.treesitter.parse_query("c", '((_) @quote (vim-match? @quote "^\\"$")) ((_) @quote (lua-match? @quote "^\\"$"))') + cquery = vim.treesitter.parse_query("c", '([_] @quote (#vim-match? @quote "^\\"$")) ([_] @quote (#lua-match? @quote "^\\"$"))') parser = vim.treesitter.get_parser(0, "c") tree = parser:parse()[1] res = {} |