From 07770b2daaeefb0b6166788af269cb67a9f0609c Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Thu, 27 Jan 2022 12:06:51 -0300 Subject: highlights(r): highlight string_escape, change parameter priority and update pipe --- queries/r/highlights.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/queries/r/highlights.scm b/queries/r/highlights.scm index ee541431..2688746b 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 -- cgit v1.2.3