Skip to content

Commit 347778d

Browse files
committed
Chore: Add tests for 'python' token type when not used as a keyword
1 parent b24a574 commit 347778d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

client/test/grammars/snaps/keywords.bb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ inherit_defer foo2
2626

2727
python(){}
2828

29+
test() {
30+
test python
31+
}
32+
33+
def test() {
34+
python = "test"
35+
}

client/test/grammars/test-cases/keywords.bb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,14 @@ python (){}
4141
#^^^^^^^^^^^^^ source.bb keyword.control.bb
4242

4343
python(){}
44-
#<------ source.bb storage.type.function.python.bb
44+
#<------ source.bb storage.type.function.python.bb
45+
46+
>test() {
47+
> test python
48+
# ^^^^^^ source.bb variable.other.names.bb
49+
>}
50+
51+
>def test() {
52+
> python = "test"
53+
# ^^^^^^ source.bb variable.other.names.bb
54+
>}

0 commit comments

Comments
 (0)