mirror of git://git.sv.gnu.org/nano.git
syntax: perl: avoid recognizing embedded hash signs as a comment starter
Require that a comment starts at the start of a line or is preceded by whitespace. This prevents most hash signs used for other purposes (and what follows them) getting colored as comments.
This commit is contained in:
parent
1e3f3a7511
commit
ee91c51e09
|
@ -11,5 +11,8 @@ icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)"
|
|||
color yellow "".*"|qq\|.*\|"
|
||||
color white "[sm]/.*/"
|
||||
color white start="(^use| = new)" end=";"
|
||||
color green "#.*"
|
||||
|
||||
# Comments.
|
||||
color green "(^|[[:space:]])#.*"
|
||||
|
||||
color yellow start="<< 'STOP'" end="STOP"
|
||||
|
|
Loading…
Reference in New Issue