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

Incorrect Bash Syntax Highlighting #108

Open
alexr00 opened this issue Dec 19, 2024 · 0 comments
Open

Incorrect Bash Syntax Highlighting #108

alexr00 opened this issue Dec 19, 2024 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Dec 19, 2024

The code with a problem is:

f() {
	declare a
}

g() {
declare a
}

It looks like:

Image

It should look like:

Both declares should have the same color.

Scopes of first declare, on line 2:

support.function.builtin.shell
entity.name.command.shell
entity.name.function.call.shell
meta.statement.command.name.shell
meta.statement.command.shell
meta.statement.shell
meta.function.body.shell
meta.function.shell
source.shell

Scopes of the second declare on line 6:

storage.modifier.declare.shell
meta.expression.assignment.modified.shell
meta.statement.shell
meta.statement.shell
meta.function.body.shell
meta.function.shell
source.shell

Originally reported by @acathe in microsoft/vscode#236497

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