From 346c07efc194ed6ccef6ab23ce5dc528f80031b3 Mon Sep 17 00:00:00 2001 From: Ilya Shchepetkov Date: Mon, 11 Sep 2023 14:26:30 +0400 Subject: [PATCH] Racket: mark all quoted symbols as @symbol --- queries/racket/highlights.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/queries/racket/highlights.scm b/queries/racket/highlights.scm index af06503342b..cb553cec443 100644 --- a/queries/racket/highlights.scm +++ b/queries/racket/highlights.scm @@ -25,6 +25,8 @@ (regex) @string.regex +((string) @symbol (#has-ancestor? @symbol quote)) + ;; comment ;; [(comment) @@ -41,6 +43,8 @@ ((symbol) @comment (#lua-match? @comment "^#[cC][iIsS]$")) +((symbol) @symbol (#has-ancestor? @symbol quote)) + ;; extension ;; (extension) @keyword @@ -58,7 +62,7 @@ (list . - (symbol) @function) + (symbol) @function (#not-has-ancestor? @function quote)) ;;------------------------------------------------------------------;; ;; Builtin highlights ;;