Community

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

    Why is UDL coloring keywords that are in words?

    Help wanted · · · – – – · · ·
    udl
    2
    2
    70
    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.
    • Leahnn Rey
      Leahnn Rey last edited by

      For giggles, me and my friend made a fictional programming language. Let’s call that APL (Advanced Programming Language).
      scr1.PNG
      See that the START and END keywords are colored. But, when we added an EXTEND keyword it’s still coloring the END. I don’t want the UDL to color keywords that are with multiple words.
      scr2.PNG
      Obviusly, it’s messing up the folding as well. How can i fix this?

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @Leahnn Rey last edited by PeterJones

        @Leahnn-Rey ,

        Use “Folding in code 2 style (separators needed)” [FiC2] instead of “Folding in code 1 style” [FiC1].

        The FiC2 requires spaces or newlines before and after the open, middle, and close keywords, whereas the FiC1 does not.

        Generally, FiC1 should be used for things like { and } as block-markers to fold on, whereas FiC2 is useful for words.

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