Menu

User Defined Language - Folder Open/Close

JeffC
2008-11-11
2012-11-13
  • JeffC

    JeffC - 2008-11-11

    Hi.  I put together a basic language definition for PowerBuilder 11, but am having trouble getting the Folder Open and Folder Close settings to work.

    A subroutine in PowerBuilder might begin with the keywords "public subroutine" and end with "end subroutine".  When I add these as the folder open and close keywords, it doesn't seem to work. 

    The example in the online help shows single keywords with no spaces.  Is my problem because open and close folder is based on pairs of keywords?  Is there a way to specify "public subroutine" and "end subroutine" as single folder open keywords?

    Thanks for any help!
    Jeff

     
    • Sergey Morozov

      Sergey Morozov - 2008-11-14

      I have another problom with a spaces and folder open/close. I want to create my language like Lisp, but when I set
      Folder Open - "("
      Folder close - ")"
      It works only if before and after "(" or ")" exist space, tab or something like that.
      Example 1:

      ( defrule statement
        ......
      )

      Example 2:

      (defrule statement
        .......
      )

      Example 1 - allright, Example 2 - Notepad highlights only ")" and does not highlights "(". But in Lisp it works in both exaples.

       
    • Markus

      Markus - 2008-11-14

      I'm having the same problem with dual definitions, as in, if something is in within operator boundaries, keywords do not get added in.

       
    • Airdrik

      Airdrik - 2008-11-12

      I believe the problem is because of the spaces.  I'm not sure if there is a way to escape the spaces, or enclose the string. 
      Perhaps this should be reported as a feature request for a future version of NP++.