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

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

@idillon-sfl idillon-sfl force-pushed the Bug-15937-Fix-python-keyword-highlighting branch from 075c4bf to 5670a26 Compare November 16, 2024 14:23
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.

Copy link
Contributor

@WilsonZiweiWang WilsonZiweiWang left a comment

Choose a reason for hiding this comment

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

LGTM

client/test/grammars/test-cases/functions.bb Show resolved Hide resolved
@idillon-sfl idillon-sfl merged commit 347778d into yoctoproject:staging Nov 20, 2024
5 checks passed
@idillon-sfl idillon-sfl deleted the Bug-15937-Fix-python-keyword-highlighting branch November 20, 2024 07:27
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.

2 participants