smol/syntax
Benno Schulenberg 8f1cd50f1e syntax: python: avoid miscoloring stuff between two empty strings
The quotes of an empty string ('' or "") should be colored just like
those of a non-empty string, because otherwise the text *between* two
empty strings on the same line gets colored.

Add an extra rule to discolor triple quotes again to not make them
look like valid by themselves.

Also, remove six superfluous backslashes.

This addresses https://savannah.gnu.org/patch/?9801.
Reported-by: Ryan Westlund <rlwestlund@gmail.com>
2019-05-11 19:05:45 +02:00
..
Makefile.am help: use a dedicated syntax to color shortcuts in a help text 2017-04-25 17:21:46 +02:00
asm.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
autoconf.nanorc tweaks: slightly indent warnings and errors during the configure phase 2018-12-16 14:41:31 +01:00
awk.nanorc tweaks: fold a few pairs of regexes into each other 2018-11-03 21:32:07 +01:00
c.nanorc syntax: c: change the highlighting of preprocessor directives 2019-04-06 17:51:07 +02:00
changelog.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
cmake.nanorc tweaks: fold a few pairs of regexes into each other 2018-11-03 21:32:07 +01:00
css.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
debian.nanorc syntaxes: condense and/or correct some extension regexes 2018-05-18 20:40:08 +02:00
default.nanorc syntax: default: color in red also versions 4.x of nano 2019-03-30 19:54:58 +01:00
elisp.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
fortran.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
gentoo.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
go.nanorc syntaxes: remove all traces of the 'formatter' command 2018-08-09 21:12:10 +02:00
groff.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
guile.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
html.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
java.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
javascript.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
json.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
lua.nanorc syntax: lua: do not color strings inside comments, and add a linter 2018-08-28 20:16:16 +02:00
makefile.nanorc syntax: makefile: color all keywords that GNU make recognizes 2018-05-30 11:29:08 +02:00
man.nanorc syntax: man: require the dot to be at start of line, not the comment 2019-03-31 12:42:53 +02:00
mgp.nanorc tweaks: fold a few pairs of regexes into each other 2018-11-03 21:32:07 +01:00
mutt.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
nanohelp.nanorc tweaks: renumber a couple of symbols, and reshuffle a bit of code 2018-11-07 19:30:04 +01:00
nanorc.nanorc syntax: nanorc: colorize also strings preceded by 'start=' or 'end=' 2019-04-02 12:01:56 +02:00
nftables.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
objc.nanorc tweaks: snip trailing whitespace that ended with a non-breaking space 2018-11-03 20:41:42 +01: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: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
perl.nanorc tweaks: remove some ineffectual parts from header-line regexes 2018-08-28 19:53:36 +02:00
php.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
po.nanorc syntax: po: colorize also escaped hex and octal codes 2019-05-03 12:12:44 +02:00
postgresql.nanorc tweaks: fold a few pairs of regexes into each other 2018-11-03 21:32:07 +01:00
pov.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
python.nanorc syntax: python: avoid miscoloring stuff between two empty strings 2019-05-11 19:05:45 +02:00
ruby.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
rust.nanorc syntaxes: condense and/or correct some extension regexes 2018-05-18 20:40:08 +02:00
sh.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
spec.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
tcl.nanorc tweaks: condense two regexes in the Tcl syntax, and add a comment 2018-12-17 16:00:54 +01:00
tex.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00
texinfo.nanorc syntaxes: remove several redundant end-of-line anchors from regexes 2018-11-03 21:12:44 +01:00
xml.nanorc syntaxes: remove quotes from each syntax name, and color it differently 2018-02-14 17:36:50 +01:00