Open
Description
The parser seems to be parsing the following code incorrectly:
This happens on fresh nvchad, astrovim and lazyvim installations.
I have tried to delete unrelated lines of code, so the following piece of code should reproduce the issue.
ZSH="${${(%):-%x}:a:h}"
# Set ZSH_CACHE_DIR to the path where cache files should be created
_omz_source() {
/*) :${filepath:h:t}"
}
# Load all of the lib files in ~/oh-my-zsh/lib that end in .zsh
# TIP: Add files you don't want in git to .gitignore
for lib_file ("$ZSH"/lib/*.zsh); do
_omz_source "lib/${lib_file:t}"
done
Some of the code is highlighted green, and some is white.
Deleting some of the characters brings the highlighting back to normal:
ZSH="${${(%):-%x}:a:h}"
^^^^
# Set ZSH_CACHE_DIR to the path where cache files should be created
_omz_source() {
^
/*) :${filepath:h:t}"
^ * !
}
# Load all of the lib files in ~/oh-my-zsh/lib that end in .zsh
# TIP: Add files you don't want in git to .gitignore
for lib_file ("$ZSH"/lib/*.zsh); do
_omz_source "lib/${lib_file:t}"
done
^
: Deleting these will get the green highlight back to normal
*
: Deleting these will get the white highlight back to normal
!
: Deleting this one will make some of the code green
Metadata
Metadata
Assignees
Labels
No labels