diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-08-02 06:05:25 -0700 |
|---|---|---|
| committer | 再生花 <hoangtun0810@gmail.com> | 2024-08-02 22:45:14 +0900 |
| commit | 09bad640e4507885fa0e7035348c7854c531b3d6 (patch) | |
| tree | 493565db453d3e8d3c7e9a85d3f1e7d4b99efbf0 /tests | |
| parent | bot(lockfile): update kotlin, nix, perl (diff) | |
| download | nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.tar nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.tar.gz nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.tar.bz2 nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.tar.lz nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.tar.xz nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.tar.zst nvim-treesitter-09bad640e4507885fa0e7035348c7854c531b3d6.zip | |
fix(query): proper indentation after quantifiers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/query/test.scm | 9 | ||||
| -rw-r--r-- | tests/indent/query_spec.lua | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/indent/query/test.scm b/tests/indent/query/test.scm index 62b94417c..56d755690 100644 --- a/tests/indent/query/test.scm +++ b/tests/indent/query/test.scm @@ -38,4 +38,13 @@ "toplevel" "list" ] @variable + +[ + (parent + (child))+ + (parent + (child))* + (parent + (child))? +] @cap (( diff --git a/tests/indent/query_spec.lua b/tests/indent/query_spec.lua index 1f9c2315d..ca2ccdef5 100644 --- a/tests/indent/query_spec.lua +++ b/tests/indent/query_spec.lua @@ -20,6 +20,9 @@ describe("indent Query:", function() run:new_line("test.scm", { on_line = 34, text = '"more"', indent = 2 }) run:new_line("test.scm", { on_line = 35, text = "(node)", indent = 0 }) run:new_line("test.scm", { on_line = 40, text = "(node)", indent = 0 }) - run:new_line("test.scm", { on_line = 41, text = "node_name", indent = 2 }) + run:new_line("test.scm", { on_line = 44, text = "(node)", indent = 2 }) + run:new_line("test.scm", { on_line = 46, text = "(node)", indent = 2 }) + run:new_line("test.scm", { on_line = 48, text = "(node)", indent = 2 }) + run:new_line("test.scm", { on_line = 50, text = "node_name", indent = 2 }) end) end) |
