mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
libSyntax: create separate node kinds for quote (") and multiline quote (""").
This allows us to serialize the quote tokens without serializing their underlying text.
This commit is contained in:
@@ -135,7 +135,9 @@ SYNTAX_TOKENS = [
|
||||
Token('Backslash', 'backslash', text='\\\\'),
|
||||
Token('StringInterpolationAnchor', 'string_interpolation_anchor',
|
||||
text=')'),
|
||||
Token('StringQuote', 'string_quote'),
|
||||
Token('StringQuote', 'string_quote', text='\\\"'),
|
||||
Token('MultilineStringQuote', 'multiline_string_quote',
|
||||
text='\\\"\\\"\\\"'),
|
||||
Token('StringSegment', 'string_segment'),
|
||||
Token('Identifier', 'identifier'),
|
||||
Token('DollarIdentifier', 'dollarident'),
|
||||
|
||||
Reference in New Issue
Block a user