AHDL UDL - numbers and delimiters with "
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login