Menu

Feature requst: postfix mode

Amy
2008-09-10
2012-11-13
  • Amy

    Amy - 2008-09-10

    In the user defined language there is an option, prefix mode, that allows ALL WORDS that have a prefix of a key word to be considered a key word (and receive the syntax highlighting)

    Ex.  if "add" is a key word and prefix mode is enabled, then "addi" is also considered a key word. 

    I was wondering if a similar mode could be done for postfix. 

    I want to make labels, which have the form:
    "Label:", be recognized as key words (so that they all have the same syntax).

    Also, not sure if possible, but can you make prefix / post-fix be on a keyword basis.

    Ex. if both "add" and "sub" are keywords, allow "add" to be in prefix/post-fix mode (or both) and keep "sub" as regular (neither prefix or post-fix).  Like I said, this might not be feasible, but if you could implement the first request, that would be awesome.

    Thanks for any help you can provide, and message me with any questions, if you have any.

     
    • Valerij Primachenko

      Greate idea

      Have anone an idea how can i define a class function as a keyword, for example: (winamp maki script)

      globalGroup.findObject("")

      where findObjact is a keyword?

       
    • John Bowman

      John Bowman - 2008-09-11

      This would be a very nice feature for me too.  I use the User Defined Languages ALL the time and I could greatly benefit from this with my Primary (Business Rules!) programming language and several other small user defined languages I use regularly.

      -john

       
  • Raul Pinto

    Raul Pinto - 2009-12-13

    I'm voting for this postfix mode! It becomes very handy in Java/Groovy where you could add an "Exception" keyword and like "ClassNotFoundException" will be colored, too!