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

Options on new lines don't get scoped as options #99

Open
alexr00 opened this issue Aug 14, 2024 · 0 comments
Open

Options on new lines don't get scoped as options #99

alexr00 opened this issue Aug 14, 2024 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Aug 14, 2024

The code with a problem is:

# good
ls -alh

# good
ls \
    -alh \

# not good, `-alh` should be "blue" as well
ls \
-alh \

It looks like:

Image

It should look like:

The -alh options should have the same scopes and color in all three examples.

The correct -alh tokens have the following scopes:

constant.other.option.dash.shell
string.unquoted.argument.shell
meta.statement.command.shell
meta.statement.shell
source.shell

The incorrect one has:

meta.statement.command.shell
meta.statement.shell
source.shell

Originally from @liufeimath in microsoft/vscode#225561

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