aboutsummaryrefslogtreecommitdiffstats
path: root/queries/r
diff options
context:
space:
mode:
authorPedro Castro <aspeddro@gmail.com>2022-01-27 12:06:51 -0300
committerStephan Seitz <stephan.seitz@fau.de>2022-01-28 14:32:58 +0100
commit07770b2daaeefb0b6166788af269cb67a9f0609c (patch)
treea6f1582300451b1e9ed833671d811ccff85c8f78 /queries/r
parentUpdate lockfile.json (#2380) (diff)
downloadnvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.tar
nvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.tar.gz
nvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.tar.bz2
nvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.tar.lz
nvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.tar.xz
nvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.tar.zst
nvim-treesitter-07770b2daaeefb0b6166788af269cb67a9f0609c.zip
highlights(r): highlight string_escape, change parameter priority and update pipe
Diffstat (limited to 'queries/r')
-rwxr-xr-xqueries/r/highlights.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/queries/r/highlights.scm b/queries/r/highlights.scm
index ee5414313..2688746b9 100755
--- a/queries/r/highlights.scm
+++ b/queries/r/highlights.scm
@@ -11,10 +11,10 @@
(comment) @comment
-(formal_parameters (identifier) @parameter)
-
(identifier) @variable
+(formal_parameters (identifier) @parameter)
+
; Operators
[
"="
@@ -48,10 +48,12 @@
"&"
":"
"~"
- "|>"
] @operator)
-(special) @operator
+[
+ "|>"
+ (special)
+] @operator
[
"("
@@ -117,5 +119,7 @@
(namespace_get_internal namespace: (identifier) @namespace
":::" @operator)
+(string (escape_sequence) @string.escape)
+
; Error
(ERROR) @error