From e06e7ab1ee41aeff9e29f43de47ac25eef474808 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 19 Nov 2025 01:19:49 +0100 Subject: refactored some lexer configurations to make them more pleasurable to look at * color.target is yellow in terminal.tes which looks awful and it should be used sparingly. The largest part of text in any lexer should be in the default colors. * bash.tes now discerns between double and single quote strings like most lexers. * autodetect GNUmakefiles * yaml.tes now uses color.string for keys - this is for consistency with JSON where keys will also always be strings. --- lib/lexers/bash.tes | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/lexers/bash.tes') diff --git a/lib/lexers/bash.tes b/lib/lexers/bash.tes index 862a0c1..893fc8d 100644 --- a/lib/lexers/bash.tes +++ b/lib/lexers/bash.tes @@ -35,10 +35,12 @@ :M[color.number],3M[color.set] :M[color.keyword],4M[color.set] :M[color.string],5M[color.set] - :M[color.string],6M[color.set] + :M[color.string2],6M[color.set] :M[color.operator],7M[color.set] - :M[color.target],8M[color.set] !* Identifiers, e.g. FOO=... *! + !!:M[color.target],8M[color.set] !* Identifiers, e.g. FOO=... *! :M[color.variable],9M[color.set] :M[color.variable],10M[color.set] - :M[color.string2],11M[color.set] !* Backticks *! + :M[color.preproc],11M[color.set] !* Backticks *! + :M[color.target],12M[color.set] !* Heredoc delimiter *! + :M[color.preproc2],13M[color.set] !* Heredoc *! } -- cgit v1.2.3