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 #236497

Open
acathe opened this issue Dec 18, 2024 · 0 comments
Open

Incorrect Bash Syntax Highlighting #236497

acathe opened this issue Dec 18, 2024 · 0 comments
Assignees

Comments

@acathe
Copy link

acathe commented Dec 18, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.96.0
  • OS Version: macOS Sequoia 15.2

Steps to Reproduce:

  1. Create any .sh file.
  2. Use declare to define a variable. In this case, declare is correctly highlighted as a keyword.
  3. Define a function, and use declare as the first statement inside the function with proper indentation. In this case, declare is no longer highlighted as a keyword.
  4. The issue only occurs when declare is used on the first indented line inside a function. If it’s on the second line or the first line without indentation, it is correctly highlighted as a keyword.
Image
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

2 participants