Skip to content

Instantly share code, notes, and snippets.

@lefou
Last active November 18, 2021 05:06
Show Gist options
  • Save lefou/4567763 to your computer and use it in GitHub Desktop.
Save lefou/4567763 to your computer and use it in GitHub Desktop.
Color theme for console editor nano, supporting Scala language.
## Nano color theme for Scala.
## 2013, 2018, Tobias Roeser
##
syntax "scala" "\.(scala|sbt|sc)$"
color green "\<(new|this|transient)\>"
color green "\<(catch|do|else|finally|for|if|match|return|switch|throw|try|val|var|while)\>"
color green "\<(def|abstract|class|extends|final|import|package|private|protected|public|trait|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 ""[^"]*""
@batakpout
Copy link

Great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment