mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 16:45:40 +01:00
Merge pull request #127 from elofu17/patch-1
Color any trailing whitespace in green
This commit is contained in:
commit
954811a396
@ -42,3 +42,6 @@ color brightcyan "</?[A-Za-z]+"
|
|||||||
color brightcyan "(<|</|>)"
|
color brightcyan "(<|</|>)"
|
||||||
color green "\"(\\.|[^\"])*\""
|
color green "\"(\\.|[^\"])*\""
|
||||||
color white "#.*"
|
color white "#.*"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -7,3 +7,5 @@ icolor white ""(\\.|[^"])*""
|
|||||||
## Comments
|
## Comments
|
||||||
icolor brightblue "^[[:space:]]*#.*$"
|
icolor brightblue "^[[:space:]]*#.*$"
|
||||||
icolor cyan "^[[:space:]]*##.*$"
|
icolor cyan "^[[:space:]]*##.*$"
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -8,3 +8,6 @@ color brightwhite start=":" end="[;^\{]"
|
|||||||
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
|
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
|
||||||
color brightblue start="\/\*" end="\*\/"
|
color brightblue start="\/\*" end="\*\/"
|
||||||
color green ";|:|\{|\}"
|
color green ";|:|\{|\}"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -28,3 +28,6 @@ color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
|
|||||||
|
|
||||||
# Comment Color
|
# Comment Color
|
||||||
color brightblue "#.*$"
|
color brightblue "#.*$"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -22,3 +22,5 @@ color brightcyan "##[^{].*$" "##$"
|
|||||||
color green start="<<-?'?EOT'?" end="^EOT"
|
color green start="<<-?'?EOT'?" end="^EOT"
|
||||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -48,3 +48,6 @@ icolor cyan "<[^= ]*>" "'(\\.|[^"])*'"
|
|||||||
|
|
||||||
## Comment highlighting
|
## Comment highlighting
|
||||||
icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$"
|
icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -14,3 +14,5 @@ color brightblue "(@|@@)[0-9A-Z_a-z]+"
|
|||||||
## Comments
|
## Comments
|
||||||
color brightcyan "#[^{].*$" "#$"
|
color brightcyan "#[^{].*$" "#$"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -29,3 +29,6 @@ color green "--.*"
|
|||||||
color green start="\{-" end="-\}"
|
color green start="\{-" end="-\}"
|
||||||
|
|
||||||
color brightred "undefined"
|
color brightred "undefined"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -6,3 +6,6 @@ color red "&[^;[[:space:]]]*;"
|
|||||||
color yellow ""[^"]*"|qq\|.*\|"
|
color yellow ""[^"]*"|qq\|.*\|"
|
||||||
color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)="
|
color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)="
|
||||||
color magenta start="<!--" end="-->"
|
color magenta start="<!--" end="-->"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -38,6 +38,9 @@ color red "\<(true|false)\>"
|
|||||||
color brightyellow "L?\"(\\"|[^"])*\""
|
color brightyellow "L?\"(\\"|[^"])*\""
|
||||||
color brightyellow "L?'(\'|[^'])*'"
|
color brightyellow "L?'(\'|[^'])*'"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
|
||||||
## Escapes
|
## Escapes
|
||||||
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
||||||
|
|
||||||
|
@ -45,3 +45,6 @@ color yellow "`[^`]*`|^ {4}[^-+*].*"
|
|||||||
# code blocks
|
# code blocks
|
||||||
color yellow start="^```[^$]" end="^```$"
|
color yellow start="^```[^$]" end="^```$"
|
||||||
color yellow "^```$"
|
color yellow "^```$"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -23,3 +23,5 @@ color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
|
|||||||
color white start="\(\*" end="\*\)"
|
color white start="\(\*" end="\*\)"
|
||||||
#strings (no multiline handling yet)
|
#strings (no multiline handling yet)
|
||||||
color brightblack ""[^\"]*""
|
color brightblack ""[^\"]*""
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -11,3 +11,6 @@ color white "[sm]/.*/"
|
|||||||
color white start="(^use| = new)" end=";"
|
color white start="(^use| = new)" end=";"
|
||||||
color green "#.*"
|
color green "#.*"
|
||||||
color yellow start="<< 'STOP'" end="STOP"
|
color yellow start="<< 'STOP'" end="STOP"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -14,3 +14,6 @@ color white "[sm]/.*/"
|
|||||||
color brightblue start="(^use| = new)" end=";"
|
color brightblue start="(^use| = new)" end=";"
|
||||||
color brightgreen "#.*"
|
color brightgreen "#.*"
|
||||||
color brightred start="<<EOSQL" end="EOSQL"
|
color brightred start="<<EOSQL" end="EOSQL"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -47,3 +47,6 @@ color green start=""""([^"]|$)" end=""""" start="'''([^']|$)" end="'''"
|
|||||||
#color cyan start=""""" end=""""" start="'''" end="'''"
|
#color cyan start=""""" end=""""" start="'''" end="'''"
|
||||||
#color cyan start="("""[^"]|[^"]""")" end="("""[^"]|[^"]""")" start="'''[^']" end="'''"
|
#color cyan start="("""[^"]|[^"]""")" end="("""[^"]|[^"]""")" start="'''[^']" end="'''"
|
||||||
#color cyan start="\"\"\"" end="\"\"\""
|
#color cyan start="\"\"\"" end="\"\"\""
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -30,3 +30,5 @@ color brightcyan "##[^{].*$" "##$"
|
|||||||
color green start="<<-?'?EOT'?" end="^EOT"
|
color green start="<<-?'?EOT'?" end="^EOT"
|
||||||
## Some common markers
|
## Some common markers
|
||||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -34,3 +34,6 @@ color magenta start="#!\[" end="\]"
|
|||||||
|
|
||||||
# Some common markers
|
# Some common markers
|
||||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -24,3 +24,6 @@ color brightblack "^#.*"
|
|||||||
|
|
||||||
# Logic keywords
|
# Logic keywords
|
||||||
color magenta "\<(if|elif|else|or|not|and|endif|end)\>"
|
color magenta "\<(if|elif|else|or|not|and|endif|end)\>"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -9,3 +9,6 @@ color cyan ">"
|
|||||||
color yellow start="<!DOCTYPE" end="[/]?>"
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
||||||
color yellow start="<!--" end="-->"
|
color yellow start="<!--" end="-->"
|
||||||
color red "&[^;]*;"
|
color red "&[^;]*;"
|
||||||
|
|
||||||
|
## Trailing spaces
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
Loading…
Reference in New Issue
Block a user