diff options
| author | aspeddro <pdesacastro@gmail.com> | 2021-11-15 21:24:32 -0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-18 14:16:09 +0100 |
| commit | 190bcc8d56c0b4c5047492d17b1615c6e89139af (patch) | |
| tree | e34c50ddd4f3900bd000c791a1269128013e4dad | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.tar nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.tar.gz nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.tar.bz2 nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.tar.lz nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.tar.xz nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.tar.zst nvim-treesitter-190bcc8d56c0b4c5047492d17b1615c6e89139af.zip | |
r add new highlights
| -rwxr-xr-x | queries/r/highlights.scm | 55 |
1 files changed, 42 insertions, 13 deletions
diff --git a/queries/r/highlights.scm b/queries/r/highlights.scm index bd00c29b9..3c0f8ce7d 100755 --- a/queries/r/highlights.scm +++ b/queries/r/highlights.scm @@ -1,16 +1,25 @@ ; highlights.scm (call function: (identifier) @function) +(call arguments: + (arguments + name: (identifier) @parameter )) + +(lambda_function "\\" @operator) + (namespace_get function: (identifier) @method) (namespace_get_internal function: (identifier) @method) -(namespace_get namespace: (identifier) @namespace ) -(namespace_get_internal namespace: (identifier) @namespace ) + +(namespace_get namespace: (identifier) @namespace + "::" @operator) +(namespace_get_internal namespace: (identifier) @namespace + ":::" @operator) ; Literals (integer) @number -(float) @number +(float) @float (complex) @number @@ -69,23 +78,43 @@ "}" ] @punctuation.bracket +(dollar "$" @operator) + +(subset2 + "[[" @punctuation.bracket + "]]" @punctuation.bracket) + [ - "while" - "if" - "else" - "repeat" - "for" "in" (dots) - (true) - (false) (break) (next) (inf) - (nan) - (na) - (null) ] @keyword +[ + (nan) + (na) + (null) +] @type.builtin + +[ + "if" + "else" +] @conditional + +[ + "while" + "repeat" + "for" +] @repeat + +[ + (true) + (false) +] @boolean "function" @keyword.function + +; Error +(ERROR) @error |
