diff options
| author | Robert Brunhage <robertbrunhage@gmail.com> | 2023-04-10 08:52:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-10 06:52:50 +0000 |
| commit | 2fe7f969c193fc2e5cad747617f52214c83450fa (patch) | |
| tree | beef2edd2774b6f718d908a18ebb4dc4b29b3302 /tests | |
| parent | fix(rust): highlight SNAKE_CASE scoped identifier name as @constant (diff) | |
| download | nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.tar nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.tar.gz nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.tar.bz2 nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.tar.lz nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.tar.xz nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.tar.zst nvim-treesitter-2fe7f969c193fc2e5cad747617f52214c83450fa.zip | |
fix(dart): try statement wouldn't indent (#4623)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/dart/try.dart | 5 | ||||
| -rw-r--r-- | tests/indent/dart_spec.lua | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/dart/try.dart b/tests/indent/dart/try.dart new file mode 100644 index 000000000..807ad3b0f --- /dev/null +++ b/tests/indent/dart/try.dart @@ -0,0 +1,5 @@ +void test() { + try{ + } catch(e) { + } +} diff --git a/tests/indent/dart_spec.lua b/tests/indent/dart_spec.lua index 8b05cc753..fde41b362 100644 --- a/tests/indent/dart_spec.lua +++ b/tests/indent/dart_spec.lua @@ -17,4 +17,5 @@ end) describe("new line:", function() run:new_line("class.dart", { on_line = 2, text = "var x;", indent = 0 }) + run:new_line("try.dart", { on_line = 2, text = "var x;", indent = 4 }) end) |
