Skip to content

Commit b804a9a

Browse files
committed
Syntax: More lazy html tag tests
Prepares for some possible future scope naming changes of core HTML.
1 parent f02a396 commit b804a9a

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

tests/syntax_test_markdown.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ graph n {}
15921592

15931593
```html+php
15941594
<div></div>
1595-
|^^^ entity.name.tag.block.any.html
1595+
|^^^ entity.name.tag.block
15961596
<?php
15971597
| <- markup.raw.code-fence.html-php.markdown-gfm embedding.php meta.embedded punctuation.section.embedded.begin.php
15981598
var_dump(expression);
@@ -1830,7 +1830,7 @@ okay.
18301830
| ^^^^^^^ meta.paragraph markup.italic - meta.disable-markdown
18311831

18321832
</DIV>
1833-
| ^^^ meta.disable-markdown meta.tag.block.any.html
1833+
| ^^^ meta.disable-markdown meta.tag.block
18341834

18351835
## https://spec.commonmark.org/0.30/#example-153
18361836

@@ -1888,7 +1888,7 @@ int x = 33;
18881888
| <- meta.disable-markdown - markup.italic - punctuation
18891889
|^^^^^ meta.disable-markdown - markup.italic
18901890
</Warning>
1891-
| ^^^^^^^ meta.disable-markdown meta.tag.other.html entity.name.tag.other.html
1891+
| ^^^^^^^ meta.disable-markdown meta.tag.other entity.name.tag.other.html
18921892

18931893
## https://spec.commonmark.org/0.30/#example-164
18941894

@@ -1947,15 +1947,15 @@ int x = 33;
19471947
## https://spec.commonmark.org/0.30/#example-169
19481948

19491949
<pre language="haskell"><code>
1950-
| ^^ meta.disable-markdown meta.tag.block.any.html entity.name.tag.block.any.html
1950+
| ^^ meta.disable-markdown meta.tag.block entity.name.tag.block
19511951
import Text.HTML.TagSoup
19521952

19531953
main :: IO ()
19541954
| ^^^^^^^^^^^^ meta.disable-markdown
19551955
main = print $ parseTags tags
19561956
</code></pre>
19571957
| ^^^^^^^^^^^ meta.disable-markdown
1958-
| ^^^ meta.tag.block.any.html entity.name.tag.block.any.html
1958+
| ^^^ meta.tag.block entity.name.tag.block
19591959
okay
19601960
| <- - meta.disable-markdown
19611961

@@ -2193,22 +2193,22 @@ non-disabled markdown
21932193
<div>this is HTML until there are two blank lines
21942194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.disable-markdown
21952195
still <span>HTML</span>
2196-
| ^^^^ meta.tag.inline.any.html entity.name.tag.inline.any.html
2196+
| ^^^^ meta.tag.inline entity.name.tag.inline
21972197
</div>
21982198
| ^^^^ meta.disable-markdown
21992199

22002200
non-disabled markdown
22012201
| <- - meta.disable-markdown
22022202

22032203
<pre>nested tags don't count <pre>test</pre>
2204-
| ^^^^^^ meta.disable-markdown meta.tag.block.any.html
2204+
| ^^^^^^ meta.disable-markdown meta.tag.block
22052205
non-disabled markdown
22062206
| <- - meta.disable-markdown
22072207

22082208
<div>nested tags don't count <div>test
22092209
| ^^^^^ meta.disable-markdown
22102210
</div>
2211-
| ^^^ meta.disable-markdown entity.name.tag.block.any.html
2211+
| ^^^ meta.disable-markdown entity.name.tag.block
22122212

22132213
non-disabled markdown
22142214
| <- - meta.disable-markdown
@@ -2223,7 +2223,7 @@ non-disabled markdown
22232223

22242224
<div>another</div> <span>disable</span> test
22252225
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.disable-markdown
2226-
| ^^^^^^ meta.tag.inline.any.html
2226+
| ^^^^^^ meta.tag.inline
22272227
disabled markdown
22282228
| <- meta.disable-markdown
22292229

@@ -5387,7 +5387,7 @@ blah*
53875387
| ^ punctuation.definition.raw.begin.markdown
53885388
| ^ punctuation.definition.raw.end.markdown
53895389
| ^ - punctuation
5390-
| ^^^^^^^^^^^^^^^^^^^ meta.tag.inline.a.html
5390+
| ^^^^^^^^^^^^^^^^^^^ meta.tag.inline
53915391

53925392
- list item
53935393

@@ -5648,7 +5648,7 @@ foo
56485648
## https://spec.commonmark.org/0.30/#example-344
56495649
56505650
<a href="`">`
5651-
| ^^^^^^^^^ meta.tag.inline.a
5651+
| ^^^^^^^^^ meta.tag.inline
56525652
| ^ punctuation.definition.raw.begin
56535653
56545654
| <- invalid.illegal.non-terminated.raw
@@ -6620,38 +6620,38 @@ testing__
66206620
*italic text <span>HTML element</span> end of italic text*
66216621
| <- punctuation.definition.italic
66226622
| ^ punctuation.definition.italic
6623-
| ^^^^^^ meta.tag.inline.any.html
6624-
| ^^^^^^^ meta.tag.inline.any.html
6623+
| ^^^^^^ meta.tag.inline
6624+
| ^^^^^^^ meta.tag.inline
66256625
66266626
_italic text <SPAN>HTML element</SPAN> end of italic text_
66276627
| <- punctuation.definition.italic
66286628
| ^ punctuation.definition.italic
6629-
| ^^^^^^ meta.tag.inline.any.html
6630-
| ^^^^^^^ meta.tag.inline.any.html
6629+
| ^^^^^^ meta.tag.inline
6630+
| ^^^^^^^ meta.tag.inline
66316631
66326632
**bold text <span>HTML element</span> end of bold text**
66336633
| <- punctuation.definition.bold
66346634
| ^^ punctuation.definition.bold
6635-
| ^^^^^^ meta.tag.inline.any.html
6636-
| ^^^^^^^ meta.tag.inline.any.html
6635+
| ^^^^^^ meta.tag.inline
6636+
| ^^^^^^^ meta.tag.inline
66376637
66386638
__bold text <span>HTML element</span> end of bold text__
66396639
| <- punctuation.definition.bold
66406640
| ^^ punctuation.definition.bold
6641-
| ^^^^^^ meta.tag.inline.any.html
6642-
| ^^^^^^^ meta.tag.inline.any.html
6641+
| ^^^^^^ meta.tag.inline
6642+
| ^^^^^^^ meta.tag.inline
66436643
66446644
*italic text <span>HTML element</span> end of italic text*
66456645
| <- punctuation.definition.italic
66466646
| ^ punctuation.definition.italic
6647-
| ^^^^^^ meta.tag.inline.any.html
6648-
| ^^^^^^^ meta.tag.inline.any.html
6647+
| ^^^^^^ meta.tag.inline
6648+
| ^^^^^^^ meta.tag.inline
66496649
66506650
_italic text <span>HTML element</span> end of italic text_
66516651
| <- punctuation.definition.italic
66526652
| ^ punctuation.definition.italic
6653-
| ^^^^^^ meta.tag.inline.any.html
6654-
| ^^^^^^^ meta.tag.inline.any.html
6653+
| ^^^^^^ meta.tag.inline
6654+
| ^^^^^^^ meta.tag.inline
66556655
66566656
_test <span>text_ foobar</span>
66576657
| <- punctuation

0 commit comments

Comments
 (0)