asciidoc.kak: Fix highlighting of _itallic_ markup

`_` is a word character, so the regex cannot be exactly the same
as for `*`.
This commit is contained in:
Maxime Coste 2018-03-05 11:20:56 +11:00
parent 4ab8125de1
commit c6c501eb5b

View File

@ -27,7 +27,7 @@ add-highlighter shared/asciidoc regex ^(={3,})\n[^\n\h].*?\n(={3,})$ 0:block
add-highlighter shared/asciidoc regex ^(~{3,})\n[^\n\h].*?\n(~{3,})$ 0:block add-highlighter shared/asciidoc regex ^(~{3,})\n[^\n\h].*?\n(~{3,})$ 0:block
add-highlighter shared/asciidoc regex ^(\*{3,})\n[^\n\h].*?\n(\*{3,})$ 0:block add-highlighter shared/asciidoc regex ^(\*{3,})\n[^\n\h].*?\n(\*{3,})$ 0:block
add-highlighter shared/asciidoc regex \B(?:\+[^\n]+?\+|`[^\n]+?`)\B 0:mono add-highlighter shared/asciidoc regex \B(?:\+[^\n]+?\+|`[^\n]+?`)\B 0:mono
add-highlighter shared/asciidoc regex \B_[^\n]+?_\B 0:italic add-highlighter shared/asciidoc regex \b_[^\n]+?_\b 0:italic
add-highlighter shared/asciidoc regex \B\*[^\n]+?\*\B 0:bold add-highlighter shared/asciidoc regex \B\*[^\n]+?\*\B 0:bold
add-highlighter shared/asciidoc regex ^:[-\w]+: 0:meta add-highlighter shared/asciidoc regex ^:[-\w]+: 0:meta