Menu

folding problem

o_z
2005-11-09
2012-11-13
  • o_z

    o_z - 2005-11-09

    Hi,

    I just started using notepad++, and have set up a new language (maxscript) using the user define dialog, and it seems to work fine for the most part. the problems I have are that once I enable the folder option (in maxscript code blocks are defined with "(" and ")" ) the folders doesn't always work correctly, and the brace matching stops functioning correctly when the braces encompass multiple lines.

    is there any simple fix for that or is a new lexer need to fix this?

    thanks,
    o

     
    • Nobody/Anonymous

      In User Define Dialog >> Operators, remove "(" & ")".

       
      • Nobody/Anonymous

        i'm having a similar problem with a language similar to C, even after removing operators.

        it is supposed to fold on { and }, but the lexer likes to end the folding at the very next }

        example:

        class Vehicles
        {
        items=6;
        class Item0
        {
            position[]={19220.531250,4.950000,13592.378906};
            special="NONE";
        };
        class Item1
        {
            ...

        will fold to

        class Vehicles
        {
        items=6;
        class Item0
        {_______________________
            special="NONE";
        };
        class Item1
        {
            ...

        can anyone help out with this?

         
    • Nobody/Anonymous

      similar issue, but different language: Skill, it's a lisp based language with lot of C-style influence and looks like this:

      procedure( test_function( )

          ;;comment in a line
         
          ; function call in C-style
          cnGetComps( parameter )
         
          ; function call in Lisp-style
          ( cnGetComps parameter1  parameter2 parameter3 )

          /*
          multiline comment
          */

          foreach( item item_list
              if( item == "TEST" then
                  value = t
              else
                  value = nil
              );end if
          );end foreach

          unless( value
              ; do something
          )
      )

      I don't get the folding done, as the () are operators for the function parameters and folding keys for if,foreach,unles,...

      Any idea ?

      Thanks
      Tobias