[bug]: set of token cases
Shuraken007 opened this issue · comments
Describe the bug
Hello, I'm trying to make theme like visual studio code have (default dark theme).
So, I founded some strange cases, or absence of some expected things.
bugs
- third hyphen option affects following string argument with blue color (33), I can't found how to redefine this
- more strange things with arguments
- second argument have default white color
- path after source command is blue (33), while I defined section
[paths]
with orange173
[paths]
path = 173
pathseparator =
path-to-dir = 173,underline
globbing = 173,bold
- backward slash breaks variable parsing
- array variable
buffer
not recognized at this case
- builtin have higher priority than subcommand, does it expected? looks less readable for me
absence of expected things
- it's not possible to make different colors for left / right parts of assign statement
- not possible to have custom colors for some special keywords
Where token parsing rules are located? Probably I'll fix smth.
Also last not important question / feature request.
Does it possible to define my custom colors at ini?
it's not handy to use numbers, better define colors with some name
dark-code.ini
; vscode dark theme
; my colors:
; 133 - purple #BC3FBC
; 13 - bright purple
; 151 - LightGreen #B5CEA8
; 117 - LightBlue #9CDCFE
; 75 - Blue #569CD6
; 33 - BrightBlue #0078ff
; 65 - Green #6A9955
; 187 - Yellow #DCDCAA
; 184 Bright Yellow #fbea07
; 179 - YellowOrange #D7BA7D
; 173 - Orange #CE9178
[base]
default = white
unknown-token = red,bold
commandseparator = none
redirection = none
here-string-tri = yellow
here-string-text = 18
here-string-var = 117
exec-descriptor = yellow,bold
comment = 65,bold
correct-subtle = 12
incorrect-subtle = red
subtle-separator = green
; subtle-bg = bg:18
subtle-bg = none
secondary =
recursive-base =
[command-point]
reserved-word = 133
subcommand = 173
alias = 187
suffix-alias = 187
; global-alias = bg:blue
global-alias = 187
builtin = 187
function = 187
command = 187
precommand = 187
hashed-command = 187
single-sq-bracket = 184
double-sq-bracket = 13
double-paren = 13
[paths]
path = 173
pathseparator =
path-to-dir = 173,underline
globbing = 173,bold
globbing-ext = 13
[brackets]
; paired-bracket = bg:blue
paired-bracket = none
bracket-level-1 = 13,bold
bracket-level-2 = 184,bold
bracket-level-3 = 33,bold
[arguments]
single-hyphen-option = 75
double-hyphen-option = 75
back-quoted-argument = 173
single-quoted-argument = 173
double-quoted-argument = 173
dollar-quoted-argument = 173
optarg-string = 173
optarg-number = 151
[in-string]
; backslash in $'...'
back-dollar-quoted-argument = 117
; backslash or $... in "..."
back-or-dollar-double-quoted-argument = 117
[other]
variable = 117
assign = none
assign-array-bracket = 173
history-expansion = blue,bold
[math]
mathvar = none,bold
mathnum = 151
matherr = red
[for-loop]
forvar = none
fornum = 151
; operator
foroper = none
; separator
forsep = yellow,bold
[case]
case-input = green
case-parentheses = yellow
; case-condition = bg:blue
case-condition = none
Steps to reproduce
screenshots show reproducing
Expected behavior
screenshots show expected
Screenshots and recordings
No response
Operating System & Version
linux-gnu | ubuntu | x86_64 | x86_64 | x86_64 x86_64
Zsh version
zsh 5.8 (x86_64-ubuntu-linux-gnu)
Terminal emulator
screen-256color
If using WSL on Windows, which version of WSL
WSL 2
Additional context
No response