mirror of
https://github.com/posva/vim-vue.git
synced 2026-01-22 23:22:04 +08:00
Fix #96 - support custom html tag names
This commit is contained in:
13
test/test_html_tag_names.vader
Normal file
13
test/test_html_tag_names.vader
Normal file
@@ -0,0 +1,13 @@
|
||||
Given vue (Arbitrary HTML tag names):
|
||||
<list></list>
|
||||
<FormItem></FormItem>
|
||||
<form-item><form-item>
|
||||
<h1></h1>
|
||||
<foo:bar></foo:bar>
|
||||
|
||||
Execute (The valid combinations get highlighted, since Vue does not enforce the W3C rules for custom tag names):
|
||||
AssertEqual 'htmlTagName', SyntaxOf('list')
|
||||
AssertEqual 'htmlTagName', SyntaxOf('FormItem')
|
||||
AssertEqual 'htmlTagName', SyntaxOf('form-item')
|
||||
AssertEqual 'htmlTagName', SyntaxOf('h1')
|
||||
AssertEqual 'htmlTagName', SyntaxOf('foo:bar')
|
||||
Reference in New Issue
Block a user