From c7aa7bf4baf8e0ac4eca3ebdca065ab2a7bea95c Mon Sep 17 00:00:00 2001 From: Kirawi Date: Wed, 7 Jul 2021 20:51:46 -0400 Subject: VSCode Dark+ Theme (#414) * wip * Add VSCode Dark+ Theme wip wip wip wip wip wip properly detect constants add bool wip * suggestion * add variant for c/c++ * fix hexcode error * removed regex highlight * fixed constant higlighting * wip * add space * add suggestions * update theme * update book * suggestions * fix c/c++ enum * update book--- runtime/queries/c/highlights.scm | 2 ++ runtime/queries/rust/highlights.scm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime/queries') diff --git a/runtime/queries/c/highlights.scm b/runtime/queries/c/highlights.scm index 36fe47d9..258e07e7 100644 --- a/runtime/queries/c/highlights.scm +++ b/runtime/queries/c/highlights.scm @@ -54,6 +54,8 @@ "." @punctuation.delimiter ";" @punctuation.delimiter +(enumerator) @type.enum.variant + (string_literal) @string (system_lib_string) @string diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index b72216f6..bb15074b 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -3,9 +3,10 @@ ; Assume all-caps names are constants ((identifier) @constant - (#match? @constant "^[A-Z][A-Z\\d_]+$'")) + (#match? @constant "^[A-Z][A-Z\\d_]+$")) ; Assume other uppercase names are enum constructors +(enum_variant) @type.enum.variant ((identifier) @constructor (#match? @constructor "^[A-Z]")) -- cgit v1.2.3-70-g09d2