mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
Implement array value
Adds ArrayValue docs, and tests for diagnostics.
This commit is contained in:
parent
f1cf70b6eb
commit
14be727777
12 changed files with 115 additions and 4 deletions
6
tests/sample_errors/newline_in_string_array.blp
Normal file
6
tests/sample_errors/newline_in_string_array.blp
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
AboutDialog about {
|
||||
valign: center;
|
||||
authors: ["Olimar\n"];
|
||||
}
|
1
tests/sample_errors/newline_in_string_array.err
Normal file
1
tests/sample_errors/newline_in_string_array.err
Normal file
|
@ -0,0 +1 @@
|
|||
5,15,10,String literals inside arrays can't contain newlines
|
6
tests/sample_errors/newline_in_string_array_multi.blp
Normal file
6
tests/sample_errors/newline_in_string_array_multi.blp
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
AboutDialog about {
|
||||
valign: center;
|
||||
authors: ["Olimar\n", "Luie\nPresident"];
|
||||
}
|
2
tests/sample_errors/newline_in_string_array_multi.err
Normal file
2
tests/sample_errors/newline_in_string_array_multi.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
5,15,10,String literals inside arrays can't contain newlines
|
||||
5,27,17,String literals inside arrays can't contain newlines
|
Loading…
Add table
Add a link
Reference in a new issue