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::
Gtk.Label {
styles: ["dim-label", "title"];
styles: ["dim-label", "title"]
}

View file

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

View file

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

View file

@ -60,7 +60,7 @@ class Widget(AstNode):
widgets = Group(
Widgets,
Statement(
Sequence(
Keyword("widgets", True),
OpenBracket(),
Delimited(

View file

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

View file

@ -46,7 +46,7 @@ class StyleClass(AstNode):
styles = Group(
Styles,
Statement(
Sequence(
Keyword("styles", True),
OpenBracket(),
Delimited(

View file

@ -1,7 +1,7 @@
using Gtk 4.0;
Widget {
mime-types [];
patterns [];
suffixes [];
mime-types []
patterns []
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
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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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