From 39f24f7405fed883e044883403121c23eaeee72b Mon Sep 17 00:00:00 2001 From: Michael Davis <mcarsondavis@gmail.com> Date: Thu, 14 Oct 2021 13:58:08 -0500 Subject: [PATCH] use special.string.symbol instead of symbol this aligns better with how ruby highlights symbols --- book/src/themes.md | 3 +-- runtime/queries/elixir/highlights.scm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/book/src/themes.md b/book/src/themes.md index 2d75ac57661a7..5a4d040384c2a 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -119,8 +119,7 @@ We use a similar set of scopes as - `special` - `path` - `url` - -- `symbol` - Elixir atoms, Ruby symbols, Clojure keywords + - `symbol` - Erlang/Elixir atoms, Ruby symbols, Clojure keywords - `comment` - Code comments - `line` - Single line comments (`//`) diff --git a/runtime/queries/elixir/highlights.scm b/runtime/queries/elixir/highlights.scm index 33a84ace80df5..a882fb63bc6ab 100644 --- a/runtime/queries/elixir/highlights.scm +++ b/runtime/queries/elixir/highlights.scm @@ -97,7 +97,7 @@ (quoted_atom) (keyword) (quoted_keyword) -] @symbol +] @string.special.symbol [ (string)