diff --git a/zsh-syntax-highlighting.sh b/zsh-syntax-highlighting.sh index daca9fe..c456703 100644 --- a/zsh-syntax-highlighting.sh +++ b/zsh-syntax-highlighting.sh @@ -12,6 +12,7 @@ # Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) typeset -gA ZSH_HIGHLIGHT_STYLES +if [[ "$COLORTERM" == "truecolor" ]]; then # Default groupings per, https://spec.draculatheme.com, try to logically separate # possible ZSH_HIGHLIGHT_STYLES settings accordingly...? # @@ -88,3 +89,71 @@ ZSH_HIGHLIGHT_STYLES[redirection]='fg=#F8F8F2' ZSH_HIGHLIGHT_STYLES[arg0]='fg=#F8F8F2' ZSH_HIGHLIGHT_STYLES[default]='fg=#F8F8F2' ZSH_HIGHLIGHT_STYLES[cursor]='standout' +else +## General +### Diffs +### Markup +## Classes +## Comments +ZSH_HIGHLIGHT_STYLES[comment]=fg=103 +## Constants +## Entitites +## Functions/methods +ZSH_HIGHLIGHT_STYLES[alias]=fg=120 +ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=120 +ZSH_HIGHLIGHT_STYLES[global-alias]=fg=120 +ZSH_HIGHLIGHT_STYLES[function]=fg=120 +ZSH_HIGHLIGHT_STYLES[command]=fg=120 +ZSH_HIGHLIGHT_STYLES[precommand]=fg=120,italic +ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=222,italic +ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=222 +ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=222 +ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=fg=183 +## Keywords +## Built ins +ZSH_HIGHLIGHT_STYLES[builtin]=fg=159 +ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=159 +ZSH_HIGHLIGHT_STYLES[hashed-command]=fg=159 +## Punctuation +ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=212 +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=231 +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]=fg=231 +ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=231 +ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=212 +ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=212 +ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=212 +## Serializable / Configuration Languages +## Storage +## Strings +ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]=fg=229 +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]=fg=229 +ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=229 +ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]=fg=210 +ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=229 +ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]=fg=210 +ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=229 +## Variables +ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=231 +ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]=fg=210 +ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=231 +ZSH_HIGHLIGHT_STYLES[assign]=fg=231 +ZSH_HIGHLIGHT_STYLES[named-fd]=fg=231 +ZSH_HIGHLIGHT_STYLES[numeric-fd]=fg=231 +## No category relevant in spec +ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=210 +ZSH_HIGHLIGHT_STYLES[path]=fg=231 +ZSH_HIGHLIGHT_STYLES[path_pathseparator]=fg=212 +ZSH_HIGHLIGHT_STYLES[path_prefix]=fg=231 +ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=fg=212 +ZSH_HIGHLIGHT_STYLES[globbing]=fg=231 +ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=183 +#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' +#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' +#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' +#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]=fg=210 +ZSH_HIGHLIGHT_STYLES[redirection]=fg=231 +ZSH_HIGHLIGHT_STYLES[arg0]=fg=231 +ZSH_HIGHLIGHT_STYLES[default]=fg=231 +ZSH_HIGHLIGHT_STYLES[cursor]='standout' +fi