Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Dot as separator

    Help wanted · · · – – – · · ·
    2
    2
    2015
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aleksei Samov
      Aleksei Samov last edited by

      I set up the syntax highlighting of numbers with a decimal point. The numbers with the dot are highlighted correctly:
      http://i.imgur.com/Q1pxrY6.jpg
      But the problem arises if I want to highlight the word I need, in this case PYCIRCLEOBJECT_RAD. Here’s the line of code:
      Data.SetReal (c4d.PYCIRCLEOBJECT_RAD, 200.0)
      I put this word in the first group:
      http://i.imgur.com/2VzS8CR.jpg
      It is not highlighted, because to the left of it there is a point, and I have already placed a comma in the operators.
      But if I place a period in the operators, then the word is highlighted, but the numbers are not displayed correctly.
      http://i.imgur.com/5kkmaI0.jpg

      How can I make it so that the word is backed up and the numbers with a period?

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Aleksei Samov last edited by

        @Aleksei-Samov

        not sure if this is a possible solution but
        what if you define a delimiter with

        open=c4d.
        close=,

        and allow nesting with keywords and numbers and additional delimiters if needed?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors