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::
|
.. code-block::
|
||||||
|
|
||||||
Gtk.Label {
|
Gtk.Label {
|
||||||
styles: ["dim-label", "title"];
|
styles: ["dim-label", "title"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ item = Group(
|
||||||
|
|
||||||
items = Group(
|
items = Group(
|
||||||
Items,
|
Items,
|
||||||
Statement(
|
Sequence(
|
||||||
Keyword("items", True),
|
Keyword("items", True),
|
||||||
OpenBracket(),
|
OpenBracket(),
|
||||||
Delimited(
|
Delimited(
|
||||||
|
|
|
@ -49,7 +49,7 @@ class FilterString(AstNode):
|
||||||
def create_node(tag_name: str, singular: str):
|
def create_node(tag_name: str, singular: str):
|
||||||
return Group(
|
return Group(
|
||||||
Filters,
|
Filters,
|
||||||
Statement(
|
Sequence(
|
||||||
Keyword(tag_name, True),
|
Keyword(tag_name, True),
|
||||||
UseLiteral("tag_name", tag_name),
|
UseLiteral("tag_name", tag_name),
|
||||||
OpenBracket(),
|
OpenBracket(),
|
||||||
|
|
|
@ -60,7 +60,7 @@ class Widget(AstNode):
|
||||||
|
|
||||||
widgets = Group(
|
widgets = Group(
|
||||||
Widgets,
|
Widgets,
|
||||||
Statement(
|
Sequence(
|
||||||
Keyword("widgets", True),
|
Keyword("widgets", True),
|
||||||
OpenBracket(),
|
OpenBracket(),
|
||||||
Delimited(
|
Delimited(
|
||||||
|
|
|
@ -61,7 +61,7 @@ item = Group(
|
||||||
|
|
||||||
strings = Group(
|
strings = Group(
|
||||||
Items,
|
Items,
|
||||||
Statement(
|
Sequence(
|
||||||
Keyword("strings", True),
|
Keyword("strings", True),
|
||||||
OpenBracket(),
|
OpenBracket(),
|
||||||
Delimited(
|
Delimited(
|
||||||
|
|
|
@ -46,7 +46,7 @@ class StyleClass(AstNode):
|
||||||
|
|
||||||
styles = Group(
|
styles = Group(
|
||||||
Styles,
|
Styles,
|
||||||
Statement(
|
Sequence(
|
||||||
Keyword("styles", True),
|
Keyword("styles", True),
|
||||||
OpenBracket(),
|
OpenBracket(),
|
||||||
Delimited(
|
Delimited(
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
|
|
||||||
Widget {
|
Widget {
|
||||||
mime-types [];
|
mime-types []
|
||||||
patterns [];
|
patterns []
|
||||||
suffixes [];
|
suffixes []
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
4,3,14,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,12,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,12,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 {
|
StringList {
|
||||||
strings [
|
strings [
|
||||||
id,
|
id,
|
||||||
];
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget id {}
|
Widget id {}
|
||||||
|
|
|
@ -3,7 +3,7 @@ using GObject 2.0;
|
||||||
|
|
||||||
SizeGroup {
|
SizeGroup {
|
||||||
mode: horizontal;
|
mode: horizontal;
|
||||||
widgets [object];
|
widgets [object]
|
||||||
}
|
}
|
||||||
|
|
||||||
GObject.Object object {}
|
GObject.Object object {}
|
||||||
|
|
|
@ -3,5 +3,5 @@ using GObject 2.0;
|
||||||
|
|
||||||
SizeGroup {
|
SizeGroup {
|
||||||
mode: horizontal;
|
mode: horizontal;
|
||||||
widgets [object];
|
widgets [object]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@ using Gtk 4.0;
|
||||||
using GObject 2.0;
|
using GObject 2.0;
|
||||||
|
|
||||||
GObject.Object {
|
GObject.Object {
|
||||||
styles [];
|
styles []
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
|
|
||||||
Widget {
|
Widget {
|
||||||
widgets [];
|
widgets []
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,5 @@ ComboBoxText {
|
||||||
"Hello, world!",
|
"Hello, world!",
|
||||||
_("Hello!"),
|
_("Hello!"),
|
||||||
item_id: "item",
|
item_id: "item",
|
||||||
];
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ using Gtk 4.0;
|
||||||
|
|
||||||
FileFilter {
|
FileFilter {
|
||||||
name: "File Filter Name";
|
name: "File Filter Name";
|
||||||
mime-types ["text/plain", "image/ *"];
|
mime-types ["text/plain", "image/ *"]
|
||||||
patterns ["*.txt"];
|
patterns ["*.txt"]
|
||||||
suffixes ["png"];
|
suffixes ["png"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ using Gtk 4.0;
|
||||||
|
|
||||||
SizeGroup {
|
SizeGroup {
|
||||||
mode: horizontal;
|
mode: horizontal;
|
||||||
widgets [label, button];
|
widgets [label, button]
|
||||||
}
|
}
|
||||||
|
|
||||||
Label label {}
|
Label label {}
|
||||||
|
|
|
@ -4,5 +4,5 @@ StringList {
|
||||||
strings [
|
strings [
|
||||||
"Hello, world!",
|
"Hello, world!",
|
||||||
_("Hello!"),
|
_("Hello!"),
|
||||||
];
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using Gtk 4.0;
|
using Gtk 4.0;
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
styles ["class-1", "class-2"];
|
styles ["class-1", "class-2"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue