1
0
mirror of https://github.com/scopatz/nanorc synced 2024-10-31 23:00:00 +01:00

Merge pull request #249 from msfjarvis/msf/gradle

Add Gradle syntax highlighting
This commit is contained in:
Anthony Scopatz 2019-10-03 13:06:08 -04:00 committed by GitHub
commit e4b5e155c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

23
gradle.nanorc Normal file
View 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:]]+$"

1
nanorc
View File

@ -24,6 +24,7 @@ include "~/.nano/git.nanorc"
include "~/.nano/gitcommit.nanorc" include "~/.nano/gitcommit.nanorc"
include "~/.nano/glsl.nanorc" include "~/.nano/glsl.nanorc"
include "~/.nano/go.nanorc" include "~/.nano/go.nanorc"
include "~/.nano/gradle.nanorc"
include "~/.nano/groff.nanorc" include "~/.nano/groff.nanorc"
include "~/.nano/haml.nanorc" include "~/.nano/haml.nanorc"
include "~/.nano/haskell.nanorc" include "~/.nano/haskell.nanorc"