mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Remove some semicolons
Remove semicolons everywhere except 'using' statements, properties, attributes, and signals. This should be the last breaking change to the syntax.
This commit is contained in:
parent
878ff1b37b
commit
be3c0de670
18 changed files with 24 additions and 24 deletions
|
@ -211,7 +211,7 @@ Basic Usage
|
|||
.. code-block::
|
||||
|
||||
Gtk.Label {
|
||||
styles: ["dim-label", "title"];
|
||||
styles: ["dim-label", "title"]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ item = Group(
|
|||
|
||||
items = Group(
|
||||
Items,
|
||||
Statement(
|
||||
Sequence(
|
||||
Keyword("items", True),
|
||||
OpenBracket(),
|
||||
Delimited(
|
||||
|
|
|
@ -49,7 +49,7 @@ class FilterString(AstNode):
|
|||
def create_node(tag_name: str, singular: str):
|
||||
return Group(
|
||||
Filters,
|
||||
Statement(
|
||||
Sequence(
|
||||
Keyword(tag_name, True),
|
||||
UseLiteral("tag_name", tag_name),
|
||||
OpenBracket(),
|
||||
|
|
|
@ -60,7 +60,7 @@ class Widget(AstNode):
|
|||
|
||||
widgets = Group(
|
||||
Widgets,
|
||||
Statement(
|
||||
Sequence(
|
||||
Keyword("widgets", True),
|
||||
OpenBracket(),
|
||||
Delimited(
|
||||
|
|
|
@ -61,7 +61,7 @@ item = Group(
|
|||
|
||||
strings = Group(
|
||||
Items,
|
||||
Statement(
|
||||
Sequence(
|
||||
Keyword("strings", True),
|
||||
OpenBracket(),
|
||||
Delimited(
|
||||
|
|
|
@ -46,7 +46,7 @@ class StyleClass(AstNode):
|
|||
|
||||
styles = Group(
|
||||
Styles,
|
||||
Statement(
|
||||
Sequence(
|
||||
Keyword("styles", True),
|
||||
OpenBracket(),
|
||||
Delimited(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Widget {
|
||||
mime-types [];
|
||||
patterns [];
|
||||
suffixes [];
|
||||
mime-types []
|
||||
patterns []
|
||||
suffixes []
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
4,3,14,Gtk.Widget is not a Gtk.FileFilter, so it doesn't have file filter properties
|
||||
5,3,12,Gtk.Widget is not a Gtk.FileFilter, so it doesn't have file filter properties
|
||||
6,3,12,Gtk.Widget is not a Gtk.FileFilter, so it doesn't have file filter properties
|
||||
4,3,13,Gtk.Widget is not a Gtk.FileFilter, so it doesn't have file filter properties
|
||||
5,3,11,Gtk.Widget is not a Gtk.FileFilter, so it doesn't have file filter properties
|
||||
6,3,11,Gtk.Widget is not a Gtk.FileFilter, so it doesn't have file filter properties
|
||||
|
|
|
@ -3,7 +3,7 @@ using Gtk 4.0;
|
|||
StringList {
|
||||
strings [
|
||||
id,
|
||||
];
|
||||
]
|
||||
}
|
||||
|
||||
Widget id {}
|
||||
|
|
|
@ -3,7 +3,7 @@ using GObject 2.0;
|
|||
|
||||
SizeGroup {
|
||||
mode: horizontal;
|
||||
widgets [object];
|
||||
widgets [object]
|
||||
}
|
||||
|
||||
GObject.Object object {}
|
||||
|
|
|
@ -3,5 +3,5 @@ using GObject 2.0;
|
|||
|
||||
SizeGroup {
|
||||
mode: horizontal;
|
||||
widgets [object];
|
||||
widgets [object]
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@ using Gtk 4.0;
|
|||
using GObject 2.0;
|
||||
|
||||
GObject.Object {
|
||||
styles [];
|
||||
styles []
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Widget {
|
||||
widgets [];
|
||||
widgets []
|
||||
}
|
||||
|
|
|
@ -5,5 +5,5 @@ ComboBoxText {
|
|||
"Hello, world!",
|
||||
_("Hello!"),
|
||||
item_id: "item",
|
||||
];
|
||||
]
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ using Gtk 4.0;
|
|||
|
||||
FileFilter {
|
||||
name: "File Filter Name";
|
||||
mime-types ["text/plain", "image/ *"];
|
||||
patterns ["*.txt"];
|
||||
suffixes ["png"];
|
||||
mime-types ["text/plain", "image/ *"]
|
||||
patterns ["*.txt"]
|
||||
suffixes ["png"]
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ using Gtk 4.0;
|
|||
|
||||
SizeGroup {
|
||||
mode: horizontal;
|
||||
widgets [label, button];
|
||||
widgets [label, button]
|
||||
}
|
||||
|
||||
Label label {}
|
||||
|
|
|
@ -4,5 +4,5 @@ StringList {
|
|||
strings [
|
||||
"Hello, world!",
|
||||
_("Hello!"),
|
||||
];
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
styles ["class-1", "class-2"];
|
||||
styles ["class-1", "class-2"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue