|
|
|
@ -126,6 +126,7 @@ export var language = <ILanguage> {
|
|
|
|
|
// strings
|
|
|
|
|
[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-teminated string
|
|
|
|
|
[/"/, 'string', '@string' ],
|
|
|
|
|
[/`/, "string", "@rawstring"],
|
|
|
|
|
|
|
|
|
|
// characters
|
|
|
|
|
[/'[^\\']'/, 'string'],
|
|
|
|
@ -162,5 +163,10 @@ export var language = <ILanguage> {
|
|
|
|
|
[/\\./, 'string.escape.invalid'],
|
|
|
|
|
[/"/, 'string', '@pop' ]
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
rawstring: [
|
|
|
|
|
[/[^\`]/, "string"],
|
|
|
|
|
[/`/, "string", "@pop"]
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|