]> git.wh0rd.org Git - nano.git/commitdiff
Not colouring triple quotes by themselves (in Python).
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 2 Dec 2015 09:19:04 +0000 (09:19 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Wed, 2 Dec 2015 09:19:04 +0000 (09:19 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/python.nanorc

index 37ec3ea7f7c14afa17dce0f4bb4521b43ea56654..0e91ed63ff90fd52bb78b9f81777c9081eda8057 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2015-12-02  Benno Schulenberg  <bensberg@justemail.net>
+       * doc/syntax/python.nanorc: Don't colour triple quotes by themselves.
+
 2015-12-02  Arturo Borrero Gonzalez  <arturo.borrero.glez@gmail.com>
        * doc/syntax/nftables.nanorc: New file; syntax colouring for nftables.
        This addresses Debian bug #805288.
index b5bd15b334937e373705a18950b159cb9ae7495c..9662a5800097ab74f3053f8f9e0c247ca094eeea 100644 (file)
@@ -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.