Community
    • Login

    VHDL quotation (") character matching - syntax highlighting malfunction

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 816 Views 2 Watching
    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.
    • tech_newbT Offline
      tech_newb
      last edited by

      Considering the following example function:

      function eg_func(Value: String) return Boolean is
         variable V: String(1 to Value'LENGTH) := Value;
         variable Result: Boolean;
        
         for i in 1 to Value'LENGTH loop
            if V(i) = '"' then
               Result <= TRUE;
               exit;
            else 
               Result <= FALSE;
            end if;
         end loop;
         return Result;
      

      When this code is used in Notepad++, everything following

      if V(i) = '"'...
      

      no longer has language keyword/syntax highlighting, all text being default black font.

      I believe this maybe due to the tool viewing (") as an open quotation despite it being used for character matching as a condition comparator within single quotes.

      Is this in fact a bug or can someone see something I am doing incorrectly? Maybe there is a construct I am unaware of for searching quotation characters within strings?

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        @tech_newb: Welcome to the Notepad++ Community.

        Is this in fact a bug or can someone see something I am doing incorrectly

        I cannot replicate your described behavior:

        The highlighting continues beyond that row for me in v7.7 64-bit.

        There might be something with your particular version.

        If you go to ? > Debug Info, you can click on the “Copy debug info into clipboard” shown in my image, and directly paste the debug-info text into your reply. Or you can do a screenshot, upload to a service like imgur, and use syntax ![](https://i.imgur.com/01hOo1m.gif) to embed the image (making sure to have the direct img URL, not the imgur “display page” which includes html to display the image with all their formatting and internal/external links).

        1 Reply Last reply Reply Quote 2

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors