mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Allow \' in strings
This commit is contained in:
parent
0afa62654d
commit
7cab7da4bb
3 changed files with 4 additions and 3 deletions
|
@ -494,7 +494,8 @@ class UseQuoted(ParseNode):
|
|||
string = (str(token)[1:-1]
|
||||
.replace("\\n", "\n")
|
||||
.replace("\\\"", "\"")
|
||||
.replace("\\\\", "\\"))
|
||||
.replace("\\\\", "\\")
|
||||
.replace("\\'", "\'"))
|
||||
ctx.set_group_val(self.key, string, token)
|
||||
return True
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: "Test 1 2 3\n & 4 \"5\" 6";
|
||||
label: "Test 1 2 3\n & 4 \"5\' 6";
|
||||
}
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Test 1 2 3
|
||||
& 4 "5" 6</property>
|
||||
& 4 "5' 6</property>
|
||||
</object>
|
||||
</interface>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue