alan-if / alan-docs

Alan IF Documentation Project
https://git.io/alan-docs
Other
3 stars 0 forks source link

Highlight ALAN: Add Block Comments Support #121

Closed tajmone closed 2 years ago

tajmone commented 2 years ago

Our custom ALAN syntax for Highlight doesn't cover the new block comments that will be available with ALAN Beta8.


Ongoing implementation work can be tracked on the ALAN Testbed project:

but so far I've been struggling to implement block comments supports due to Highlight quirks in precedence order of matching RegExs — but I think I've found a fix for this via custom hooks code, just need to sit down and work on it.

tajmone commented 2 years ago

Block Comments Implemented

I've updated the Highlight syntax for ALAN to cover block comments, which can be found in the ALAN Testbed:

Now I only need to add the new syntax to this repo, update the Sass themes to cover block comments. Before we were using the native ALAN syntax that ships with HL, but now I'll be adding our custom syntax, so that we can start using it before it's included in the next HL release package (of course, I'll submit it to HL too). This will also simplify adding other custom syntaxes, e.g. for the EBNF blocks.