Improve C and C++ syntax highlighting (#25325)
Release Notes: - Improved C and C++ syntax highlighting. | Zed 0.174.6 | With this PR | | --- | --- | |  |  | - `NULL`, `nullptr`: `constant` -> `constant.builtin` ```cpp #include <stdbool.h> int a[] = {true, false}; const int * IDENTIFIER = nullptr; ``` --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
parent
7deceb62dc
commit
144d8a1db6
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@
|
||||||
(false)
|
(false)
|
||||||
] @boolean
|
] @boolean
|
||||||
|
|
||||||
(null) @constant
|
(null) @constant.builtin
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ type :(primitive_type) @type.primitive
|
||||||
[
|
[
|
||||||
(null)
|
(null)
|
||||||
("nullptr")
|
("nullptr")
|
||||||
] @constant
|
] @constant.builtin
|
||||||
|
|
||||||
(number_literal) @number
|
(number_literal) @number
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue