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

sh.yaml: Match valid parameter expansions without braces #3663

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

niten94
Copy link
Contributor

@niten94 niten94 commented Feb 14, 2025

In this pull request, text not parsed in sh as part of a name in parameter expansions without braces are changed to not be highlighted together.

In sh, there is no expansion format other than $parameter when there are no braces. Names cannot begin with a digit but positional parameters with one digit can be specified.

Fixes #3660

Match parameter expansions with valid name only in shell syntax file
when there are no braces.
@niten94 niten94 force-pushed the sh-separate-paramexp branch from 90a85c4 to 4abd966 Compare February 14, 2025 23:59
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

Successfully merging this pull request may close these issues.

Highlighting for shell scripts treats - as potential part of variable names.
3 participants