Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected highlighting when function starts with pushd or popd #102

Open
alexr00 opened this issue Sep 13, 2024 · 0 comments
Open

Unexpected highlighting when function starts with pushd or popd #102

alexr00 opened this issue Sep 13, 2024 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Sep 13, 2024

The code with a problem is:

a() {
	pushd a
	popd
}

It looks like:

Image

It should look like:

The p and the ushd should all be the same token and the same color.

The p has the following scopes:

meta.statement.shell
meta.function.body.shell
meta.function.shell
source.shell

The u, s, h, and d are all individual tokens and have the following scopes:

string.unquoted.shell
meta.statement.command.name.shell
meta.statement.command.shell
meta.statement.shell
meta.function.body.shell
meta.function.shell
source.shell

Original from @Salamandar in microsoft/vscode#228520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant