crates/languages/src/c/highlights.scm 🔗
@@ -102,8 +102,9 @@
[
(true)
(false)
- (null)
-] @constant
+] @boolean
+
+(null) @constant
(identifier) @variable
everdrone and Marshall Bowers created
Release Notes:
- Fixed issue where `true` and `false` were highlighted as constants,
ignoring the `boolean` highlight defined in themes.
- This fix applies to: C, C++, Go, JSON, JSONC, Python, and Rust.
---------
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
crates/languages/src/c/highlights.scm | 5 +++--
crates/languages/src/cpp/highlights.scm | 3 +++
crates/languages/src/go/highlights.scm | 3 +++
crates/languages/src/json/highlights.scm | 3 +++
crates/languages/src/jsonc/highlights.scm | 3 +++
crates/languages/src/python/highlights.scm | 5 ++++-
crates/languages/src/rust/highlights.scm | 2 +-
7 files changed, 20 insertions(+), 4 deletions(-)
@@ -102,8 +102,9 @@
[
(true)
(false)
- (null)
-] @constant
+] @boolean
+
+(null) @constant
(identifier) @variable
@@ -153,6 +153,9 @@ type :(primitive_type) @type.primitive
[
(true)
(false)
+] @boolean
+
+[
(null)
("nullptr")
] @constant
@@ -118,6 +118,9 @@
[
(true)
(false)
+] @boolean
+
+[
(nil)
(iota)
] @constant.builtin
@@ -11,6 +11,9 @@
[
(true)
(false)
+] @boolean
+
+[
(null)
] @constant
@@ -11,6 +11,9 @@
[
(true)
(false)
+] @boolean
+
+[
(null)
] @constant
@@ -95,9 +95,12 @@
; Literals
[
- (none)
(true)
(false)
+] @boolean
+
+[
+ (none)
(ellipsis)
] @constant.builtin
@@ -129,7 +129,7 @@
(float_literal)
] @number
-(boolean_literal) @constant
+(boolean_literal) @boolean
[
(line_comment)