nano/syntax/tex.nanorc
Benno Schulenberg 2181853574 syntaxes: use character classes instead of range expressions
In some locales certain normal ASCII characters are not included in
the ranges [A-Z] and [a-z].  So, use [[:upper:]] and [[:lower:]]
instead, and [[:alpha:]] for [A-Za-z], and similarly for others.

This fixes https://savannah.gnu.org/bugs/?67094.
2025-05-08 10:24:49 +02:00

12 lines
202 B
Plaintext

## Syntax highlighting for TeX files.
syntax tex "\.tex$"
magic "(La)?TeX document"
comment "%"
linter chktex -v0 -q -I
color green "\\.|\\[[:alpha:]]*"
color magenta "[{}]"
color blue "(^|[^\])%.*"