Skip to content

Commit

Permalink
Fix: incorrect highlighting on keyword 'python'
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Mar 12, 2024
1 parent e71183c commit 7582998
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/syntaxes/bitbake.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"include": "#python-keywords"
},
{
"match": "\\b(python|def)\\b(?![[:punct:]])",
"match": "\\b(python|def)\\b(\\(?)",
"captures": {
"1": {
"name": "storage.type.function.python.bb"
Expand Down
2 changes: 2 additions & 0 deletions client/test/grammars/snaps/keywords.bb
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ python (){}

inherit_defer foo2

python(){}

5 changes: 4 additions & 1 deletion client/test/grammars/test-cases/keywords.bb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@
#^^^^^^ source.bb storage.type.function.python.bb

>inherit_defer foo2
#^^^^^^^^^^^^^ source.bb keyword.control.bb
#^^^^^^^^^^^^^ source.bb keyword.control.bb

>python(){}
#^^^^^^ source.bb storage.type.function.python.bb

0 comments on commit 7582998

Please sign in to comment.