Skip to content

Comments

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

Merged
JoeKar merged 2 commits intomicro-editor:masterfrom
niten94:sh-separate-paramexp
Feb 27, 2025
Merged

sh.yaml: Match valid parameter expansions without braces#3663
JoeKar merged 2 commits intomicro-editor:masterfrom
niten94:sh-separate-paramexp

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
@JoeKar JoeKar merged commit 272a308 into micro-editor:master Feb 27, 2025
6 checks passed
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