mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -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]
|
string = (str(token)[1:-1]
|
||||||
.replace("\\n", "\n")
|
.replace("\\n", "\n")
|
||||||
.replace("\\\"", "\"")
|
.replace("\\\"", "\"")
|
||||||
.replace("\\\\", "\\"))
|
.replace("\\\\", "\\")
|
||||||
|
.replace("\\'", "\'"))
|
||||||
ctx.set_group_val(self.key, string, token)
|
ctx.set_group_val(self.key, string, token)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
|
|
||||||
Label {
|
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"/>
|
<requires lib="gtk" version="4.0"/>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label">Test 1 2 3
|
<property name="label">Test 1 2 3
|
||||||
& 4 "5" 6</property>
|
& 4 "5' 6</property>
|
||||||
</object>
|
</object>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue