As D18516 is commited now, we can add sound folding for sections.
- Add contexts to support section folding in highlighting definition asciidoc.xml.
- Update and improve test file asciidoc.adoc.
- Update created .fold, .html and .ref files.
dhaumann |
Framework: Syntax Highlighting |
As D18516 is commited now, we can add sound folding for sections.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I think this change is ok. Although, adding many RegExprs is slow compared to other rules.
I understand that.
I just don't see how to achieve the needed matches using other rules.
E.g. a simple string rule using == is not sufficient to correctly match a level 1 section title.