Benno Schulenberg
f69a08fc63
syntax: man: colorize also the .MT .ME .EX .EE .SY .OP and .YS macros
...
Furthermore, colorize .LP .P and .PP like .TP, as paragraph macros,
instead of inconsistenly as if they specified type faces.
2024-07-15 07:48:14 +02:00
Benno Schulenberg
c70e6919c2
syntaxes: mention the original author of most of the syntax files
...
The names of the authors were retrieved from:
git log -p --follow syntax/<name>.nanorc
and from:
git log -p --follow --all -- doc/nanorc.sample
For some files the original author is unclear, or
the file is/was too small to mention an author for.
2024-06-08 12:10:25 +02:00
Benno Schulenberg
a1159ff484
syntax: man: colorize some of the things that manipulate hyphenation
...
Reference:
https://www.gnu.org/software/groff/manual/groff.html.node/Manipulating-Hyphenation.html
2024-06-06 13:29:01 +02:00
Benno Schulenberg
89bb88e4f5
syntaxes: fold a couple of regexes together, and improve a few comments
2022-02-16 13:07:11 +01: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
85804ec70d
syntax: man: require the dot to be at start of line, not the comment
2019-03-31 12:42:53 +02:00
Benno Schulenberg
e473ba5e6c
syntax: man: anchor macros at start of line, as only then they are valid
2019-03-30 20:54:31 +01:00
Benno Schulenberg
9120a62cdd
syntax: man: add comments, and color all the safe lowercase macros
2019-03-30 20:47:45 +01:00
Benno Schulenberg
636e9ac3e8
syntaxes: remove several redundant end-of-line anchors from regexes
2018-11-03 21:12:44 +01: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
bacb0f717d
syntax: adjust the magic strings for the changes since file-5.10
...
Since file-5.10 (end of 2011), libmagic identifies a C file in most
cases as "C source" instead of as "C program". Nano's magic strings
for some other files didn't match any more what file-5.32 currently
produces, either. So, they have been adjusted, new ones added, and
old ones deleted.
This fixes https://savannah.gnu.org/bugs/?52445 .
2017-11-19 11:24:30 +01:00
Benno Schulenberg
79971a309f
docs: remove the mention of backslashes for the argument of 'comment'
...
Also remove the backslashes from the two syntaxes that contained them.
This completes the fix for https://savannah.gnu.org/bugs/?51370 .
2017-07-07 10:15:17 +02:00
Benno Schulenberg
09f516a58b
syntax: man, groff: fix the string that introduces a comment
...
The comment marker is not «."» but «.\"», which requires three
backslashes to specify. Also adjust the documentation.
2017-07-03 11:07:21 +02: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