fix(dart): try statement wouldn't indent (#4623)

This commit is contained in:
Robert Brunhage 2023-04-10 08:52:50 +02:00 committed by GitHub
parent fa9fe9a95b
commit 2fe7f969c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,7 @@
(list_literal)
(return_statement)
(arguments)
(try_statement)
] @indent.begin
[

View file

@ -0,0 +1,5 @@
void test() {
try{
} catch(e) {
}
}

View file

@ -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)