User Defined Language

Artyom
2012-11-15
2012-11-21
  • Artyom

    Artyom - 2012-11-15

    I'm making colored syntax for one language and made orange color for numbers.
    And it's works, except if numbers with comma or brackets together:
    2, ,2 2} - these numbers won't be orange
    {2 2 - these are orange
    I will be able to fix it if I add brackets & comma to operators1, but I don't want to change their color. Also I have brackets in "Folding in code 1 style"
    also operators doesn't change color if they with symbols together:
    true - orange
    true; - not orange

     
    Last edit: Artyom 2012-11-15
  • Loreia2

    Loreia2 - 2012-11-15

    Hi Artyom,

    2, ,2 can be highlighted as a number only if you define comma as delimiter. There is no way around that.

    2} this is a know bug, it will be fixed in next revision.

    BR
    Loreia

     
    • Artyom

      Artyom - 2012-11-15

      Thank you.
      Can you tell me, how can I define as delimiter, there is 3 fields: Open, Escape & Close.
      { , } - if it's what you meant, this brake layout because I have brakets in "Folding in code 1 style". And how about semicolumn? Or may be you meant define it as Operator?
      And what "separators required" means in Operators2?

       
      Last edit: Artyom 2012-11-15
      • fb16

        fb16 - 2012-11-16

        And what "separators required" means in Operators2?

        I quote from UDL2 docs at: http://udl20.weebly.com/operators.html

        These operators (Operators2) can NOT be "glued" to other keywords. They must be separated from rest of the code by whitespace or by other "forward" search keywords.

        Conversely, Operators1 will be properly highlighted even if they are "glued" with other keywords.
        fb16

         
        Last edit: fb16 2012-11-16
    • Artyom

      Artyom - 2012-11-21

      new version, no fix :(

       
  • fb16

    fb16 - 2012-11-16

    Or may be you meant define it as Operator?

    I think he meant "Operator" instead of the actual UDL delimiter.
    fb16

     
  • Loreia2

    Loreia2 - 2012-11-20

    Can you tell me, how can I define as delimiter, there is 3 fields: Open, Escape & Close.

    It was an error, I meant Operator1. Sorry about confusion.

    BR
    Loreia

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks