mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Add test case and hotfix for #8
This commit is contained in:
8
test/issues/8/flex.html
Normal file
8
test/issues/8/flex.html
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
<Flex justify="between" style={[tableStyle.mainWrapper, tableStyle.noData]}>
|
||||
<FlexItem flex>
|
||||
<ActivityIndicator animating size="large"/>
|
||||
<Text style={tableStyle.noDataText}>数据加载中。。。</Text>
|
||||
</FlexItem>
|
||||
</Flex>
|
||||
|
||||
6
test/issues/8/flex2.html
Normal file
6
test/issues/8/flex2.html
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
<Flex>
|
||||
<FlexItem flex>
|
||||
</FlexItem>
|
||||
</Flex>
|
||||
|
||||
10
test/issues/8/hotfix.vim
Normal file
10
test/issues/8/hotfix.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
function! HTMLHotFix()
|
||||
call matchup#util#patch_match_words(
|
||||
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>',
|
||||
\ '<\@<=\([^/][^ \t>]*\)\%(>\|$\|[ \t][^>]*\%(>\|$\)\):<\@<=/\1>'
|
||||
\)
|
||||
endfunction
|
||||
|
||||
let g:matchup_hotfix_html = 'HTMLHotFix'
|
||||
|
||||
Reference in New Issue
Block a user