I apologize if this question is a duplicate or asked in the wrong forum.
I’m using the SyntaxFold package to code fold PIC Assembly. The folding should occur on specific tags within comments. Here is an example:
;------------------------------------------------------------------------------
;<editor-fold defaultstate="collapsed" desc="_serialTXWait">
; Macro: _serialTXWait
; Purpose
_serialTXWait macro
banksel TXSTA ;Select bank
btfss TXSTA,TRMT ;Skip when TSR is clear and TX finished
goto _serialTXWait ; Block waiting to send
endm
;</editor-fold>
So it’s essentially XML embedded within a comment (following a semicolon). I’ve tried
{
"scope": "source.asm.gpasm",
"startMarker": "^;<editor-fold.*$",
"endMarker": "^;</editor-fold.*$"
}
as well as more specific regex patterns that would include XML attributes, etc. This doesn’t seem to have any affect on how the editor chooses where to fold code. In fact, as a second question, how would I disable the default code folding and just use the SyntaxFold package matches?
Thank you in advance,
James