improve solarized theme and Scala syntax highlighting

This commit is contained in:
Matthew Vilim 2018-06-22 13:31:40 -07:00
parent fbae96a53b
commit b63d410219
4 changed files with 14 additions and 12 deletions

View File

@ -21,13 +21,13 @@
echo " echo "
# code # code
face global value ${cyan} face global value ${cyan}
face global type ${yellow} face global type ${red}
face global variable ${blue} face global variable ${blue}
face global module ${cyan} face global module ${cyan}
face global function ${blue} face global function ${blue}
face global string ${cyan} face global string ${cyan}
face global keyword ${green} face global keyword ${green}
face global operator ${green} face global operator ${yellow}
face global attribute ${violet} face global attribute ${violet}
face global comment ${base01} face global comment ${base01}
face global meta ${orange} face global meta ${orange}

View File

@ -3,13 +3,13 @@
# code # code
face global value cyan face global value cyan
face global type yellow face global type red
face global variable blue face global variable blue
face global module cyan face global module cyan
face global function blue face global function blue
face global string cyan face global string cyan
face global keyword green face global keyword green
face global operator green face global operator yellow
face global attribute bright-magenta face global attribute bright-magenta
face global comment bright-cyan face global comment bright-cyan
face global meta bright-red face global meta bright-red

View File

@ -21,13 +21,13 @@
echo " echo "
# code # code
face global value ${cyan} face global value ${cyan}
face global type ${yellow} face global type ${red}
face global variable ${blue} face global variable ${blue}
face global module ${cyan} face global module ${cyan}
face global function ${blue} face global function ${blue}
face global string ${cyan} face global string ${cyan}
face global keyword ${green} face global keyword ${green}
face global operator ${green} face global operator ${yellow}
face global attribute ${violet} face global attribute ${violet}
face global comment ${base1} face global comment ${base1}
face global meta ${orange} face global meta ${orange}

View File

@ -24,12 +24,14 @@ add-highlighter shared/scala/comment fill comment
# Keywords are collected at # Keywords are collected at
# http://tutorialspoint.com/scala/scala_basic_syntax.htm # http://tutorialspoint.com/scala/scala_basic_syntax.htm
add-highlighter shared/scala/code regex \b(import|package)\b 0:meta add-highlighter shared/scala/code regex (?:\b|\W)(@\w+|import|package)\b 0:meta
add-highlighter shared/scala/code regex \b(this|true|false|null)\b 0:value add-highlighter shared/scala/code regex \b(true|false|null)\b 0:value
add-highlighter shared/scala/code regex \b(become|case|catch|class|def|do|else|extends|final|finally|for|forSome|goto|if|initialize|macro|match|new|object|onTransition|return|startWith|stay|throw|trait|try|unbecome|using|val|var|when|while|with|yield)\b 0:keyword add-highlighter shared/scala/code regex \b(?:class|extends|with)\s+(\w+) 0:type
add-highlighter shared/scala/code regex \b(abstract|final|implicit|implicitly|lazy|override|private|protected|require|sealed|super)\b 0:attribute add-highlighter shared/scala/code regex \b([A-Z]\w*)\b 0:type
add-highlighter shared/scala/code regex \b(⇒|=>|<:|:>|=:=|::|&&|\|\|)\b 0:operator add-highlighter shared/scala/code regex (?:def|var|val)\s+(\w+) 0:variable
add-highlighter shared/scala/code regex "'[_A-Za-z0-9$]+" 0:variable add-highlighter shared/scala/code regex \b(become|case|catch|class|def|do|else|extends|final|finally|for|forSome|goto|if|initialize|macro|match|new|object|onTransition|return|startWith|stay|this|super|throw|trait|try|unbecome|using|val|var|when|while|with|yield)\b 0:keyword
add-highlighter shared/scala/code regex \b(abstract|final|implicit|implicitly|lazy|override|private|protected|require|sealed)\b 0:attribute
add-highlighter shared/scala/code regex (\[|\]|=>|<:|:>|=:=|::|&&|\|\|) 0:operator
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾