From: Benno Schulenberg Date: Wed, 2 Dec 2015 09:19:04 +0000 (+0000) Subject: Not colouring triple quotes by themselves (in Python). X-Git-Tag: v2.5.0~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5634d7d7170429d0974d5a2557dd635fe3a2d354;p=nano.git Not colouring triple quotes by themselves (in Python). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 37ec3ea7..0e91ed63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2015-12-02 Benno Schulenberg + * doc/syntax/python.nanorc: Don't colour triple quotes by themselves. + 2015-12-02 Arturo Borrero Gonzalez * doc/syntax/nftables.nanorc: New file; syntax colouring for nftables. This addresses Debian bug #805288. diff --git a/doc/syntax/python.nanorc b/doc/syntax/python.nanorc index b5bd15b3..9662a580 100644 --- a/doc/syntax/python.nanorc +++ b/doc/syntax/python.nanorc @@ -11,8 +11,8 @@ color brightcyan "\<(and|as|assert|break|class|continue|def|del|elif|else|except color brightcyan "\<(global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\>" # Strings. -color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" -color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color brightgreen "['][^']*[^'\\][']" "[']{3}.*[^'\\][']{3}" +color brightgreen "["][^"]*[^"\\]["]" "["]{3}.*[^"\\]["]{3}" # Comments. color brightred "(^|[[:blank:]])#.*$" # Multiline strings.