Requiring again that the triple quote that starts a docstring
is followed by some character. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5238 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
1f3148db4b
Коммит
7b2ea40575
@ -4,6 +4,10 @@
|
|||||||
* doc/syntax/debian.nanorc: Colour also an optional option.
|
* doc/syntax/debian.nanorc: Colour also an optional option.
|
||||||
This addresses Debian bug #664456 reported by Shawn Landden.
|
This addresses Debian bug #664456 reported by Shawn Landden.
|
||||||
Also shorten the name of the syntax to "sources.list".
|
Also shorten the name of the syntax to "sources.list".
|
||||||
|
* doc/syntax/python.nanorc: Require again that the triple quote that
|
||||||
|
starts a docstring is followed by some character -- it is better to
|
||||||
|
*not* colour some strings than far too often colour far too much.
|
||||||
|
This addresses Debian bug #785508 reported by Alexandre Detiste.
|
||||||
|
|
||||||
2015-05-31 Mahyar Abbaspour <mahyar.abaspour@gmail.com>
|
2015-05-31 Mahyar Abbaspour <mahyar.abaspour@gmail.com>
|
||||||
* src/prompt.c (get_statusbar_page_start): Prevent a floating-point
|
* src/prompt.c (get_statusbar_page_start): Prevent a floating-point
|
||||||
|
@ -16,8 +16,8 @@ color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
|
|||||||
# Comments.
|
# Comments.
|
||||||
color brightred "(^|[[:blank:]])#.*$"
|
color brightred "(^|[[:blank:]])#.*$"
|
||||||
# Multiline strings.
|
# Multiline strings.
|
||||||
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(])\"\"\""
|
color brightgreen start="\"\"\"[^"),]" end="(^|[^(])\"\"\""
|
||||||
color brightgreen start="'''([^'),]|$)" end="(^|[^(])'''"
|
color brightgreen start="'''[^'),]" end="(^|[^(])'''"
|
||||||
|
|
||||||
# Reminders.
|
# Reminders.
|
||||||
color ,yellow "(FIXME|TODO|XXX)"
|
color ,yellow "(FIXME|TODO|XXX)"
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user