mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Add support for multiline strings in Swift
This commit is contained in:
parent
fcc397a6f5
commit
28741d3741
2 changed files with 21 additions and 0 deletions
|
|
@ -163,6 +163,20 @@ testTokenization('swift', [
|
|||
{ startIndex: 60, type: 'string.quote.swift' } /* '"' */
|
||||
]
|
||||
}],
|
||||
// Multiline string
|
||||
[{
|
||||
line: '"""test"test', // Separate new lines into separate objects within this same array.
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'string.quote.swift' }, /* '"""' */
|
||||
{ startIndex: 3, type: 'string.swift' } /* test"test */
|
||||
]
|
||||
}, {
|
||||
line: ' keepsgoing"""',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'string.swift' }, /* ' keepsgoing' */
|
||||
{ startIndex: 11, type: 'string.quote.swift' } /* '"""' */
|
||||
]
|
||||
}],
|
||||
// Method invocation/property accessor.
|
||||
[{
|
||||
line: ' let view = self.window!.contr as! UIView',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue