Add syntax highlighting for character literals in Haskell, PureScript, and Zig (#22609)
Closes #22480 Release Notes: - N/A | Before | After | |----------|----------| | <img width="344" alt="before" src="https://github.com/user-attachments/assets/37f8daf7-c9a0-4259-8c03-bd1a4479abca" /> | <img width="344" alt="after" src="https://github.com/user-attachments/assets/0f7e4429-e48b-4b32-9797-a0da8487e23e" /> | Zig, Haskel, and PureScript define a character caputure name in `highlights.scm`, but we did not define a color for that capture name in the themes. The new character color is the same as the string color in all themes. --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
04518b11bc
commit
a1ef1d3f76
3 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@
|
||||||
(integer) @number
|
(integer) @number
|
||||||
(exp_negation) @number
|
(exp_negation) @number
|
||||||
(exp_literal (float)) @float
|
(exp_literal (float)) @float
|
||||||
(char) @character
|
(char) @string
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
(con_unit) @symbol ; unit, as in ()
|
(con_unit) @symbol ; unit, as in ()
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
(integer) @number
|
(integer) @number
|
||||||
(exp_negation) @number
|
(exp_negation) @number
|
||||||
(exp_literal (number)) @float
|
(exp_literal (number)) @float
|
||||||
(char) @character
|
(char) @string
|
||||||
[
|
[
|
||||||
(string)
|
(string)
|
||||||
(triple_quote_string)
|
(triple_quote_string)
|
||||||
|
|
|
@ -249,7 +249,7 @@
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
(character) @character
|
(character) @string
|
||||||
|
|
||||||
([
|
([
|
||||||
(string)
|
(string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue