falcon icon indicating copy to clipboard operation
falcon copied to clipboard

Feature request: zsh syntax highlighting

Open hissssst opened this issue 4 years ago • 2 comments

https://github.com/zdharma/fast-syntax-highlighting

This project enables syntax highlighting for zsh with cutomizable themes. I can create the PR but I am really bad with selecting right colors from the pallete

hissssst avatar Jun 11 '20 10:06 hissssst

cool - I'll take a look 👍

fenetikm avatar Jun 11 '20 22:06 fenetikm

@fenetikm I've created the theme. You can add it to the repo if you want.

2022-03-31_17-09

[base]
default          = none
unknown-token    = none
commandseparator = 146
redirection      = none
here-string-tri  = 6
here-string-text = 12
here-string-var  = 12
exec-descriptor  = 6
comment          = 61
correct-subtle   = 4,underline
incorrect-subtle = 1,bold
secondary        = falcon
recursive-base   = 5

[command-point]
reserved-word  = 3
subcommand     = none
alias          = 12
suffix-alias   = 6
global-alias   = bg:17
builtin        = 3
function       = 12
command        = 6
precommand     = 15
hashed-command = 14
single-sq-bracket = 6
double-sq-bracket = 6
double-paren   = 15

[paths]
path          = none
pathseparator = 240
path-to-dir   = none,underline
globbing      = none,bold
globbing-ext  = 141

[brackets]
paired-bracket = bold
bracket-level-1 = 15
bracket-level-2 = 15
bracket-level-3 = 15

[arguments]
single-hyphen-option   = 6
double-hyphen-option   = 6
back-quoted-argument   = 14
single-quoted-argument = 12
double-quoted-argument = 12
dollar-quoted-argument = 12

[in-string]
; backslash in $'...'
back-dollar-quoted-argument           = 146
; backslash or $... in "..." (i.e. variable in string)
back-or-dollar-double-quoted-argument = 6

[other]
variable             = 6
assign               = 6
assign-array-bracket = 15
history-expansion    = none,bold

[math]
mathvar = 6
mathnum = none
matherr = 1

[for-loop]
forvar = 6
fornum = none
; operator
foroper = 5
; separator
forsep = 240

[case]
case-input       = 6
case-parentheses = 240
case-condition   = none,underline

hissssst avatar Mar 31 '22 13:03 hissssst