41 lines
1.4 KiB
Text
41 lines
1.4 KiB
Text
syntax "groovy" "\.(groovy|gradle)$"
|
|
|
|
# Keywords
|
|
color brightblue "\<(boolean|byte|char|double|enum|float|int|long|new|short|super|this|transient)\>"
|
|
color brightblue "\<(as|assert|break|case|catch|continue|default|do|else|finally|for|goto|if|in|return|switch|throw|try|while)\>"
|
|
color brightblue "\<(abstract|class|extends|implements|import|interface|native|package|private|protected|public|static|strictfp|synchronized|throws|trait|void|volatile)\>"
|
|
color brightblue "\<(const|def|final|instanceof)\>"
|
|
color brightblue "\<(true|false|null)\>"
|
|
|
|
# Strings
|
|
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
|
|
|
# Interpolation
|
|
icolor yellow "\$\{[^\}]*}"
|
|
|
|
# Comments
|
|
color cyan "^//.*"
|
|
color cyan "\s//.*"
|
|
color cyan start="^/\*(\*)?" end="\*/"
|
|
color cyan start="\s/\*(\*)?" end="\*/"
|
|
|
|
# Trailing whitespace
|
|
color ,red "[[:space:]]+$"
|
|
|
|
# rainbow indent
|
|
color ,brightblack "^[[:space:]]{32}"
|
|
color ,black "^[[:space:]]{30}"
|
|
color ,brightblack "^[[:space:]]{28}"
|
|
color ,black "^[[:space:]]{26}"
|
|
color ,brightblack "^[[:space:]]{24}"
|
|
color ,black "^[[:space:]]{22}"
|
|
color ,brightblack "^[[:space:]]{20}"
|
|
color ,black "^[[:space:]]{18}"
|
|
color ,brightblack "^[[:space:]]{16}"
|
|
color ,black "^[[:space:]]{14}"
|
|
color ,brightblack "^[[:space:]]{12}"
|
|
color ,black "^[[:space:]]{10}"
|
|
color ,brightblack "^[[:space:]]{8}"
|
|
color ,black "^[[:space:]]{6}"
|
|
color ,brightblack "^[[:space:]]{4}"
|
|
color ,black "^[[:space:]]{2}"
|