Fix block comments highlighting

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
pull/272/head
Harsh Shandilya 4 years ago
parent 8a999dde46
commit a22ad89b77
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62

@ -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,6 +11,6 @@ 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="\*/"
color ,green "[[:space:]]+$"

@ -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…
Cancel
Save