mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
indents(r): add tests
This commit is contained in:
parent
807b20d0de
commit
995f462898
5 changed files with 50 additions and 0 deletions
17
tests/indent/r/loop.R
Normal file
17
tests/indent/r/loop.R
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
x <- 1
|
||||
|
||||
while (x < 10) {
|
||||
x <- x + 1
|
||||
break
|
||||
}
|
||||
|
||||
for (i in 1:3) {
|
||||
x <- x + 1
|
||||
}
|
||||
|
||||
repeat {
|
||||
x <- x + 1
|
||||
if (x > 100) {
|
||||
break
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue