From a1ef1d3f769cd082323936d01fc767143d74054b Mon Sep 17 00:00:00 2001 From: Nils Koch Date: Fri, 3 Jan 2025 21:51:43 +0100 Subject: [PATCH] Add syntax highlighting for character literals in Haskell, PureScript, and Zig (#22609) Closes #22480 Release Notes: - N/A | Before | After | |----------|----------| | before | after | 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 --- extensions/haskell/languages/haskell/highlights.scm | 2 +- extensions/purescript/languages/purescript/highlights.scm | 2 +- extensions/zig/languages/zig/highlights.scm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/haskell/languages/haskell/highlights.scm b/extensions/haskell/languages/haskell/highlights.scm index aca744f5cd..3ffc6512b8 100644 --- a/extensions/haskell/languages/haskell/highlights.scm +++ b/extensions/haskell/languages/haskell/highlights.scm @@ -18,7 +18,7 @@ (integer) @number (exp_negation) @number (exp_literal (float)) @float -(char) @character +(char) @string (string) @string (con_unit) @symbol ; unit, as in () diff --git a/extensions/purescript/languages/purescript/highlights.scm b/extensions/purescript/languages/purescript/highlights.scm index b6e969af78..fe2db3115d 100644 --- a/extensions/purescript/languages/purescript/highlights.scm +++ b/extensions/purescript/languages/purescript/highlights.scm @@ -18,7 +18,7 @@ (integer) @number (exp_negation) @number (exp_literal (number)) @float -(char) @character +(char) @string [ (string) (triple_quote_string) diff --git a/extensions/zig/languages/zig/highlights.scm b/extensions/zig/languages/zig/highlights.scm index 20c256eb63..c4be851e88 100644 --- a/extensions/zig/languages/zig/highlights.scm +++ b/extensions/zig/languages/zig/highlights.scm @@ -249,7 +249,7 @@ ; Literals -(character) @character +(character) @string ([ (string)