pgsql-ast-parser icon indicating copy to clipboard operation
pgsql-ast-parser copied to clipboard

Nested comments

Open thgh opened this issue 1 year ago • 0 comments

https://github.com/oguimbal/pgsql-ast-parser/blob/2c84d4ca6d566162c32ff8d0667c8e3bcd94a828/src/lexer.spec.ts#L241-L242

I was wondering about this test case. Shouldn't the lexer detect that as a syntax error?

/* /* */ /* /* */ */ */

Postgresql throws: syntax error at or near "*/"

Also notice that the github code highlighter doesn't expect nested comments.

thgh avatar Mar 08 '24 21:03 thgh