Skip to content

Commit

Permalink
Haxe 5 compat.
Browse files Browse the repository at this point in the history
Required because of HaxeFoundation/haxe#11318
  • Loading branch information
back2dos authored Jan 29, 2024
1 parent 29ffeb6 commit 92e741a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tink/csss/Parser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Parser<Position, Error> extends tink.parse.ParserBase<Position, Error> {
}

function parseSelectorNext(tag:String) {
var ret = { tag: tag, id: null, classes: [], attrs: new Array<AttrFilter>(), pseudos: [] };
var ret = { tag: tag, id: (null:String), classes: [], attrs: new Array<AttrFilter>(), pseudos: [] };
while (true) {
if (allowHere('#')) {
if (ret.id != null) die('cannot have multiple ids (already have ${ret.id})');
Expand Down Expand Up @@ -300,4 +300,4 @@ class Parser<Position, Error> extends tink.parse.ParserBase<Position, Error> {
// 'first' => First, // some @page at-rule related stuff
// 'left' => Left,
];
}
}

0 comments on commit 92e741a

Please sign in to comment.