aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter/parser_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-08-31 14:11:15 +0100
committerLewis Russell <me@lewisr.dev>2023-08-31 15:12:17 +0100
commitdd0e77d48a843fc9730fe4ef7567330daf8dfb81 (patch)
tree2384878b06c27f01f5499dbcbbeb5f1c99247a7b /test/functional/treesitter/parser_spec.lua
parent845d5b8b64190e0e09a6a6dd97bdbc0e6f96eb02 (diff)
downloadrneovim-dd0e77d48a843fc9730fe4ef7567330daf8dfb81.tar.gz
rneovim-dd0e77d48a843fc9730fe4ef7567330daf8dfb81.tar.bz2
rneovim-dd0e77d48a843fc9730fe4ef7567330daf8dfb81.zip
fix(query_error): multiline bug
Diffstat (limited to 'test/functional/treesitter/parser_spec.lua')
-rw-r--r--test/functional/treesitter/parser_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua
index 37dde37a64..8222bb59c4 100644
--- a/test/functional/treesitter/parser_spec.lua
+++ b/test/functional/treesitter/parser_spec.lua
@@ -1090,9 +1090,9 @@ int x = INT_MAX;
-- Invalid capture name
test(
- '.../query.lua:0: Query error at 1:30. Invalid capture name "ok.capture":\n'..
- '((identifier) @id (#eq? @id @ok.capture))\n'..
- ' ^',
- '((identifier) @id (#eq? @id @ok.capture))')
+ '.../query.lua:0: Query error at 3:2. Invalid capture name "ok.capture":\n'..
+ '@ok.capture\n'..
+ ' ^',
+ '((identifier) @id \n(#eq? @id\n@ok.capture\n))')
end)
end)