grammar: Fix parsing of expressions injected into strings

Fixes: #6014
This commit is contained in:
Tobias Hunger 2025-08-15 09:30:21 +00:00 committed by Tobias Hunger
parent fb9a2c0f47
commit 704779dfc7
2 changed files with 33 additions and 1 deletions

View file

@ -561,7 +561,17 @@
"patterns": [
{
"name": "constant.character.escape.untitled.slint",
"match": "\\\\(n|\\\\|u\\{\\d+\\}|\\{[^\\}]+\\})"
"match": "\\\\(n|\\\\|u\\{\\d+\\})"
},
{
"name": "constant.character.escape.untitled.slint",
"begin": "\\\\\\{",
"end": "\\}",
"patterns": [
{
"include": "#expression"
}
]
}
]
}