-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgroovy.nanorc
19 lines (18 loc) · 916 Bytes
/
groovy.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# from https://github.com/domix/nanorc/blob/master/groovy.nanorc
## Here is an example for Groovy.
##
syntax "groovy" "\.groovy$|Jenkinsfile$|jenkinsfile$"
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient)\>"
color green "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
color green "\<(def|abstract|class|extends|final|void|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)|\+|\-|\*|\/"
color red "@(\\.|[^(])*"
color yellow "\<(true|false|null)\>"
color cyan "//.*"
color cyan start="/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"
color cyan start="/\*\*" end="\*/"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color ,cyan "[[:space:]]+$"
color yellow ""[^"]*""
color yellow "'[^']*'"