Skip to content

Fix #2851 Highlight correctly the attributes and identifiers (with dashes) for Shell language#2871

Merged
alexdima merged 1 commit intomicrosoft:mainfrom
juan-carlos-diaz:main
Jan 27, 2022
Merged

Fix #2851 Highlight correctly the attributes and identifiers (with dashes) for Shell language#2871
alexdima merged 1 commit intomicrosoft:mainfrom
juan-carlos-diaz:main

Conversation

@juan-carlos-diaz
Copy link
Contributor

This PR fix #2851. The fix is correcting the regex that highlight the attributes and create a new regex for identifiers containing dashes.

This impact the Monaco editor playground only.

You can test by running the tests:

npm run release
npm run test

Two new tests added, one for the bug reported and one for the new regex defined (identifiers with dashes).

@ghost
Copy link

ghost commented Jan 3, 2022

CLA assistant check
All CLA requirements met.

@hediet
Copy link
Member

hediet commented Jan 3, 2022

Thanks for the PR!

@hediet hediet added this to the January 2022 milestone Jan 3, 2022
@juan-carlos-diaz juan-carlos-diaz changed the title Fix bug #2851 Fix #2851 Highlight the attributes and identifiers with dashes correctly for Shell language Jan 4, 2022
@juan-carlos-diaz juan-carlos-diaz changed the title Fix #2851 Highlight the attributes and identifiers with dashes correctly for Shell language Fix #2851 Highlight correctly the attributes and identifiers (with dashes) for Shell language Jan 4, 2022
@alexdima alexdima merged commit 9f0a9c2 into microsoft:main Jan 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] shell syntax colors the "-bar" part of "foo-bar" as an attribute

3 participants