diff options
Diffstat (limited to 'org/meta_abstraction.org')
-rw-r--r-- | org/meta_abstraction.org | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org/meta_abstraction.org b/org/meta_abstraction.org index 51b089c..1a9c53c 100644 --- a/org/meta_abstraction.org +++ b/org/meta_abstraction.org @@ -3161,7 +3161,8 @@ void _start_block_(L,T,N)( if (auto m = line.matchFirst(rgx.block_curly_code_open)) { /+ curly code open +/ code_block_syntax = (m.captures[1]) ? m.captures[1].to!string : ""; - code_block_numbered = (m.captures[2] == "#") ? true : false; + code_block_numbered = (m.captures[2].matchFirst(rgx.code_numbering)) + ? true : false; debug(codecurly) { // code (curly) open writefln( "* [code curly] %s", @@ -3246,7 +3247,8 @@ void _start_block_(L,T,N)( } else if (auto m = line.matchFirst(rgx.block_tic_code_open)) { /+ tic code open +/ code_block_syntax = (m.captures[1]) ? m.captures[1].to!string : ""; - code_block_numbered = (m.captures[2] == "#") ? true : false; + code_block_numbered = (m.captures[2].matchFirst(rgx.code_numbering)) + ? true : false; debug(codetic) { // code (tic) open writefln( "* [code tic] %s", |