aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Davis2021-10-14 18:58:08 +0000
committerMichael Davis2021-10-17 15:50:20 +0000
commit80b54f2f69165897bfab376d031fab8e040331b6 (patch)
treedb9bf446dd2f7a338ef0474687c04b0e7c67c2d0
parent8f658f0dceffa7bcf2ea18cd6fd0a7dab4e37663 (diff)
use special.string.symbol instead of symbol
this aligns better with how ruby highlights symbols
-rw-r--r--book/src/themes.md3
-rw-r--r--runtime/queries/elixir/highlights.scm2
2 files changed, 2 insertions, 3 deletions
diff --git a/book/src/themes.md b/book/src/themes.md
index 2d75ac57..5a4d0403 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 33a84ace..a882fb63 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)