@@ -63,11 +63,9 @@ def gen_raise():
6363
6464 def test_gen_colors_keyword_highlighting (self ):
6565 no_highlight_cases = [
66- ("a.set" , [("." , "op" )]), # 'set' should not be highlighted after '.'
67- ("a.def" , [("." , "op" )]), # 'def' should not be highlighted after '.'
68- ("obj.class" , [("." , "op" )]), # 'class' should not be highlighted after '.'
69- ("obj.list" , [("." , "op" )]), # 'list' should not be highlighted after '.'
70- ("obj.match" , [("." , "op" )]), # 'match' should not be highlighted after '.'
66+ ("a.set" , [("." , "op" )]),
67+ ("obj.list" , [("." , "op" )]),
68+ ("obj.match" , [("." , "op" )]),
7169 ]
7270 for code , expected_highlights in no_highlight_cases :
7371 with self .subTest (code = code ):
@@ -82,8 +80,6 @@ def test_gen_colors_keyword_highlighting(self):
8280 highlight_cases = [
8381 ("set" , [("set" , "builtin" )]),
8482 ("list" , [("list" , "builtin" )]),
85- ("def func():" , [("def" , "keyword" ), ("func" , "definition" ), ("(" , "op" ), (")" , "op" ), (":" , "op" )]),
86- ("class A:" , [("class" , "keyword" ), ("A" , "definition" ), (":" , "op" )]),
8783 ]
8884 for code , expected_highlights in highlight_cases :
8985 with self .subTest (code = code ):
0 commit comments