File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -187,21 +187,6 @@ FrontendLexer::Token FrontendLexer::getToken()
187187
188188 switch (toupper (*pos))
189189 {
190- case ' (' :
191- token.type = Token::TYPE_OPEN_PAREN;
192- token.processedText = *pos++;
193- break ;
194-
195- case ' )' :
196- token.type = Token::TYPE_CLOSE_PAREN;
197- token.processedText = *pos++;
198- break ;
199-
200- case ' ,' :
201- token.type = Token::TYPE_COMMA;
202- token.processedText = *pos++;
203- break ;
204-
205190 case ' ;' :
206191 token.type = Token::TYPE_OTHER;
207192 token.processedText = *pos++;
@@ -237,6 +222,7 @@ FrontendLexer::Token FrontendLexer::getNameToken()
237222 if (const auto optStringToken = getStringToken (); optStringToken.has_value ())
238223 return optStringToken.value ();
239224
225+ /* ** Revert to strict parsing with schemas support branch.
240226 const auto start = pos;
241227 bool first = true;
242228
@@ -266,6 +252,8 @@ FrontendLexer::Token FrontendLexer::getNameToken()
266252 token.processedText.begin(), toupper);
267253
268254 return token;
255+ ***/
256+ return getToken ();
269257}
270258
271259std::optional<FrontendLexer::Token> FrontendLexer::getStringToken ()
Original file line number Diff line number Diff line change @@ -39,9 +39,6 @@ class FrontendLexer
3939 TYPE_EOF,
4040 TYPE_STRING,
4141 TYPE_META_STRING,
42- TYPE_OPEN_PAREN,
43- TYPE_CLOSE_PAREN,
44- TYPE_COMMA,
4542 TYPE_OTHER
4643 };
4744
You can’t perform that action at this time.
0 commit comments