syntax: python: don't require a character after an opening triple quote
The succeeding character was needed to avoid miscolorings due to nano getting confused about starts and ends. But since commitmaster7ef5c532
, nano should be getting the starts and ends always right, so... undo "temporary" commit7b2ea405
from two years ago. This addresses https://savannah.gnu.org/bugs/?51526. Reported-by: <exodus6395@googlemail.com>
parent
1c1cbae6bc
commit
884d410d9d
|
@ -17,8 +17,8 @@ color brightgreen ""([^"\]|\\.)+""
|
|||
# Comments.
|
||||
color brightred "(^|[[:blank:]])#.*$"
|
||||
# Triple-quoted strings.
|
||||
color brightgreen start="'''[^'),]" end="(^|[^(\])'''"
|
||||
color brightgreen start="\"\"\"[^"),]" end="(^|[^(\])\"\"\""
|
||||
color brightgreen start="'''([^'),]|$)" end="(^|[^(\])'''"
|
||||
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(\])\"\"\""
|
||||
|
||||
# Reminders.
|
||||
color ,yellow "(FIXME|TODO|XXX)"
|
||||
|
|
Loading…
Reference in New Issue