mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
fix r roxygen comment highlighting #2086
This commit is contained in:
parent
65554d83e3
commit
e50e2a274b
2 changed files with 0 additions and 41 deletions
|
|
@ -23,44 +23,6 @@ testTokenization('rust', [
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// Raw String
|
|
||||||
[
|
|
||||||
{
|
|
||||||
line: 'r"This is a raw string" ',
|
|
||||||
tokens: [
|
|
||||||
{ startIndex: 0, type: 'string.raw.rust' },
|
|
||||||
{ startIndex: 23, type: 'white.rust' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
line: 'r#"This is a raw string"# ',
|
|
||||||
tokens: [
|
|
||||||
{ startIndex: 0, type: 'string.raw.rust' },
|
|
||||||
{ startIndex: 25, type: 'white.rust' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
line: 'r##"This is a# raw string"## ',
|
|
||||||
tokens: [
|
|
||||||
{ startIndex: 0, type: 'string.raw.rust' },
|
|
||||||
{ startIndex: 28, type: 'white.rust' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
line: 'r###"This is ##"#"##a raw### string"### ',
|
|
||||||
tokens: [
|
|
||||||
{ startIndex: 0, type: 'string.raw.rust' },
|
|
||||||
{ startIndex: 39, type: 'white.rust' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
// Byte literal
|
// Byte literal
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -270,9 +270,6 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
|
|
||||||
tokenizer: {
|
tokenizer: {
|
||||||
root: [
|
root: [
|
||||||
// Raw string literals
|
|
||||||
[/r(?=#*")/, { token: 'string.raw', bracket: '@open', next: '@stringraw' }],
|
|
||||||
[
|
|
||||||
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
||||||
{
|
{
|
||||||
cases: {
|
cases: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue