grammar scope: Need support for `bc..` tag
wion opened this issue · comments
While the bc.
tag now works, support for the bc..
(multi-blocks) tag needs added. This requires figuring out how to continue the presentation on block code across line breaks until escaped, typically with a different Textile tag (e.g. p.
, hn.
, etc).
This now works. Only thing needed was to account for the extra dot in the block code scope. The continuing code block behaviour already worked, I just happened to discover it by accident. ;)
To do the multi-block dance:
- Type the @bc..@ tag (two dots) and the first block of code, as normal.
- Hit in series:
- Return ⮐
- Tab ⇥
- Return ⮐
- Type second block (or paste what you have), and so on until end of the last block.
- Hit in series to exit the tab and end the multi-block capture:
- Return
- Backspace ←
There is no distinction between the bc.
and the bc..
blocks, in fact. You just have to be careful that you use the right number of tag dots when transferring to Textpattern.
Also, in Textpattern, to truly escape the multi-blocks, a new block element starting with a dot tag (p.
, hn.
, etc) must be used, so might as well get in habit of adding it in the .textile draft article.