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:
James Westman 2021-11-30 21:01:49 -06:00
parent 878ff1b37b
commit be3c0de670
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
18 changed files with 24 additions and 24 deletions

View file

@ -211,7 +211,7 @@ Basic Usage
.. code-block:: .. code-block::
Gtk.Label { Gtk.Label {
styles: ["dim-label", "title"]; styles: ["dim-label", "title"]
} }

View file

@ -65,7 +65,7 @@ item = Group(
items = Group( items = Group(
Items, Items,
Statement( Sequence(
Keyword("items", True), Keyword("items", True),
OpenBracket(), OpenBracket(),
Delimited( Delimited(

View file

@ -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(),

View file

@ -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(

View file

@ -61,7 +61,7 @@ item = Group(
strings = Group( strings = Group(
Items, Items,
Statement( Sequence(
Keyword("strings", True), Keyword("strings", True),
OpenBracket(), OpenBracket(),
Delimited( Delimited(

View file

@ -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(

View file

@ -1,7 +1,7 @@
using Gtk 4.0; using Gtk 4.0;
Widget { Widget {
mime-types []; mime-types []
patterns []; patterns []
suffixes []; suffixes []
} }

View file

@ -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

View file

@ -3,7 +3,7 @@ using Gtk 4.0;
StringList { StringList {
strings [ strings [
id, id,
]; ]
} }
Widget id {} Widget id {}

View file

@ -3,7 +3,7 @@ using GObject 2.0;
SizeGroup { SizeGroup {
mode: horizontal; mode: horizontal;
widgets [object]; widgets [object]
} }
GObject.Object object {} GObject.Object object {}

View file

@ -3,5 +3,5 @@ using GObject 2.0;
SizeGroup { SizeGroup {
mode: horizontal; mode: horizontal;
widgets [object]; widgets [object]
} }

View file

@ -2,5 +2,5 @@ using Gtk 4.0;
using GObject 2.0; using GObject 2.0;
GObject.Object { GObject.Object {
styles []; styles []
} }

View file

@ -1,5 +1,5 @@
using Gtk 4.0; using Gtk 4.0;
Widget { Widget {
widgets []; widgets []
} }

View file

@ -5,5 +5,5 @@ ComboBoxText {
"Hello, world!", "Hello, world!",
_("Hello!"), _("Hello!"),
item_id: "item", item_id: "item",
]; ]
} }

View file

@ -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"]
} }

View file

@ -2,7 +2,7 @@ using Gtk 4.0;
SizeGroup { SizeGroup {
mode: horizontal; mode: horizontal;
widgets [label, button]; widgets [label, button]
} }
Label label {} Label label {}

View file

@ -4,5 +4,5 @@ StringList {
strings [ strings [
"Hello, world!", "Hello, world!",
_("Hello!"), _("Hello!"),
]; ]
} }

View file

@ -1,5 +1,5 @@
using Gtk 4.0; using Gtk 4.0;
Label { Label {
styles ["class-1", "class-2"]; styles ["class-1", "class-2"]
} }