fix rust raw string highlighting #2086
@@ -101,6 +101,21 @@ testTokenization('r', [
]
}
],
+ [
+ {
+ line: " #'",
+ tokens: [
+ { startIndex: 0, type: 'white.r' },
+ { startIndex: 1, type: 'comment.doc.r' }
+ ]
+ },
+ line: " ",
+ }
+ ],
// Strings
[
@@ -163,7 +163,7 @@ export const language = <languages.IMonarchLanguage>{
[/[{}\[\]()]/, '@brackets'],
{ include: '@operators' },
-
+ [/#'$/, 'comment.doc'],
[/#'/, 'comment.doc', '@roxygen'],
[/(^#.*$)/, 'comment'],