Merge pull request #148 from nathanrreed/roxygen

fix rust raw string highlighting #2086
pull/2748/head
Henning Dieterichs 4 years ago committed by GitHub
commit 7be48826ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,6 +101,21 @@ testTokenization('r', [
] ]
} }
], ],
[
{
line: " #'",
tokens: [
{ startIndex: 0, type: 'white.r' },
{ startIndex: 1, type: 'comment.doc.r' }
]
},
{
line: " ",
tokens: [
{ startIndex: 0, type: 'white.r' },
]
}
],
// Strings // Strings
[ [

@ -163,7 +163,7 @@ export const language = <languages.IMonarchLanguage>{
[/[{}\[\]()]/, '@brackets'], [/[{}\[\]()]/, '@brackets'],
{ include: '@operators' }, { include: '@operators' },
[/#'$/, 'comment.doc'],
[/#'/, 'comment.doc', '@roxygen'], [/#'/, 'comment.doc', '@roxygen'],
[/(^#.*$)/, 'comment'], [/(^#.*$)/, 'comment'],

Loading…
Cancel
Save