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 syntax highlighting for bash syntax #14

Open
AdamSLevy opened this issue May 8, 2019 · 0 comments
Open

Incorrect syntax highlighting for bash syntax #14

AdamSLevy opened this issue May 8, 2019 · 0 comments

Comments

@AdamSLevy
Copy link

AdamSLevy commented May 8, 2019

PKGBUILDs are basically special Bash files, so it seems that the syntax highlighting should be nearly identical to sh with some additional special keywords.

However some things are not being highlighted correctly:

For example, the following does not get highlight properly:

_pkgname=pkg
pkgname=$_pkgname-git

$_pkgname is not highlighted. The $ is highlighted in pink, but nothing else.

Additionally if " is used in a variable's value, it is highlight pink.

variable="quoted stuff"

The quotes are highlighted pink but nothing else.

Pink makes it seem like an error but this is valid syntax.

Compare that with highlighting expanded variables inside of a function and you'll see what is expected.

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