htmljs-parser
Advanced tools
Changelog
5.0.3
b1e68a3
Thanks @DylanPiercey! - Fix regression that causes incorrect expression continuations after regexps.Changelog
5.0.2
28fde07
Thanks @DylanPiercey! - Support JS line comments inside the open tag (previously just block comments could be used).28fde07
Thanks @DylanPiercey! - Support JS style comments in HTML bodies (previously allowed in parsed text and concise mode).Changelog
5.0.1
8bd3c40
Thanks @DylanPiercey! - Fix issue with onCloseTagStart not called for text mode tags (eg style, script, textarea & html-comment).Changelog
5.0.0
14f3499
Thanks @DylanPiercey! - Rename onTagName
to onOpenTagName
.
Add a new onOpenTagStart
event (before onOpenTagName
).
Split the onCloseTag
event into three new events: onClosetTagStart
, onCloseTagName
& onCloseTagEnd
).Changelog
4.0.0
2ad4628
Thanks @DylanPiercey! - Switch character position offsets for newlines to be to similar to vscode. Previously the newline was counted as the first character of the line, now it is the last character of the previous line.Changelog
3.3.6
281750a
Thanks @DylanPiercey! - Rename publish script to release in order to avoid a double publish in the CIChangelog
3.3.5
8a988f4
Thanks @DylanPiercey! - Fix issue where parser would sometimes not consume enough characters and cause a bracket mismatchChangelog
3.3.4
a4e3635
Thanks @DylanPiercey! - Fixes issue where expressions could consume an extra character when windows line endings used.1f2c9b0
Thanks @DylanPiercey! - When parsing unenclosed expressions we look backwards for unary operators preceded by a word break. This caused a false positive when a member expression was found with the operator name, eg input.new
. Now we ensure that these operators are not in a member expression like this.469b4bc
Thanks @DylanPiercey! - Improves consistency with v2 of the parser by allowing expressions to span multiple lines if the line is ended with the continuation. This change also allows html attributes and grouped concise attributes to span multiple lines with a new line before or after the continuation.Changelog
3.3.3
9034f55
Thanks @DylanPiercey! - Parse tag variable type as an continuable expression.Changelog
3.3.2
b1a3008
Thanks @DylanPiercey! - Fix expression continuations containing equals not consuming enough characters