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

Fix: 'python' highlighting when not a keyword #352

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

Conversation

idillon-sfl
Copy link
Member

Before:
Screenshot 2024-11-15 at 10 19 12 AM

After:
Screenshot 2024-11-15 at 10 19 44 AM

It seems vscode-tmgrammar-test does not remove '>' in the beginning of the test cases before executing them. It results that '>python' will not match with a regex such as '^python'. Hence some tests had to be modified.
@idillon-sfl idillon-sfl force-pushed the Bug-15937-Fix-python-keyword-highlighting branch from 5670a26 to 785981a Compare November 16, 2024 14:31
@idillon-sfl
Copy link
Member Author

Great, we had tests! Good job @WilsonZiweiWang

Sorry for prematurely calling everyone for review (again). It should work now.

>python () {
#^^^^^^ source.bb storage.type.function.python.bb - entity.name.function.python.bb
python () {
#<------ source.bb storage.type.function.python.bb - entity.name.function.python.bb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vscode-tmgrammar-test was including > into the match, which caused the test to fail

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.

1 participant