mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
feat(r)!: update parser and queries
This commit is contained in:
parent
173515a5d2
commit
5373c90c55
9 changed files with 117 additions and 132 deletions
|
|
@ -5,7 +5,6 @@ init <- 1
|
|||
|
||||
r"{(\1\2)}" -> `%r%`
|
||||
# ^ @string
|
||||
# ^ @string.escape
|
||||
# ^ @operator
|
||||
# ^ @variable
|
||||
|
||||
|
|
@ -24,21 +23,21 @@ b <- list(name = "r", version = R.version$major)
|
|||
# ^ @variable.parameter
|
||||
# ^ @string
|
||||
# ^ @operator
|
||||
# ^ @variable.member
|
||||
# ^ @variable
|
||||
|
||||
Lang$new(name = "r")$print()
|
||||
# ^ @function.method.call
|
||||
# ^ @variable
|
||||
|
||||
for(i in 1:10) {
|
||||
# <- @keyword.repeat
|
||||
# ^ @keyword.repeat
|
||||
# ^ @keyword
|
||||
}
|
||||
|
||||
add <- function(a, b = 1, ...) {
|
||||
# ^ @keyword.function
|
||||
# ^ @variable.parameter
|
||||
# ^ @variable.parameter
|
||||
# ^ @keyword
|
||||
# ^ @constant.builtin
|
||||
return(a + b)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue