@@ -721,7 +721,6 @@ describe "Python grammar", ->
721
721
{tokens } = grammar .tokenizeLine " lambda x, z = 4: x * z"
722
722
723
723
expect (tokens[0 ]).toEqual value : ' lambda' , scopes : [' source.python' , ' meta.function.inline.python' , ' storage.type.function.inline.python' ]
724
- expect (tokens[1 ]).toEqual value : ' ' , scopes : [' source.python' , ' meta.function.inline.python' ]
725
724
expect (tokens[2 ]).toEqual value : ' x' , scopes : [' source.python' , ' meta.function.inline.python' , ' meta.function.inline.parameters.python' , ' variable.parameter.function.python' ]
726
725
expect (tokens[3 ]).toEqual value : ' ,' , scopes : [' source.python' , ' meta.function.inline.python' , ' meta.function.inline.parameters.python' , ' punctuation.separator.parameters.python' ]
727
726
expect (tokens[5 ]).toEqual value : ' z' , scopes : [' source.python' , ' meta.function.inline.python' , ' meta.function.inline.parameters.python' , ' variable.parameter.function.python' ]
@@ -735,10 +734,14 @@ describe "Python grammar", ->
735
734
expect (tokens[0 ]).toEqual value : ' lambda' , scopes : [' source.python' , ' meta.function.inline.python' , ' storage.type.function.inline.python' ]
736
735
expect (tokens[1 ]).toEqual value : ' :' , scopes : [' source.python' , ' meta.function.inline.python' , ' punctuation.definition.function.begin.python' ]
737
736
738
- it " does not tokenizes a variable name containing lambda as a lambda" , ->
737
+ it " does not tokenizes a variable name ending with lambda as a lambda" , ->
739
738
{tokens } = grammar .tokenizeLine " not_a_lambda.foo"
740
739
expect (tokens[0 ]).toEqual value : ' not_a_lambda' , scopes : [' source.python' , ' variable.other.object.python' ]
741
740
741
+ it " does not tokenizes a variable name starting with lambda as a lambda" , ->
742
+ {tokens } = grammar .tokenizeLine " lambda_not.foo"
743
+ expect (tokens[0 ]).toEqual value : ' lambda_not' , scopes : [' source.python' , ' variable.other.object.python' ]
744
+
742
745
describe " SQL highlighting" , ->
743
746
beforeEach ->
744
747
waitsForPromise ->
0 commit comments