mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
fix: prevent early termination of raw strings with hash
This commit is contained in:
parent
0d45802d67
commit
c2335d0cb2
@ -966,9 +966,28 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "double-quoted raw strings and raw byte strings",
|
||||
"comment": "double-quoted raw strings and raw byte strings (no hash)",
|
||||
"name": "string.quoted.double.rust",
|
||||
"begin": "(b?r)(#*)(\")",
|
||||
"begin": "(b?r)(\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "string.quoted.byte.raw.rust"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.rust"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.rust"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "double-quoted raw strings and raw byte strings (with hash)",
|
||||
"name": "string.quoted.double.rust",
|
||||
"begin": "(b?r)(#+)(\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "string.quoted.byte.raw.rust"
|
||||
@ -980,7 +999,7 @@
|
||||
"name": "punctuation.definition.string.rust"
|
||||
}
|
||||
},
|
||||
"end": "(\")(#*)",
|
||||
"end": "(\")(#+)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.rust"
|
||||
|
Loading…
Reference in New Issue
Block a user