mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix menus
- Menus require an ID - The top level menu block can't have attributes
This commit is contained in:
parent
8a1dba662a
commit
51d8969ced
9 changed files with 43 additions and 13 deletions
3
tests/sample_errors/menu_no_id.blp
Normal file
3
tests/sample_errors/menu_no_id.blp
Normal file
|
@ -0,0 +1,3 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu {}
|
1
tests/sample_errors/menu_no_id.err
Normal file
1
tests/sample_errors/menu_no_id.err
Normal file
|
@ -0,0 +1 @@
|
|||
3,1,4,Menu requires an ID
|
5
tests/sample_errors/menu_toplevel_attribute.blp
Normal file
5
tests/sample_errors/menu_toplevel_attribute.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu {
|
||||
not-allowed: true;
|
||||
}
|
2
tests/sample_errors/menu_toplevel_attribute.err
Normal file
2
tests/sample_errors/menu_toplevel_attribute.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
4,5,19,Attributes are not permitted at the top level of a menu
|
||||
4,16,8,Unexpected tokens
|
Loading…
Add table
Add a link
Reference in a new issue