Skip to content

Commit f056ff2

Browse files
authored
Merge pull request #1133 from tsuyoshicho/syntax/20220828/supportheadline
feat: Add ja special helpHeadline region
2 parents 492ea8f + 84a7be8 commit f056ff2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

syntax/help_ja.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ syn region helpTransNote start="{訳注:" end="}" contains=helpLeadBlank,helpHyp
88
syn region helpBracesInTransNote start=".{"ms=e end="}."me=s transparent contained contains=helpLeadBlank,helpHyperTextJump,helpBracesInTransNote
99
syn match helpSpecial "[。、]\zs\[[-a-z^A-Z0-9_]\{2,}]"
1010
hi def link helpTransNote Special
11+
if has("conceal")
12+
syn region helpHeadline matchgroup=helpIgnore start="^☆\(\s\)\@!" end="\ze\(\s\+\*\|$\)" keepend concealends
13+
else
14+
syn region helpHeadline matchgroup=helpIgnore start="^☆\(\s\)\@!" end="\ze\(\s\+\*\|$\)" keepend
15+
endif

0 commit comments

Comments
 (0)