mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +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 green "\"(\\.|[^\"])*\""
|
||||
color white "#.*"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -7,3 +7,5 @@ icolor white ""(\\.|[^"])*""
|
|||
## Comments
|
||||
icolor brightblue "^[[: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 start="\/\*" end="\*\/"
|
||||
color green ";|:|\{|\}"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -28,3 +28,6 @@ color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
|
|||
|
||||
# Comment Color
|
||||
color brightblue "#.*$"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -22,3 +22,5 @@ color brightcyan "##[^{].*$" "##$"
|
|||
color green start="<<-?'?EOT'?" end="^EOT"
|
||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -48,3 +48,6 @@ icolor cyan "<[^= ]*>" "'(\\.|[^"])*'"
|
|||
|
||||
## Comment highlighting
|
||||
icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -14,3 +14,5 @@ color brightblue "(@|@@)[0-9A-Z_a-z]+"
|
|||
## Comments
|
||||
color brightcyan "#[^{].*$" "#$"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -29,3 +29,6 @@ color green "--.*"
|
|||
color green start="\{-" end="-\}"
|
||||
|
||||
color brightred "undefined"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -6,3 +6,6 @@ color red "&[^;[[:space:]]]*;"
|
|||
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 magenta start="<!--" end="-->"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -38,6 +38,9 @@ color red "\<(true|false)\>"
|
|||
color brightyellow "L?\"(\\"|[^"])*\""
|
||||
color brightyellow "L?'(\'|[^'])*'"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
||||
## Escapes
|
||||
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
||||
|
||||
|
|
|
@ -45,3 +45,6 @@ color yellow "`[^`]*`|^ {4}[^-+*].*"
|
|||
# code blocks
|
||||
color yellow start="^```[^$]" end="^```$"
|
||||
color yellow "^```$"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -23,3 +23,5 @@ color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
|
|||
color white start="\(\*" end="\*\)"
|
||||
#strings (no multiline handling yet)
|
||||
color brightblack ""[^\"]*""
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -11,3 +11,6 @@ color white "[sm]/.*/"
|
|||
color white start="(^use| = new)" end=";"
|
||||
color green "#.*"
|
||||
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 brightgreen "#.*"
|
||||
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="\"\"\""
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -30,3 +30,5 @@ color brightcyan "##[^{].*$" "##$"
|
|||
color green start="<<-?'?EOT'?" end="^EOT"
|
||||
## Some common markers
|
||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -34,3 +34,6 @@ color magenta start="#!\[" end="\]"
|
|||
|
||||
# Some common markers
|
||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -24,3 +24,6 @@ color brightblack "^#.*"
|
|||
|
||||
# Logic keywords
|
||||
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="<!--" end="-->"
|
||||
color red "&[^;]*;"
|
||||
|
||||
## Trailing spaces
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
Loading…
Reference in New Issue
Block a user