Adds faces module and function. Renames identifier face to variable.

This commit is contained in:
Nick Mosher 2017-02-09 21:43:29 -05:00
parent 033ded15ae
commit e1927fa9c4
31 changed files with 73 additions and 56 deletions

View File

@ -20,7 +20,9 @@
echo " echo "
face value ${orange_dark}+b face value ${orange_dark}+b
face type ${orange_light} face type ${orange_light}
face identifier ${magenta_dark} face variable ${magenta_dark}
face module ${green_dark}
face function ${cyan_light}
face string ${green_dark} face string ${green_dark}
face keyword ${purple_dark}+b face keyword ${purple_dark}+b
face operator ${cyan_light} face operator ${cyan_light}

View File

@ -3,7 +3,9 @@
# For Code # For Code
face value red face value red
face type yellow face type yellow
face identifier green face variable green
face module green
face function cyan
face string magenta face string magenta
face keyword blue face keyword blue
face operator yellow face operator yellow

View File

@ -6,7 +6,9 @@
## code ## code
face value rgb:0086B3+b face value rgb:0086B3+b
face type rgb:795DA3 face type rgb:795DA3
face identifier rgb:0086B3 face variable rgb:0086B3
face module rgb:0086B3
face function rgb:A71D5D
face string rgb:183691 face string rgb:183691
face keyword rgb:A71D5D+b face keyword rgb:A71D5D+b
face operator yellow face operator yellow

View File

@ -26,7 +26,9 @@
# then we map them to code # then we map them to code
face value ${lucius_light_green} face value ${lucius_light_green}
face type ${lucius_blue} face type ${lucius_blue}
face identifier ${lucius_green} face variable ${lucius_green}
face module ${lucius_green}
face function ${lucius_light_blue}
face string ${lucius_light_green} face string ${lucius_light_green}
face keyword ${lucius_light_blue} face keyword ${lucius_light_blue}
face operator ${lucius_green} face operator ${lucius_green}

View File

@ -24,7 +24,9 @@
# then we map them to code # then we map them to code
face value ${orange_light}+b face value ${orange_light}+b
face type ${orange} face type ${orange}
face identifier default face variable default
face module ${green}
face function default
face string ${green} face string ${green}
face keyword ${brown_dark} face keyword ${brown_dark}
face operator default face operator default

View File

@ -24,7 +24,9 @@
# then we map them to code # then we map them to code
face value ${cyan} face value ${cyan}
face type ${yellow} face type ${yellow}
face identifier ${blue} face variable ${blue}
face module ${cyan}
face function default
face string ${cyan} face string ${cyan}
face keyword ${green} face keyword ${green}
face operator default face operator default

View File

@ -3,29 +3,31 @@
## ##
%sh{ %sh{
foreground='rgb:c5c8c6' foreground="rgb:c5c8c6"
background='rgb:272727' background="rgb:272727"
selection='rgb:373b41' selection="rgb:373b41"
window='rgb:383838' window="rgb:383838"
text='rgb:D8D8D8' text="rgb:D8D8D8"
text_light='rgb:4E4E4E' text_light="rgb:4E4E4E"
line='rgb:282a2e' line="rgb:282a2e"
comment='rgb:969896' comment="rgb:969896"
red='rgb:cc6666' red="rgb:cc6666"
orange='rgb:d88860' orange="rgb:d88860"
yellow='rgb:f0c674' yellow="rgb:f0c674"
green='rgb:b5bd68' green="rgb:b5bd68"
green_dark='rgb:a1b56c' green_dark="rgb:a1b56c"
blue='rgb:81a2be' blue="rgb:81a2be"
aqua='rgb:87afaf' aqua="rgb:87afaf"
magenta='rgb:ab4642' magenta="rgb:ab4642"
purple='rgb:b294bb' purple="rgb:b294bb"
## code ## code
echo " echo "
face value ${orange} face value ${orange}
face type ${yellow} face type ${yellow}
face identifier ${magenta} face variable ${magenta}
face module ${green}
face function ${aqua}
face string ${green_dark} face string ${green_dark}
face keyword ${purple} face keyword ${purple}
face operator ${aqua} face operator ${aqua}

View File

@ -20,9 +20,10 @@
zenspecial="rgb:cfbfaf" zenspecial="rgb:cfbfaf"
zenfunction="rgb:efef8f" zenfunction="rgb:efef8f"
zenstatement="rgb:e3ceab" zenstatement="rgb:e3ceab"
zenidentifier="rgb:efdcbc" zenvariable="rgb:efdcbc"
zentype="rgb:dfdfbf" zentype="rgb:dfdfbf"
zenstring="rgb:cc9393" zenstring="rgb:cc9393"
zenmodule="${zenstring}"
zenexception="rgb:c3bf9f+b" zenexception="rgb:c3bf9f+b"
zenmatching="rgb:3f3f3f,rgb:8cd0d3" zenmatching="rgb:3f3f3f,rgb:8cd0d3"
zenpadding="rgb:f0dfaf,rgb:343434+b" zenpadding="rgb:f0dfaf,rgb:343434+b"
@ -31,7 +32,9 @@
# then we map them to code # then we map them to code
face value ${zenconstant} face value ${zenconstant}
face type ${zentype} face type ${zentype}
face identifier ${zenidentifier} face variable ${zenvariable}
face module ${zenstring}
face function ${zenfunction}
face string ${zenstring} face string ${zenstring}
face keyword ${zenkeyword} face keyword ${zenkeyword}
face operator ${zenfunction} face operator ${zenfunction}
@ -48,7 +51,7 @@
face mono ${zennumber} face mono ${zennumber}
face block ${zenstatement} face block ${zenstatement}
face link ${zenstring} face link ${zenstring}
face bullet ${zenidentifier} face bullet ${zenvariable}
face list ${zentype} face list ${zentype}
# and built in faces # and built in faces

View File

@ -31,7 +31,7 @@ add-highlighter -group /css/declaration regex !important 0:keyword
# element#id element.class # element#id element.class
# universal selector # universal selector
add-highlighter -group /css/selector regex [A-Za-z][A-Za-z0-9_-]* 0:keyword add-highlighter -group /css/selector regex [A-Za-z][A-Za-z0-9_-]* 0:keyword
add-highlighter -group /css/selector regex [*]|[#.][A-Za-z][A-Za-z0-9_-]* 0:identifier add-highlighter -group /css/selector regex [*]|[#.][A-Za-z][A-Za-z0-9_-]* 0:variable
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾

View File

@ -17,11 +17,11 @@ add-highlighter -group / regions -default code fish \
comment '#' '$' '' comment '#' '$' ''
add-highlighter -group /fish/double_string fill string add-highlighter -group /fish/double_string fill string
add-highlighter -group /fish/double_string regex (\$\w+)|(\{\$\w+\}) 0:identifier add-highlighter -group /fish/double_string regex (\$\w+)|(\{\$\w+\}) 0:variable
add-highlighter -group /fish/single_string fill string add-highlighter -group /fish/single_string fill string
add-highlighter -group /fish/comment fill comment add-highlighter -group /fish/comment fill comment
add-highlighter -group /fish/code regex (\$\w+)|(\{\$\w+\}) 0:identifier add-highlighter -group /fish/code regex (\$\w+)|(\{\$\w+\}) 0:variable
# Command names are collected using `builtin --names` and 'eval' from `functions --names` # Command names are collected using `builtin --names` and 'eval' from `functions --names`
add-highlighter -group /fish/code regex \b(and|begin|bg|bind|block|break|breakpoint|builtin|case|cd|command|commandline|complete|contains|continue|count|echo|else|emit|end|eval|exec|exit|fg|for|function|functions|history|if|jobs|not|or|printf|pwd|random|read|return|set|set_color|source|status|switch|test|ulimit|while)\b 0:keyword add-highlighter -group /fish/code regex \b(and|begin|bg|bind|block|break|breakpoint|builtin|case|cd|command|commandline|complete|contains|continue|count|echo|else|emit|end|eval|exec|exit|fg|for|function|functions|history|if|jobs|not|or|printf|pwd|random|read|return|set|set_color|source|status|switch|test|ulimit|while)\b 0:keyword

View File

@ -29,7 +29,7 @@ add-highlighter -group /gas/code regex ((^|\s+)\.([248]byte|align|arch(_extensio
add-highlighter -group /gas/code regex ((^|\s+)\.(abort|ABORT|align|app-file|ascii|asciz|balign[wl]|byte|comm|data|def|desc|dim|double|eject|else|endif|equ|extern|file|fill|float|global|globl|hword|ident|if|include|int|irp|irpc|lcomm|iflags|line|linkonce|ln|mri|list|loc|local|long|macro|nolist|octa|org|print|purgem|p2align[wl]|psize|quad|rept|sbttl|section|set|short|single|size|skip|space|stab[dns]|string|struct|tag|text|title|type|title|uleb128|val|vtable_entry|weak|word|rodata|zero)(\h+|$)) 0:type add-highlighter -group /gas/code regex ((^|\s+)\.(abort|ABORT|align|app-file|ascii|asciz|balign[wl]|byte|comm|data|def|desc|dim|double|eject|else|endif|equ|extern|file|fill|float|global|globl|hword|ident|if|include|int|irp|irpc|lcomm|iflags|line|linkonce|ln|mri|list|loc|local|long|macro|nolist|octa|org|print|purgem|p2align[wl]|psize|quad|rept|sbttl|section|set|short|single|size|skip|space|stab[dns]|string|struct|tag|text|title|type|title|uleb128|val|vtable_entry|weak|word|rodata|zero)(\h+|$)) 0:type
# Registers # Registers
add-highlighter -group /gas/code regex \%(([re](ax|bx|cx|dx|si|di|bp|sp))|(al|bl|cl|dl|sil|dil|bpl|spl)|(r[8-9][dwb])|(r1[0-5][dwb])|(cs|ds|es|fs|gs|ss|ip|eflags)|([xy]mm[0-9]|[xy]mm1[0-5]))\b 0:identifier add-highlighter -group /gas/code regex \%(([re](ax|bx|cx|dx|si|di|bp|sp))|(al|bl|cl|dl|sil|dil|bpl|spl)|(r[8-9][dwb])|(r1[0-5][dwb])|(cs|ds|es|fs|gs|ss|ip|eflags)|([xy]mm[0-9]|[xy]mm1[0-5]))\b 0:variable
# General Instructions # General Instructions
add-highlighter -group /gas/code regex \ add-highlighter -group /gas/code regex \

View File

@ -6,7 +6,7 @@ add-highlighter -group / regions -default code ini \
comment (^|\h)\K\# $ '' comment (^|\h)\K\# $ ''
add-highlighter -group /ini/code regex "^\h*\[[^\]]*\]" 0:title add-highlighter -group /ini/code regex "^\h*\[[^\]]*\]" 0:title
add-highlighter -group /ini/code regex "^\h*([^\[][^=\n]*=)([^\n]*)" 1:identifier 2:value add-highlighter -group /ini/code regex "^\h*([^\[][^=\n]*=)([^\n]*)" 1:variable 2:value
add-highlighter -group /ini/comment fill comment add-highlighter -group /ini/comment fill comment

View File

@ -24,7 +24,7 @@ add-highlighter -group /javascript/comment fill comment
add-highlighter -group /javascript/literal fill string add-highlighter -group /javascript/literal fill string
add-highlighter -group /javascript/literal regex \${.*?} 0:value add-highlighter -group /javascript/literal regex \${.*?} 0:value
add-highlighter -group /javascript/code regex \$\w* 0:identifier add-highlighter -group /javascript/code regex \$\w* 0:variable
add-highlighter -group /javascript/code regex \b(document|false|null|parent|self|this|true|undefined|window)\b 0:value add-highlighter -group /javascript/code regex \b(document|false|null|parent|self|this|true|undefined|window)\b 0:value
add-highlighter -group /javascript/code regex "-?[0-9]*\.?[0-9]+" 0:value add-highlighter -group /javascript/code regex "-?[0-9]*\.?[0-9]+" 0:value
add-highlighter -group /javascript/code regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String)\b 0:type add-highlighter -group /javascript/code regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String)\b 0:type

View File

@ -20,7 +20,7 @@ add-highlighter -group /lisp/comment fill comment
add-highlighter -group /lisp/code regex \b(nil|true|false)\b 0:value add-highlighter -group /lisp/code regex \b(nil|true|false)\b 0:value
add-highlighter -group /lisp/code regex (((\Q***\E)|(///)|(\Q+++\E)){1,3})|(1[+-])|(<|>|<=|=|>=|) 0:operator add-highlighter -group /lisp/code regex (((\Q***\E)|(///)|(\Q+++\E)){1,3})|(1[+-])|(<|>|<=|=|>=|) 0:operator
add-highlighter -group /lisp/code regex \b(([':]\w+)|([*]\H+[*]))\b 0:identifier add-highlighter -group /lisp/code regex \b(([':]\w+)|([*]\H+[*]))\b 0:variable
add-highlighter -group /lisp/code regex \b(def[a-z]+|if|do|let|lambda|catch|and|assert|while|def|do|fn|finally|let|loop|new|quote|recur|set!|throw|try|var|case|if-let|if-not|when|when-first|when-let|when-not|(cond(->|->>)?))\b 0:keyword add-highlighter -group /lisp/code regex \b(def[a-z]+|if|do|let|lambda|catch|and|assert|while|def|do|fn|finally|let|loop|new|quote|recur|set!|throw|try|var|case|if-let|if-not|when|when-first|when-let|when-not|(cond(->|->>)?))\b 0:keyword
# Commands # Commands

View File

@ -65,7 +65,7 @@ add-highlighter -group /perl/code regex \b-(B|b|C|c|d|e|f|g|k|l|M|O|o|p|r|R|S|s|
add-highlighter -group /perl/code regex %{(?:\b[stqrmwy]+)?/[^\n/]*/([msixpodualngecr]+\b)?} 0:magenta add-highlighter -group /perl/code regex %{(?:\b[stqrmwy]+)?/[^\n/]*/([msixpodualngecr]+\b)?} 0:magenta
add-highlighter -group /perl/code regex %{(?:\b[stqrmwy]+)?/[^\n/]+/[^\n/]*/([msixpeodualngcr]+\b)?} 0:magenta add-highlighter -group /perl/code regex %{(?:\b[stqrmwy]+)?/[^\n/]+/[^\n/]*/([msixpeodualngcr]+\b)?} 0:magenta
add-highlighter -group /perl/code regex \$[a-zA-Z_][a-zA-Z0-9_]* 0:identifier add-highlighter -group /perl/code regex \$[a-zA-Z_][a-zA-Z0-9_]* 0:variable
add-highlighter -group /perl/code regex \$(a|b|LAST_REGEXP_CODE_RESULT|LIST_SEPARATOR|MATCH|MULTILINE_MATCHING|NR|OFMT|OFS|ORS|OS_ERROR|OSNAME|OUTPUT_AUTO_FLUSH|OUTPUT_FIELD_SEPARATOR|OUTPUT_RECORD_SEPARATOR)\b 0:value add-highlighter -group /perl/code regex \$(a|b|LAST_REGEXP_CODE_RESULT|LIST_SEPARATOR|MATCH|MULTILINE_MATCHING|NR|OFMT|OFS|ORS|OS_ERROR|OSNAME|OUTPUT_AUTO_FLUSH|OUTPUT_FIELD_SEPARATOR|OUTPUT_RECORD_SEPARATOR)\b 0:value
add-highlighter -group /perl/code regex \$(LAST_REGEXP_CODE_RESULT|LIST_SEPARATOR|MATCH|MULTILINE_MATCHING|NR|OFMT|OFS|ORS|OS_ERROR|OSNAME|OUTPUT_AUTO_FLUSH|OUTPUT_FIELD_SEPARATOR|OUTPUT_RECORD_SEPARATOR|PERL_VERSION|ACCUMULATOR|PERLDB|ARG|PID|ARGV|POSTMATCH|PREMATCH|BASETIME|PROCESS_ID|CHILD_ERROR|PROGRAM_NAME|COMPILING|REAL_GROUP_ID|DEBUGGING|REAL_USER_ID|EFFECTIVE_GROUP_ID|RS|EFFECTIVE_USER_ID|SUBSCRIPT_SEPARATOR|EGID|SUBSEP|ERRNO|SYSTEM_FD_MAX|EUID|UID|EVAL_ERROR|WARNING|EXCEPTIONS_BEING_CAUGHT|EXECUTABLE_NAME|EXTENDED_OS_ERROR|FORMAT_FORMFEED|FORMAT_LINE_BREAK_CHARACTERS|FORMAT_LINES_LEFT|FORMAT_LINES_PER_PAGE|FORMAT_NAME|FORMAT_PAGE_NUMBER|FORMAT_TOP_NAME|GID|INPLACE_EDIT|INPUT_LINE_NUMBER|INPUT_RECORD_SEPARATOR|LAST_MATCH_END|LAST_PAREN_MATCH)\b 0:value add-highlighter -group /perl/code regex \$(LAST_REGEXP_CODE_RESULT|LIST_SEPARATOR|MATCH|MULTILINE_MATCHING|NR|OFMT|OFS|ORS|OS_ERROR|OSNAME|OUTPUT_AUTO_FLUSH|OUTPUT_FIELD_SEPARATOR|OUTPUT_RECORD_SEPARATOR|PERL_VERSION|ACCUMULATOR|PERLDB|ARG|PID|ARGV|POSTMATCH|PREMATCH|BASETIME|PROCESS_ID|CHILD_ERROR|PROGRAM_NAME|COMPILING|REAL_GROUP_ID|DEBUGGING|REAL_USER_ID|EFFECTIVE_GROUP_ID|RS|EFFECTIVE_USER_ID|SUBSCRIPT_SEPARATOR|EGID|SUBSEP|ERRNO|SYSTEM_FD_MAX|EUID|UID|EVAL_ERROR|WARNING|EXCEPTIONS_BEING_CAUGHT|EXECUTABLE_NAME|EXTENDED_OS_ERROR|FORMAT_FORMFEED|FORMAT_LINE_BREAK_CHARACTERS|FORMAT_LINES_LEFT|FORMAT_LINES_PER_PAGE|FORMAT_NAME|FORMAT_PAGE_NUMBER|FORMAT_TOP_NAME|GID|INPLACE_EDIT|INPUT_LINE_NUMBER|INPUT_RECORD_SEPARATOR|LAST_MATCH_END|LAST_PAREN_MATCH)\b 0:value

View File

@ -45,7 +45,7 @@ add-highlighter -group /ruby/comment fill comment
add-highlighter -group /ruby/literal fill meta add-highlighter -group /ruby/literal fill meta
add-highlighter -group /ruby/code regex \b([A-Za-z]\w*:(?=[^:]))|([$@][A-Za-z]\w*)|((?<=[^:]):[A-Za-z]\w*[=?!]?)|([A-Z]\w*|^|\h)\K::(?=[A-Z]) 0:identifier add-highlighter -group /ruby/code regex \b([A-Za-z]\w*:(?=[^:]))|([$@][A-Za-z]\w*)|((?<=[^:]):[A-Za-z]\w*[=?!]?)|([A-Z]\w*|^|\h)\K::(?=[A-Z]) 0:variable
%sh{ %sh{
# Grammar # Grammar

View File

@ -18,7 +18,7 @@ add-highlighter -group / regions -default code scala \
comment /[*] [*]/ /[*] comment /[*] [*]/ /[*]
add-highlighter -group /scala/string fill string add-highlighter -group /scala/string fill string
add-highlighter -group /scala/literal fill identifier add-highlighter -group /scala/literal fill variable
add-highlighter -group /scala/comment fill comment add-highlighter -group /scala/comment fill comment
# Keywords are collected at # Keywords are collected at
@ -29,7 +29,7 @@ add-highlighter -group /scala/code regex \b(this|true|false|null)\b 0:value
add-highlighter -group /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 -group /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 -group /scala/code regex \b(abstract|final|implicit|implicitly|lazy|override|private|protected|require|sealed|super)\b 0:attribute add-highlighter -group /scala/code regex \b(abstract|final|implicit|implicitly|lazy|override|private|protected|require|sealed|super)\b 0:attribute
add-highlighter -group /scala/code regex \b(⇒|=>|<:|:>|=:=|::|&&|\|\|)\b 0:operator add-highlighter -group /scala/code regex \b(⇒|=>|<:|:>|=:=|::|&&|\|\|)\b 0:operator
add-highlighter -group /scala/code regex "'[_A-Za-z0-9$]+" 0:identifier add-highlighter -group /scala/code regex "'[_A-Za-z0-9$]+" 0:variable
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾

View File

@ -134,7 +134,7 @@ def -hidden c-family-insert-on-newline %[ eval -draft %[
add-highlighter -group /FT/comment fill comment add-highlighter -group /FT/comment fill comment
add-highlighter -group /FT/disabled fill rgb:666666 add-highlighter -group /FT/disabled fill rgb:666666
add-highlighter -group /FT/macro fill meta add-highlighter -group /FT/macro fill meta
add-highlighter -group /FT/macro regex ^\h*#include\h+(\S*) 1:identifier add-highlighter -group /FT/macro regex ^\h*#include\h+(\S*) 1:module
' | sed -e "s/FT/${ft}/g; s/QUOTE/'/g; s/MAYBEAT/${maybe_at}/;" ' | sed -e "s/FT/${ft}/g; s/QUOTE/'/g; s/MAYBEAT/${maybe_at}/;"
done done
} }

View File

@ -38,9 +38,9 @@ add-highlighter -group / regions -default code kakrc \
} }
add-highlighter -group /kakrc/code regex \brgb:[0-9a-fA-F]{6}\b 0:value add-highlighter -group /kakrc/code regex \brgb:[0-9a-fA-F]{6}\b 0:value
add-highlighter -group /kakrc/code regex (?:\bhook)\h+(?:-group\h+\S+\h+)?(?:(global|buffer|window)|(\S+))\h+(\S+) 1:attribute 2:Error 3:identifier add-highlighter -group /kakrc/code regex (?:\bhook)\h+(?:-group\h+\S+\h+)?(?:(global|buffer|window)|(\S+))\h+(\S+) 1:attribute 2:Error 3:variable
add-highlighter -group /kakrc/code regex (?:\bset)\h+(?:-add)?\h+(?:(global|buffer|window)|(\S+))\h+(\S+) 1:attribute 2:Error 3:identifier add-highlighter -group /kakrc/code regex (?:\bset)\h+(?:-add)?\h+(?:(global|buffer|window)|(\S+))\h+(\S+) 1:attribute 2:Error 3:variable
add-highlighter -group /kakrc/code regex (?:\bmap)\h+(?:(global|buffer|window)|(\S+))\h+(?:(normal|insert|menu|prompt|goto|view|user|object)|(\S+))\h+(\S+) 1:attribute 2:Error 3:attribute 4:Error 5:identifier add-highlighter -group /kakrc/code regex (?:\bmap)\h+(?:(global|buffer|window)|(\S+))\h+(?:(normal|insert|menu|prompt|goto|view|user|object)|(\S+))\h+(\S+) 1:attribute 2:Error 3:attribute 4:Error 5:variable
add-highlighter -group /kakrc/double_string fill string add-highlighter -group /kakrc/double_string fill string
add-highlighter -group /kakrc/single_string fill string add-highlighter -group /kakrc/single_string fill string

View File

@ -15,7 +15,7 @@ add-highlighter -group / regions -default content makefile \
add-highlighter -group /makefile/comment fill comment add-highlighter -group /makefile/comment fill comment
add-highlighter -group /makefile/eval fill value add-highlighter -group /makefile/eval fill value
add-highlighter -group /makefile/content regex ^[\w.%-]+\h*:\s 0:identifier add-highlighter -group /makefile/content regex ^[\w.%-]+\h*:\s 0:variable
add-highlighter -group /makefile/content regex [+?:]= 0:operator add-highlighter -group /makefile/content regex [+?:]= 0:operator
%sh{ %sh{

View File

@ -31,11 +31,11 @@ add-highlighter -group /sh/heredoc fill string
} }
add-highlighter -group /sh/code regex [\[\]\(\)&|]{1,2} 0:operator add-highlighter -group /sh/code regex [\[\]\(\)&|]{1,2} 0:operator
add-highlighter -group /sh/code regex (\w+)= 1:identifier add-highlighter -group /sh/code regex (\w+)= 1:variable
add-highlighter -group /sh/code regex ^\h*(\w+)\h*\(\) 1:identifier add-highlighter -group /sh/code regex ^\h*(\w+)\h*\(\) 1:variable
add-highlighter -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:value add-highlighter -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:value
add-highlighter -group /sh/double_string regex \$(\w+|\{.+?\}) 0:identifier add-highlighter -group /sh/double_string regex \$(\w+|\{.+?\}) 0:variable
hook -group sh-highlight global WinSetOption filetype=sh %{ add-highlighter ref sh } hook -group sh-highlight global WinSetOption filetype=sh %{ add-highlighter ref sh }
hook -group sh-highlight global WinSetOption filetype=(?!sh).* %{ remove-highlighter sh } hook -group sh-highlight global WinSetOption filetype=(?!sh).* %{ remove-highlighter sh }

View File

@ -19,7 +19,7 @@ add-highlighter -group /cabal/comment fill comment
add-highlighter -group /cabal/code regex \b(true|false)\b|(([<>]?=?)?\d+(\.\d+)+) 0:value add-highlighter -group /cabal/code regex \b(true|false)\b|(([<>]?=?)?\d+(\.\d+)+) 0:value
add-highlighter -group /cabal/code regex \b(if|else)\b 0:keyword add-highlighter -group /cabal/code regex \b(if|else)\b 0:keyword
add-highlighter -group /cabal/code regex ^\h*([A-Za-z][A-Za-z0-9_-]*)\h*: 1:identifier add-highlighter -group /cabal/code regex ^\h*([A-Za-z][A-Za-z0-9_-]*)\h*: 1:variable
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾

View File

@ -36,7 +36,7 @@ add-highlighter -group /coffee/comment fill comment
# Keywords are collected at # Keywords are collected at
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords
# http://coffeescript.org/documentation/docs/lexer.html#section-63 # http://coffeescript.org/documentation/docs/lexer.html#section-63
add-highlighter -group /coffee/code regex [$@]\w* 0:identifier add-highlighter -group /coffee/code regex [$@]\w* 0:variable
add-highlighter -group /coffee/code regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String)\b 0:type add-highlighter -group /coffee/code regex \b(Array|Boolean|Date|Function|Number|Object|RegExp|String)\b 0:type
add-highlighter -group /coffee/code regex \b(document|false|no|null|off|on|parent|self|this|true|undefined|window|yes)\b 0:value add-highlighter -group /coffee/code regex \b(document|false|no|null|off|on|parent|self|this|true|undefined|window|yes)\b 0:value
add-highlighter -group /coffee/code regex \b(and|is|isnt|not|or)\b 0:operator add-highlighter -group /coffee/code regex \b(and|is|isnt|not|or)\b 0:operator

View File

@ -28,7 +28,7 @@ add-highlighter -group /haml/coffee ref coffee
add-highlighter -group /haml/sass ref sass add-highlighter -group /haml/sass ref sass
add-highlighter -group /haml/code regex ^\h*(:[a-z]+|-|=)|^(!!!)$ 0:meta add-highlighter -group /haml/code regex ^\h*(:[a-z]+|-|=)|^(!!!)$ 0:meta
add-highlighter -group /haml/code regex ^\h*%([A-Za-z][A-Za-z0-9_-]*)([#.][A-Za-z][A-Za-z0-9_-]*)? 1:keyword 2:identifier add-highlighter -group /haml/code regex ^\h*%([A-Za-z][A-Za-z0-9_-]*)([#.][A-Za-z][A-Za-z0-9_-]*)? 1:keyword 2:variable
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾

View File

@ -24,7 +24,7 @@ add-highlighter -group /moon/single_string fill string
add-highlighter -group /moon/comment fill comment add-highlighter -group /moon/comment fill comment
add-highlighter -group /moon/code regex ([.\\](?=[A-Za-z]\w*))|(\b[A-Za-z]\w*:)|(\b[A-Za-z]\w*\K!+)|(\W\K[@:][A-Za-z]\w*) 0:identifier add-highlighter -group /moon/code regex ([.\\](?=[A-Za-z]\w*))|(\b[A-Za-z]\w*:)|(\b[A-Za-z]\w*\K!+)|(\W\K[@:][A-Za-z]\w*) 0:variable
add-highlighter -group /moon/code regex \b(and|break|catch|class|continue|do|else(if)?|export|extends|false|finally|for|from|if|import|in|local|nil|not|or|return|super|switch|then|true|try|unless|using|when|while|with)\b 0:keyword add-highlighter -group /moon/code regex \b(and|break|catch|class|continue|do|else(if)?|export|extends|false|finally|for|from|if|import|in|local|nil|not|or|return|super|switch|then|true|try|unless|using|when|while|with)\b 0:keyword
# Commands # Commands

View File

@ -19,7 +19,7 @@ add-highlighter -group /php/double_string fill string
add-highlighter -group /php/single_string fill string add-highlighter -group /php/single_string fill string
add-highlighter -group /php/comment fill comment add-highlighter -group /php/comment fill comment
add-highlighter -group /php/code regex \$\w* 0:identifier add-highlighter -group /php/code regex \$\w* 0:variable
add-highlighter -group /php/code regex \b(false|null|parent|self|this|true)\b 0:value add-highlighter -group /php/code regex \b(false|null|parent|self|this|true)\b 0:value
add-highlighter -group /php/code regex "-?[0-9]*\.?[0-9]+" 0:value add-highlighter -group /php/code regex "-?[0-9]*\.?[0-9]+" 0:value
add-highlighter -group /php/code regex \b((string|int|bool)|[A-Z][a-z].*?)\b 0:type add-highlighter -group /php/code regex \b((string|int|bool)|[A-Z][a-z].*?)\b 0:type

View File

@ -59,7 +59,7 @@ addhl -group /pony/comment fill comment
addhl -group /pony/code regex '\b(${keywords})\b' 0:keyword addhl -group /pony/code regex '\b(${keywords})\b' 0:keyword
addhl -group /pony/code regex ';' 0:keyword addhl -group /pony/code regex ';' 0:keyword
addhl -group /pony/code regex '^\s*|' 0:keyword addhl -group /pony/code regex '^\s*|' 0:keyword
addhl -group /pony/code regex '\b(${struct})\b' 0:identifier addhl -group /pony/code regex '\b(${struct})\b' 0:variable
addhl -group /pony/code regex '\b(${capabilities})\b(!|^)?' 1:builtin 2:builtin addhl -group /pony/code regex '\b(${capabilities})\b(!|^)?' 1:builtin 2:builtin
" "

View File

@ -38,7 +38,7 @@ add-highlighter -group /pug/puglang regex \b(\block|extends|include|a
add-highlighter -group /pug/attribute regex [()=] 0:operator add-highlighter -group /pug/attribute regex [()=] 0:operator
add-highlighter -group /pug/text regex \h*(\|) 1:meta add-highlighter -group /pug/text regex \h*(\|) 1:meta
add-highlighter -group /pug/code regex ^\h*([A-Za-z][A-Za-z0-9_-]*) 1:type add-highlighter -group /pug/code regex ^\h*([A-Za-z][A-Za-z0-9_-]*) 1:type
add-highlighter -group /pug/code regex (\#[A-Za-z][A-Za-z0-9_-]*) 1:identifier add-highlighter -group /pug/code regex (\#[A-Za-z][A-Za-z0-9_-]*) 1:variable
add-highlighter -group /pug/code regex ((?:\.[A-Za-z][A-Za-z0-9_-]*)*) 1:value add-highlighter -group /pug/code regex ((?:\.[A-Za-z][A-Za-z0-9_-]*)*) 1:value
# Commands # Commands

View File

@ -22,7 +22,7 @@ add-highlighter -group /ragel/string fill string
add-highlighter -group /ragel/comment fill comment add-highlighter -group /ragel/comment fill comment
add-highlighter -group /ragel/code regex \b(true|false)\b 0:value add-highlighter -group /ragel/code regex \b(true|false)\b 0:value
add-highlighter -group /ragel/code regex '%%\{|\}%%|<\w+>' 0:identifier add-highlighter -group /ragel/code regex '%%\{|\}%%|<\w+>' 0:variable
add-highlighter -group /ragel/code regex :=|=>|->|:>|:>>|<: 0:operator add-highlighter -group /ragel/code regex :=|=>|->|:>|:>>|<: 0:operator
add-highlighter -group /ragel/code regex \b(action|alnum|alpha|any|ascii|case|cntrl|contained|context|data|digit|empty|eof|err|error|exec|export|exports|extend|fblen|fbreak|fbuf|fc|fcall|fcurs|fentry|fexec|fgoto|fhold|first_final|fnext|fpc|fret|from|fstack|ftargs|graph|import|include|init|inwhen|lerr|lower|machine|nocs|noend|noerror|nofinal|noprefix|outwhen|postpop|prepush|print|punct|range|space|start|to|upper|when|write|xdigit|zlen)\b 0:keyword add-highlighter -group /ragel/code regex \b(action|alnum|alpha|any|ascii|case|cntrl|contained|context|data|digit|empty|eof|err|error|exec|export|exports|extend|fblen|fbreak|fbuf|fc|fcall|fcurs|fentry|fexec|fgoto|fhold|first_final|fnext|fpc|fret|from|fstack|ftargs|graph|import|include|init|inwhen|lerr|lower|machine|nocs|noend|noerror|nofinal|noprefix|outwhen|postpop|prepush|print|punct|range|space|start|to|upper|when|write|xdigit|zlen)\b 0:keyword

View File

@ -19,7 +19,7 @@ add-highlighter -group / regions -default code sass \
add-highlighter -group /sass/string fill string add-highlighter -group /sass/string fill string
add-highlighter -group /sass/comment fill comment add-highlighter -group /sass/comment fill comment
add-highlighter -group /sass/code regex [*]|[#.][A-Za-z][A-Za-z0-9_-]* 0:identifier add-highlighter -group /sass/code regex [*]|[#.][A-Za-z][A-Za-z0-9_-]* 0:variable
add-highlighter -group /sass/code regex &|@[A-Za-z][A-Za-z0-9_-]* 0:meta add-highlighter -group /sass/code regex &|@[A-Za-z][A-Za-z0-9_-]* 0:meta
add-highlighter -group /sass/code regex (#[0-9A-Fa-f]+)|((\d*\.)?\d+(em|px)) 0:value add-highlighter -group /sass/code regex (#[0-9A-Fa-f]+)|((\d*\.)?\d+(em|px)) 0:value
add-highlighter -group /sass/code regex ([A-Za-z][A-Za-z0-9_-]*)\h*: 1:keyword add-highlighter -group /sass/code regex ([A-Za-z][A-Za-z0-9_-]*)\h*: 1:keyword

View File

@ -14,7 +14,7 @@ hook global BufCreate .*\.taskpaper %{
add-highlighter -group / group taskpaper add-highlighter -group / group taskpaper
add-highlighter -group /taskpaper regex ^\h*([^:\n]+):\h*\n 1:header add-highlighter -group /taskpaper regex ^\h*([^:\n]+):\h*\n 1:header
add-highlighter -group /taskpaper regex \h@\w+(?:\(([^)]*)\))? 0:identifier 1:value add-highlighter -group /taskpaper regex \h@\w+(?:\(([^)]*)\))? 0:variable 1:value
add-highlighter -group /taskpaper regex ^\h*([^-:\n]+)\n 1:+i add-highlighter -group /taskpaper regex ^\h*([^-:\n]+)\n 1:+i
add-highlighter -group /taskpaper regex ^\h*-\h+[^\n]*@done[^\n]* 0:+d add-highlighter -group /taskpaper regex ^\h*-\h+[^\n]*@done[^\n]* 0:+d
add-highlighter -group /taskpaper regex (([a-z]+://\S+)|((mailto:)[\w+-]+@\S+)) 0:link add-highlighter -group /taskpaper regex (([a-z]+://\S+)|((mailto:)[\w+-]+@\S+)) 0:link