mirror of
https://github.com/scopatz/nanorc
synced 2024-12-03 13:45:40 +01:00
Add Gradle syntax highlighting
Taken from https://lists.debian.org/debian-java/2015/10/msg00019.html Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
37c5b36068
commit
b50db7f96e
23
gradle.nanorc
Normal file
23
gradle.nanorc
Normal file
@ -0,0 +1,23 @@
|
||||
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 ,green "[[:space:]]+$"
|
Loading…
Reference in New Issue
Block a user