Menu

user language issues

Meter
2008-02-14
2012-11-14
  • Meter

    Meter - 2008-02-14

    I apologize if this is the wrong group to submit this question. I did a search in the whole forum and didn't come up with answer, so...

    I am writing a user language file for Scilab. It works well with one exception. Comments in Scilab are indicated with with "//". However, there is also a "/" operator. When I include "/" in the list of operators, NPP no longer recognizes "//" as a comment prefix.

    Is this a bug, the limitation of the system, or am I doing something wrong?

     
    • Nobody/Anonymous

      It's a limitation of the User Defined Language system. If you use a self created Lexer, it is possible to use / as an operator. You can check this in Pascal language, for example.

       
    • Nobody/Anonymous

      I'm also having the same problem with user defined languages in which the comment indicator is also an operator. If I understand, we can solve this using a self crated Lexer. Is there a place where we can find more info on how to do that?

      Thanks

       
      • Nobody/Anonymous

        "New External Lexer Support Template/Tutorial":
        http://sourceforge.net/forum/message.php?msg_id=4706653

         
        • Nobody/Anonymous

          Thanks again for your help.