r: update highlights

This commit is contained in:
Pedro Castro 2022-10-29 22:53:01 -03:00 committed by Stephan Seitz
parent ae5ab287bb
commit 58c0d78de8
2 changed files with 73 additions and 9 deletions

View file

@ -0,0 +1,47 @@
init <- 1
# ^ @variable
# ^ @operator
# ^ @float
r"{(\1\2)}" -> `%r%`
# ^ @string
# ^ @string.escape
# ^ @operator
# ^ @variable
foo <- c(1L, 2L)
# ^ @function.call
# ^ @number
b <- list(TRUE, FALSE, NA, Inf)
# ^ @boolean
# ^ @boolean
# ^ @constant.builtin
# ^ @constant.builtin
b <- list(name = "r", version = R.version$major)
# ^ @parameter
# ^ @string
# ^ @punctuation.special
# ^ @field
Lang$new(name = "r")$print()
# ^ @method.call
for(i in 1:10) {
# <- @repeat
# ^ @keyword
}
add <- function(a, b = 1, ...) {
# ^ @keyword.function
# ^ @parameter
# ^ @parameter
# ^ @keyword
return(a + b)
}
base::letters
# ^ @namespace
# ^ @variable