nbscala icon indicating copy to clipboard operation
nbscala copied to clipboard

Parser discrepancy

Open rcano opened this issue 10 years ago • 1 comments

The syntax parser rules out valid scala constructions, for example: ''' this is the single quote character. Another example: """"Hello World"""" This is the string "Hello World" in a triple quoted string literal.

rcano avatar Jun 15 '14 02:06 rcano

Fixing the multiline string was easy, I just had to add ["]* at the end of the stringLiteral rule. Nevertheless, even when I fixed the rule for the ''' case, I't still rejected, somewhere down the parsing pipeline, this comment "Although it should be: ['] characterChar ['], but for error recover, we change it to this" suggest this, but I cannot find where,

rcano avatar Oct 17 '14 04:10 rcano