code folding with multi-part keywords



  • Hello,

    I try to fold a code according a user defined language. The keywords used to define the beginning and the end of the folding are a sequence of two words (namely BEGIN CASE and END CASE). The middle keyword is CASE. As described in the UDL2.0 website ([http://udl20.weebly.com/folding-in-code.html]), I use the quotation mark (") to enclose the beginning and ending keywords.

    Nevertheless, the folding does not behave as expected as can be seen with the following example :

    BEGIN CASE
    CASE cond1
      IF cond11 THEN
        blah
      END
    CASE cond2
      code
    END CASE
    foo
    

    The folding ends at the “blah” line, considering wrongly that “END\nCASE” is the end keyword. How can I fix that ?

    Best



  • no idea ?? :(



  • And by the way, the debug informations:

    Notepad++ v6.9.1
    Build time : Mar 28 2016 - 19:48:40
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : ON
    Local Conf mode : OFF
    OS : Windows 7
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll SpellChecker.dll



  • Ok, I guess really no one knows how to fix/improve that ?


Log in to reply