mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 19:36:52 +03:00
Not letting hashes inside triple-quoted strings cause comment colouring.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5159 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6440aa9e47
commit
e39cf37026
@ -1,5 +1,9 @@
|
|||||||
2015-03-25 Benno Schulenberg <bensberg@justemail.net>
|
2015-03-25 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* doc/syntax/debian.nanorc: Slightly widen and relax the header regex.
|
* doc/syntax/debian.nanorc: Slightly widen and relax the header regex.
|
||||||
|
* doc/syntax/python.nanorc: Hashes inside triple-quoted strings should
|
||||||
|
not cause comment colouring. (Inside single-qouted strings neither,
|
||||||
|
but then quotes in comments will be coloured like strings.) This
|
||||||
|
solves https://bugs.launchpad.net/ubuntu/+source/nano/+bug/481363.
|
||||||
|
|
||||||
2015-03-23 Benno Schulenberg <bensberg@justemail.net>
|
2015-03-23 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c (do_alt_speller): Avoid the spell checker reporting
|
* src/text.c (do_alt_speller): Avoid the spell checker reporting
|
||||||
|
@ -12,12 +12,12 @@ color brightcyan "\<(global|if|import|in|is|lambda|not|or|pass|print|raise|retur
|
|||||||
# Strings.
|
# Strings.
|
||||||
color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
|
color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
|
||||||
color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
|
color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
|
||||||
|
# Comments.
|
||||||
|
color brightred "(^|[[:blank:]])#.*$"
|
||||||
# Multiline strings.
|
# Multiline strings.
|
||||||
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(])\"\"\""
|
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(])\"\"\""
|
||||||
color brightgreen start="'''([^'),]|$)" end="(^|[^(])'''"
|
color brightgreen start="'''([^'),]|$)" end="(^|[^(])'''"
|
||||||
|
|
||||||
# Comments.
|
|
||||||
color brightred "(^|[[:blank:]])#.*$"
|
|
||||||
# Reminders.
|
# Reminders.
|
||||||
color ,yellow "(FIXME|TODO|XXX)"
|
color ,yellow "(FIXME|TODO|XXX)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user