mirror of
https://github.com/scopatz/nanorc
synced 2024-11-24 01:25:39 +01:00
Handle this the proper way
Suggested-by: SuperSandro2000 <sandro.jaeckel@posteo.de> Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
8b6b6b5ad8
commit
3cbbea4a30
@ -109,7 +109,7 @@ color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
|||||||
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
color brightblue " //.*"
|
color brightblue "^\s*//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
|
||||||
## Trailing whitespace
|
## Trailing whitespace
|
||||||
|
@ -11,7 +11,7 @@ color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|
|
|||||||
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
||||||
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
## Highlight comments
|
## Highlight comments
|
||||||
color brightblue " //.*"
|
color brightblue "^\s*//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
## Highlight trailing whitespace
|
## Highlight trailing whitespace
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
2
c.nanorc
2
c.nanorc
@ -35,7 +35,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
|
|||||||
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
|
|
||||||
## Comment highlighting
|
## Comment highlighting
|
||||||
color brightblue " //.*"
|
color brightblue "^\s*//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
|
||||||
## Trailing whitespace
|
## Trailing whitespace
|
||||||
|
@ -7,7 +7,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa
|
|||||||
color red ""[^"]*""
|
color red ""[^"]*""
|
||||||
color yellow "\<(true|false|null)\>"
|
color yellow "\<(true|false|null)\>"
|
||||||
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
||||||
color blue " //.*"
|
color blue "^\s*//.*"
|
||||||
color blue start="/\*" end="\*/"
|
color blue start="/\*" end="\*/"
|
||||||
color brightblue start="/\*\*" end="\*/"
|
color brightblue start="/\*\*" end="\*/"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -49,4 +49,4 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
|||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
color brightblue " //.*$"
|
color brightblue "^\s*//.*$"
|
||||||
|
@ -19,7 +19,7 @@ color brightred "\<(inner|outer)\>"
|
|||||||
color brightblue "<[^= ]*>" ""(\\.|[^"])*""
|
color brightblue "<[^= ]*>" ""(\\.|[^"])*""
|
||||||
|
|
||||||
## Comment highlighting
|
## Comment highlighting
|
||||||
color red " //.*"
|
color red "^\s*//.*"
|
||||||
color red start="/\*" end="\*/"
|
color red start="/\*" end="\*/"
|
||||||
|
|
||||||
## Trailing whitespace
|
## Trailing whitespace
|
||||||
|
@ -11,5 +11,5 @@ color brightred "\<(fog|object|camera)\>"
|
|||||||
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
||||||
color brightmagenta "\<(union|group|subgroup)\>"
|
color brightmagenta "\<(union|group|subgroup)\>"
|
||||||
## Comment highlighting
|
## Comment highlighting
|
||||||
color brightblue " //.*"
|
color brightblue "^\s*//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
@ -26,7 +26,7 @@ color green start="\".*\\$" end=".*\""
|
|||||||
color green start="r#+\"" end="\"#+"
|
color green start="r#+\"" end="\"#+"
|
||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
color blue " //.*"
|
color blue "^\s*//.*"
|
||||||
color blue start="/\*" end="\*/"
|
color blue start="/\*" end="\*/"
|
||||||
|
|
||||||
# Attributes
|
# Attributes
|
||||||
|
@ -6,7 +6,7 @@ color red "\<(match|val|var|break|case|catch|continue|default|do|else|finally|fo
|
|||||||
color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\>"
|
color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\>"
|
||||||
color red ""[^"]*""
|
color red ""[^"]*""
|
||||||
color yellow "\<(true|false|null)\>"
|
color yellow "\<(true|false|null)\>"
|
||||||
color blue " //.*"
|
color blue "^\s*//.*"
|
||||||
color blue start="/\*" end="\*/"
|
color blue start="/\*" end="\*/"
|
||||||
color brightblue start="/\*\*" end="\*/"
|
color brightblue start="/\*\*" end="\*/"
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -55,8 +55,8 @@ color red ""[^"]*""
|
|||||||
color white start="\\\(" end="\)"
|
color white start="\\\(" end="\)"
|
||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
color green " //.*"
|
color green "^\s*//.*"
|
||||||
color brightgreen " ///.*"
|
color brightgreen "^\s*///.*"
|
||||||
color green start="/\*\*" end="\*/"
|
color green start="/\*\*" end="\*/"
|
||||||
color green "[/**]"
|
color green "[/**]"
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
|||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
color magenta start="/\*" end="\*/"
|
color magenta start="/\*" end="\*/"
|
||||||
color magenta " //.*$"
|
color magenta "^\s*//.*$"
|
||||||
|
|
||||||
## Trailing whitespace
|
## Trailing whitespace
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
@ -74,7 +74,7 @@ color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>"
|
|||||||
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
|
|
||||||
# Comments.
|
# Comments.
|
||||||
color brightblue " //.*"
|
color brightblue "^\s*//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
|
||||||
# Reminders.
|
# Reminders.
|
||||||
|
Loading…
Reference in New Issue
Block a user