asciidoc: Add support for negated attributes

This commit is contained in:
Kylie McClain 2020-07-23 00:01:04 -04:00
parent ad2f61f91a
commit b52c2a532d

View File

@ -67,7 +67,7 @@ add-highlighter shared/asciidoc/ regex \b_[^\n]+?_\b 0:+i
add-highlighter shared/asciidoc/ regex __[^\n]+?__ 0:+i
# Attributes
add-highlighter shared/asciidoc/ regex ^:[-\w]+: 0:meta
add-highlighter shared/asciidoc/ regex ^:(?:(?<neg>!?)[-\w]+|[-\w]+(?<neg>!?)): 0:meta neg:operator
add-highlighter shared/asciidoc/ regex [^\\](\{[-\w]+\})[^\\]? 1:meta
# Commands