Skip to content

Commit

Permalink
Chore: Add tests for 'python' token type when not used as a keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
idillon-sfl committed Nov 20, 2024
1 parent b24a574 commit 347778d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions client/test/grammars/snaps/keywords.bb
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ inherit_defer foo2

python(){}

test() {
test python
}

def test() {
python = "test"
}
12 changes: 11 additions & 1 deletion client/test/grammars/test-cases/keywords.bb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ python (){}
#^^^^^^^^^^^^^ source.bb keyword.control.bb

python(){}
#<------ source.bb storage.type.function.python.bb
#<------ source.bb storage.type.function.python.bb

>test() {
> test python
# ^^^^^^ source.bb variable.other.names.bb
>}

>def test() {
> python = "test"
# ^^^^^^ source.bb variable.other.names.bb
>}

0 comments on commit 347778d

Please sign in to comment.