Benno Schulenberg
6b7c661fb7
syntax: po: improve the coloring of format specifiers
...
This now handles most of the things listed in 'man 3 printf'.
2021-04-26 11:29:05 +02:00
Benno Schulenberg
9e382ba691
syntaxes: add author and license lines to four of the files
...
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2020-09-14 19:38:29 +02:00
Benno Schulenberg
3940032cd3
syntax: po: do not leave the occasional tab with a red background color
2020-09-10 19:48:31 +02:00
Benno Schulenberg
0bc834e6f3
syntax: po: highlight embedded control codes that shouldn't be there
...
For some reason the Romanian PO file contains a literal ^Q in one
of its translated messages -- currently at line 1984. This stray
^Q causes 'file' to classify po/ro.po as data.
Make such mistaken control codes easier to spot when using nano.
2020-09-08 19:38:55 +02:00
Benno Schulenberg
f502f6fdb2
syntaxes: remove unneeded backslash escapes before quotes
...
(They may have been needed in the past to avoid miscoloring of the
nanorc file itself, but they are no longer needed now.)
2020-07-27 13:23:13 +02:00
Benno Schulenberg
227467adb9
syntaxes: remove some superfluous outer parentheses from regexes
...
Also, standardize some comments, condense a few regexes, add some
word-edge anchors, and remove some superfluous backslashes.
2020-04-21 12:49:29 +02:00
Benno Schulenberg
fea5d7c612
syntaxes: uniformize the initial comment
2020-04-20 19:21:56 +02:00
Benno Schulenberg
3b8847f319
syntax: po: colorize numbers only when they form a self-contained word
2019-07-29 19:12:58 +02:00
Benno Schulenberg
dfe87540c6
syntax: po: colorize also escaped hex and octal codes
2019-05-03 12:12:44 +02:00
Benno Schulenberg
636e9ac3e8
syntaxes: remove several redundant end-of-line anchors from regexes
2018-11-03 21:12:44 +01:00
Benno Schulenberg
30a984661b
syntax: po: highlight also other escaped characters, not just \n
...
Especially color \a and \t, to make it easier to distinguish them
from contiguous text.
2018-04-17 09:56:19 +02:00
Benno Schulenberg
3e1fc6385b
syntaxes: remove quotes from each syntax name, and color it differently
...
The different color will make the name stand out, as it should, instead
of looking the same as all the regex strings.
2018-02-14 17:36:50 +01:00
Benno Schulenberg
1f48ed0412
syntaxes: remove redundant word-boundary markers
2017-12-30 17:32:15 +01:00
Benno Schulenberg
ddb8e95d39
syntax: python: color also the special values 'False', 'None', 'True'
...
And increase the contrast for the reminders, both for PO and Python.
2017-12-10 14:35:13 +01:00
Benno Schulenberg
b0ef2e2803
build: move the syntax files out of the doc/ directory
...
They are not documentation, they are functional elements of nano.
2016-12-30 22:05:01 +01:00