mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
update: add tests for comments and function calls
This commit is contained in:
parent
9ffd7f1858
commit
da0928d643
1 changed files with 15 additions and 0 deletions
|
|
@ -8,6 +8,15 @@ public var item = 1;
|
|||
# ^ number
|
||||
# ^ punctuation.delimiter
|
||||
|
||||
# hash comment
|
||||
# <- spell
|
||||
|
||||
// slash comment
|
||||
# <- spell
|
||||
|
||||
/* block comment */
|
||||
# <- spell
|
||||
|
||||
fun name(arg1,
|
||||
# ^ keyword.function
|
||||
# ^ function
|
||||
|
|
@ -125,3 +134,9 @@ fun name(arg1,
|
|||
# <- punctuation.bracket
|
||||
}
|
||||
# <- punctuation.bracket
|
||||
|
||||
name(42)
|
||||
# <- function.call
|
||||
# ^ punctuation.bracket
|
||||
# ^ number
|
||||
# ^ punctuation.bracket
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue