mirror of
https://github.com/scopatz/nanorc
synced 2024-12-25 14:54:51 +01:00
Merge pull request #272 from msfjarvis/bug/block-comments-highlighting
Fix block comments highlighting
This commit is contained in:
commit
e2ebb2be34
|
@ -20,7 +20,7 @@ color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|||
color magenta "\\([btnfr]|'|\"|\\)"
|
||||
color magenta "\\u[A-Fa-f0-9]{4}"
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightblack start="^\s*/\*" end="\*/"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " + +| + +"
|
||||
|
|
|
@ -5,4 +5,4 @@ color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|
|
|||
color red "=|->|--"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightblack start="^\s*/\*" end="\*/"
|
||||
|
|
|
@ -26,7 +26,7 @@ color yellow ""(\\.|[^"])*""
|
|||
|
||||
# Comments
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightblack start="^\s*/\*" end="\*/"
|
||||
color brightblack start="\(\*" end="\*\)"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ color blue start=""""" end="""""
|
|||
color yellow "(^|[[:space:]])//.*"
|
||||
|
||||
# Block comment.
|
||||
color yellow start="/\*" end="\*/"
|
||||
color yellow start="^\s*/\*" end="\*/"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -9,7 +9,7 @@ color brightcyan "\<(true|false)\>"
|
|||
color red "[-+/*=<>?:!~%&|^]"
|
||||
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>"
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightblack start="^\s*/\*" end="\*/"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " + +| + +"
|
||||
|
|
|
@ -17,7 +17,7 @@ color magenta "\\[abfnrtv'\"\\]"
|
|||
color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
||||
color yellow "`[^`]*`"
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightblack start="^\s*/\*" end="\*/"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " + +| + +"
|
||||
|
|
|
@ -11,7 +11,7 @@ color red ""[^"]*""
|
|||
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"
|
||||
color blue "^\s*//.*"
|
||||
color blue start="/\*" end="\*/"
|
||||
color blue start="^\s*/\*" end="\*/"
|
||||
color brightblue start="/\*\*" end="\*/"
|
||||
|
||||
# Highlighting for javadoc stuff
|
||||
|
|
|
@ -49,5 +49,5 @@ color ,green "[[:space:]]+$"
|
|||
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
||||
|
||||
## Comments
|
||||
color brightblue start="/\*" end="\*/"
|
||||
color brightblue start="^\s*/\*" end="\*/"
|
||||
color brightblue "^\s*//.*$"
|
||||
|
|
|
@ -20,7 +20,7 @@ color brightblue "<[^= ]*>" ""(\\.|[^"])*""
|
|||
|
||||
## Comment highlighting
|
||||
color red "^\s*//.*"
|
||||
color red start="/\*" end="\*/"
|
||||
color red start="^\s*/\*" end="\*/"
|
||||
|
||||
## Trailing whitespace
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -14,4 +14,4 @@ color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|||
color brightmagenta "\<(union|group|subgroup)\>"
|
||||
## Comment highlighting
|
||||
color brightblue "^\s*//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
color brightblue start="^\s*/\*" end="\*/"
|
||||
|
|
|
@ -26,7 +26,7 @@ color green start="'" end="'"
|
|||
|
||||
# Comments
|
||||
color white "(^|[[:blank:]])%.*$"
|
||||
color white start="/\*" end="\*/"
|
||||
color white start="^\s*/\*" end="\*/"
|
||||
|
||||
# Reminders
|
||||
color black,yellow "(BUG|DEBUG|FIXME|IDEA|NOTE|REVIEW|TEMP|TODO|WARNING|XXX)"
|
||||
|
|
|
@ -27,7 +27,7 @@ color cyan "('[^']*')|(\"[^\"]*\")"
|
|||
icolor green "\(" "\)" "\," "\="
|
||||
# Comments, dashes and spaces
|
||||
color blue "\s+(//.*)"
|
||||
color blue start="/\*" end="\*/"
|
||||
color blue start="^\s*/\*" end="\*/"
|
||||
color white "^\s*(\-)"
|
||||
color ,green "[[:space:]]+$"
|
||||
# Unbuffered comments
|
||||
|
|
|
@ -30,7 +30,7 @@ color green start="r#+\"" end="\"#+"
|
|||
|
||||
# Comments
|
||||
color blue "^\s*//.*"
|
||||
color blue start="/\*" end="\*/"
|
||||
color blue start="^\s*/\*" end="\*/"
|
||||
|
||||
# Attributes
|
||||
color magenta start="#!\[" end="\]"
|
||||
|
|
|
@ -7,6 +7,6 @@ color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final|
|
|||
color red ""[^"]*""
|
||||
color yellow "\<(true|false|null)\>"
|
||||
color blue "^\s*//.*"
|
||||
color blue start="/\*" end="\*/"
|
||||
color blue start="^\s*/\*" end="\*/"
|
||||
color brightblue start="/\*\*" end="\*/"
|
||||
color ,green "[[:space:]]+$"
|
||||
|
|
|
@ -12,7 +12,7 @@ color blue "\<([0-9]+)\>"
|
|||
color red "[-+/*=<>?:!~%&|]" "->"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightblack start="^\s*/\*" end="\*/"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " + +| + +"
|
||||
|
|
Loading…
Reference in New Issue
Block a user