Community
    • Login

    AHDL UDL - numbers and delimiters with "

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    udl
    1 Posts 1 Posters 2.4k Views
    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.
    • AakaFosforA
      AakaFosfor
      last edited by

      Hi,
      I’m trying to mak UDL for AHDL (Altera HDL) and I have troubles with strings (“some string”) and hexa-numbers (H"ABC") as both of them use quotation mark. Here is MWE:

      INCLUDE "inputs.inc";
      CONSTANT VERSION_DATA = H"A9";
      CONSTANT SOME_DATA = H"B8";
      

      I want to highlight text (from opening " char to closing " char) by one color and numbers (decimal 123 same as hexa H"123ABC") by another color. So far I’ve set numbers by:

      • Prefix 1:
      • Extras 1: a b c d e f x
      • Suffix 1: "
      • Range: …
      • Prefix 2: B" O" Q" X" H"
      • Extras 2: a b c d e f x
      • Suffix 2: "

      And numbers are working OK. When I now add these settings for delimiter:

      • Open: "
      • Escape:
      • Close: "

      it correctly highlight the text, but it also impact numbers - from the closing " char of the first number source is colored by string color (delimiter color) up to the opening " char of the second number (on the last line of MWE).

      It seems to me, that it suppose a text (aka delimiter) is nested in the number even though I didn’t select this nesting (in number styler I cannot select any nesting). Can anybody please help me how to set this?

      Thanks!
      Fosfor

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors