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