smol/syntax
Benno Schulenberg 0dbe857ba2 syntaxes: undouble the backslash within bracket expressions
Within a bracket expression, the backslash is not special,
so it does not need to be escaped.

The double backslashes within brackets were found with:

  grep -o  '\[[^][]*\\\\[^][]*\]'  syntax{,/extra}/*rc

Also, incorporate the square brackets into some bracket expressions
by listing the closing bracket first, saving a separate regex for
those two brackets.
2021-10-18 12:14:05 +02:00
..
extra syntaxes: undouble the backslash within bracket expressions 2021-10-18 12:14:05 +02:00
Makefile.am syntax: ada: new file -- coloring rules for Ada 2012 files 2020-06-21 09:33:14 +02:00
asm.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
autoconf.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
awk.nanorc syntaxes: drop three redundant end-of-line anchors 2021-10-15 10:17:28 +02:00
c.nanorc syntaxes: undouble the backslash within bracket expressions 2021-10-18 12:14:05 +02:00
changelog.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
cmake.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
css.nanorc syntax: css: differentiate pseudo-classes (now cyan) from comments (blue) 2020-07-30 09:25:12 +02:00
default.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
elisp.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
email.nanorc syntax: email: use a character class, as \s does not work inside brackets 2021-10-18 11:52:05 +02:00
go.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
groff.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
guile.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
html.nanorc syntaxes: uniformize the initial comment 2020-04-20 19:21:56 +02:00
java.nanorc syntaxes: uniformize the initial comment 2020-04-20 19:21:56 +02:00
javascript.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
json.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
lua.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
makefile.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
man.nanorc syntaxes: remove unneeded backslash escapes before quotes 2020-07-27 13:23:13 +02:00
markdown.nanorc syntax: markdown: add author and license line 2020-09-15 19:11:35 +02:00
nanohelp.nanorc help: use smaller triangles for the arrows 2021-06-14 09:29:27 +02:00
nanorc.nanorc syntax: nanorc: recognize also the template of the sample nanorc file 2021-09-15 10:00:41 +02:00
nftables.nanorc syntaxes: undouble the backslash within bracket expressions 2021-10-18 12:14:05 +02:00
objc.nanorc syntaxes: undouble the backslash within bracket expressions 2021-10-18 12:14:05 +02:00
ocaml.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
patch.nanorc syntaxes: uniformize the initial comment 2020-04-20 19:21:56 +02:00
perl.nanorc syntax: perl, ruby: remove arbitrary highlighting of here documents 2021-08-09 09:56:50 +02:00
php.nanorc syntax: php: colorize the full short tag for echo (<?=) 2021-05-05 12:09:17 +02:00
po.nanorc syntaxes: drop three redundant end-of-line anchors 2021-10-15 10:17:28 +02:00
python.nanorc syntaxes: remove some superfluous outer parentheses from regexes 2020-04-21 12:49:29 +02:00
ruby.nanorc syntax: perl, ruby: remove arbitrary highlighting of here documents 2021-08-09 09:56:50 +02:00
rust.nanorc syntax: rust: update the license to GPL3 or newer 2021-06-27 11:17:37 +02:00
sh.nanorc syntaxes: undouble the backslash within bracket expressions 2021-10-18 12:14:05 +02:00
sql.nanorc syntax: sql: rename the file to match the name of the syntax 2020-06-16 14:44:57 +02:00
tcl.nanorc syntaxes: replace [[:space:]] with [[:blank:]] to exclude carriage return 2021-04-27 11:18:41 +02:00
tex.nanorc syntaxes: uniformize the initial comment 2020-04-20 19:21:56 +02:00
texinfo.nanorc syntax: texinfo: be more precise in colorizing @commands 2021-10-17 12:25:01 +02:00
xml.nanorc syntaxes: remove unneeded backslash escapes before quotes 2020-07-27 13:23:13 +02:00
yaml.nanorc syntax: yaml: allow slash and period in key names 2021-10-03 15:38:43 +02:00