From 347778dc57a27c2ea8ba129bd503b15370facabc Mon Sep 17 00:00:00 2001 From: Io Andes Daza-Dillon Date: Sat, 16 Nov 2024 09:21:45 -0500 Subject: [PATCH] Chore: Add tests for 'python' token type when not used as a keyword --- client/test/grammars/snaps/keywords.bb | 7 +++++++ client/test/grammars/test-cases/keywords.bb | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/client/test/grammars/snaps/keywords.bb b/client/test/grammars/snaps/keywords.bb index 85de8717..af358167 100644 --- a/client/test/grammars/snaps/keywords.bb +++ b/client/test/grammars/snaps/keywords.bb @@ -26,3 +26,10 @@ inherit_defer foo2 python(){} +test() { + test python +} + +def test() { + python = "test" +} diff --git a/client/test/grammars/test-cases/keywords.bb b/client/test/grammars/test-cases/keywords.bb index 0843e023..5a5718e5 100644 --- a/client/test/grammars/test-cases/keywords.bb +++ b/client/test/grammars/test-cases/keywords.bb @@ -41,4 +41,14 @@ python (){} #^^^^^^^^^^^^^ source.bb keyword.control.bb python(){} -#<------ source.bb storage.type.function.python.bb \ No newline at end of file +#<------ 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 +>} \ No newline at end of file