mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Fix single quoted string escape
This commit is contained in:
parent
9d278685b0
commit
17daab82e0
1 changed files with 1 additions and 1 deletions
|
|
@ -862,7 +862,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/"/, { token: 'string.double', next: '@stringDouble' }]
|
[/"/, { token: 'string.double', next: '@stringDouble' }]
|
||||||
],
|
],
|
||||||
string: [
|
string: [
|
||||||
[/[^']+/, 'string'],
|
[/(?:\\'|[^'])+/, 'string'],
|
||||||
[/''/, 'string'],
|
[/''/, 'string'],
|
||||||
[/'/, { token: 'string', next: '@pop' }]
|
[/'/, { token: 'string', next: '@pop' }]
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue