GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [swift] Manage swift5 string literals by kenji21 · Pull Request #2666 · pmd/pmd Conversation
|
| [}] 5 5 | ||
| L48 | ||
| [}] 1 1 | ||
| L49 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks like this line has no counterpart in the source file. Maybe this was forgotten?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| DashedSingleStringLiteral : '#"' DashedMultiQuotedText? '"#' ; | ||
| fragment DashedMultiQuotedText : DashedMultiQuotedTextItem+ ; | ||
| fragment DashedMultiQuotedTextItem : EscapedCharacter | DashedMultiInterpolatedString |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure EscapedCharacter should be here. Apparently those dashed string literals are raw strings, so the only escape being processed is \#(..) I guess
Looking at this, it looks like MultiQuotedTextItem (just above) is missing EscapedCharacter too...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ; | ||
| fragment MultiInterpolatedString: '\\(' (MultiQuotedTextItem | SingleStringLiteral)* ')'; | ||
|
|
||
| DashedSingleStringLiteral : '#"' DashedMultiQuotedText? '"#' ; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One may use an arbitrary number of # delimiters provided they're balanced, eg ##"..."##
This link may be a good starting point to implement this
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Support full swift 5 string grammar - arbitrary balanced delimiters - raw strings ignore escapes - multiline raw strings Also rename lexer rules, 'dashed' is not adapted
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.