File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -107,16 +107,15 @@ class JSONSchemaLexer(JsonLexer):
107107 ]
108108
109109 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
112111 ]
113112
114- def get_tokens_unprocessed (self , text : str ): # type: ignore[reportUnknownParameterType]
113+ def get_tokens_unprocessed (self , text : str ): # type: ignore[reportUnknownParameterType]
115114 """
116115 Get the unprocessed tokens and add
117116 custom token classes to it according to JSON Schema
118117 """
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]
120119 if token is Token .Name .Tag and value in self .parsed_keywords :
121120 yield start , Token .Keyword , value
122121 elif (
You can’t perform that action at this time.
0 commit comments