From baf1477c587fe22d27e94408cf2505d588ba007e Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 30 Nov 2021 07:28:21 +0100 Subject: add spans feature --- tests/files/test.html | 7 +++++++ tests/files/test.out | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 tests/files/test.html create mode 100644 tests/files/test.out (limited to 'tests/files') diff --git a/tests/files/test.html b/tests/files/test.html new file mode 100644 index 0000000..0dcbdbf --- /dev/null +++ b/tests/files/test.html @@ -0,0 +1,7 @@ +This is a file. + +Here is a tag: very cool + +Tags can have attributes:
...
+ +Attribute values can be quoted: diff --git a/tests/files/test.out b/tests/files/test.out new file mode 100644 index 0000000..7127ebc --- /dev/null +++ b/tests/files/test.out @@ -0,0 +1,17 @@ +note: + ┌─ test.html:3:17 + │ +3 │ Here is a tag: very cool + │ ^^^^^^ ^^^^^^ EndTag + │ │ + │ StartTag +4 │ +5 │ Tags can have attributes:
...
+ │ ^^ ^^^ attribute value + │ │ + │ attribute name +6 │ +7 │ Attribute values can be quoted: + │ ^^^ ^^^^^^ in double quotes + │ │ + │ in single quotes -- cgit v1.2.3