diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 13:49:21 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 18:54:55 +0100 |
| commit | a14970861cd574048cc01f1a5d6ae184c2dfd64b (patch) | |
| tree | d5af2f68052a9e76f7f37443e828d163cd48f8d5 | |
| parent | indens(c): use (comment) @auto (diff) | |
| download | nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.tar nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.tar.gz nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.tar.bz2 nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.tar.lz nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.tar.xz nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.tar.zst nvim-treesitter-a14970861cd574048cc01f1a5d6ae184c2dfd64b.zip | |
indents(lua): use `(comment) @auto`
| -rw-r--r-- | queries/lua/indents.scm | 1 | ||||
| -rw-r--r-- | tests/indent/lua/comment.lua | 6 | ||||
| -rw-r--r-- | tests/indent/lua_spec.lua | 4 |
3 files changed, 1 insertions, 10 deletions
diff --git a/queries/lua/indents.scm b/queries/lua/indents.scm index 64b6a33d4..8c4432d56 100644 --- a/queries/lua/indents.scm +++ b/queries/lua/indents.scm @@ -37,6 +37,5 @@ ] @branch (comment) @auto -(comment) @ignore (string) @auto diff --git a/tests/indent/lua/comment.lua b/tests/indent/lua/comment.lua index 36ed01530..9f3624e1e 100644 --- a/tests/indent/lua/comment.lua +++ b/tests/indent/lua/comment.lua @@ -5,9 +5,3 @@ another comment --]] - - --[[ - another - comment - a bit more indented - --]] diff --git a/tests/indent/lua_spec.lua b/tests/indent/lua_spec.lua index 17584a9ee..b90c9b66e 100644 --- a/tests/indent/lua_spec.lua +++ b/tests/indent/lua_spec.lua @@ -11,9 +11,7 @@ local run = Runner:new(it, "tests/indent/lua", { describe("indent Lua:", function() describe("whole file:", function() run:whole_file(".", { - expected_failures = { - "./comment.lua", - }, + expected_failures = {}, }) end) |
