mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Add whitespace token to swift and update test to match
This commit is contained in:
parent
d2577bf88c
commit
fcc397a6f5
2 changed files with 44 additions and 38 deletions
|
|
@ -69,6 +69,7 @@ export const language = <ILanguage>{
|
|||
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comment' },
|
||||
{ include: '@attribute' },
|
||||
{ include: '@literal' },
|
||||
|
|
@ -77,6 +78,11 @@ export const language = <ILanguage>{
|
|||
{ include: '@symbol' },
|
||||
],
|
||||
|
||||
whitespace: [
|
||||
[/\s+/, 'white'],
|
||||
[/"""/, 'string.quote', '@endDblDocString']
|
||||
],
|
||||
|
||||
symbol: [
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue