mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-28 05:09:49 +03:00
syntax: ruby: colorize embedded documentation as a comment
Vim and Emacs do this too. Reference: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Lexicology Also, when colorizing double-hashed comments specially anyway, avoid colorizing ##.* as a single-hashed comment.
This commit is contained in:
parent
7691527f35
commit
375b30507e
@ -30,8 +30,9 @@ color brightgreen "#\{[^}]*\}"
|
||||
color green "'([^']|\\')*'" "%[qw](\{[^}]*\}|\([^)]*\)|<[^>]*>|\[[^]]*\]|\$[^$]*\$|\^[^^]*\^|![^!]*!)"
|
||||
|
||||
# Comments.
|
||||
color cyan "#([^{].*|$)"
|
||||
color cyan "#([^{#].*|$)"
|
||||
color brightcyan "##([^{].*|$)"
|
||||
color cyan start="^=begin\>" end="^=end\>"
|
||||
|
||||
# Some common markers.
|
||||
color brightcyan "XXX|TODO|FIXME|\?\?\?"
|
||||
|
Loading…
Reference in New Issue
Block a user