File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -107,16 +107,15 @@ class JSONSchemaLexer(JsonLexer):
107
107
]
108
108
109
109
parsed_data_types : ClassVar [list [str ]] = [
110
- '"%s"' % data_type
111
- for data_type in data_types
110
+ '"%s"' % data_type for data_type in data_types
112
111
]
113
112
114
- def get_tokens_unprocessed (self , text : str ): # type: ignore[reportUnknownParameterType]
113
+ def get_tokens_unprocessed (self , text : str ): # type: ignore[reportUnknownParameterType]
115
114
"""
116
115
Get the unprocessed tokens and add
117
116
custom token classes to it according to JSON Schema
118
117
"""
119
- for start , token , value in super ().get_tokens_unprocessed (text ): # type: ignore[reportUnknownVariableType]
118
+ for start , token , value in super ().get_tokens_unprocessed (text ): # type: ignore[reportUnknownVariableType]
120
119
if token is Token .Name .Tag and value in self .parsed_keywords :
121
120
yield start , Token .Keyword , value
122
121
elif (
You can’t perform that action at this time.
0 commit comments