• Login
Community
  • Login

Syntax Highlighting (BASH/shell) question/bug

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 3 Posters 3.5k 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.
  • T
    Trevor S
    last edited by Aug 10, 2023, 6:51 PM

    Hello, hopefully this is something simple I’ve missed, but I just updated N++ (Debug Info at bottom) and a bash script I’ve been working on now has an issue with syntax highlighting. The highlighting of what appears to be a $( ) block starts, but never finishes, effectively blocking the highlighting of the rest of the file. I have attached a screen snip of a few lines surrounding the start of the issue. Line 60 was added just to show that it works sometimes, and I verified that there are only spaces and tabs for whitespace on line 61. Why is the highlighting not stopping at where the red arrow points?

    Screenshot_N++_bash-highlight-issue_2023-08-10.png

    Debug Info:

    Notepad++ v8.5.4   (64-bit)
    Build time : Jun 17 2023 - 20:42:45
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line : "Z:\reposync\doReposync.sh"
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Home (64-bit)
    OS Version : 22H2
    OS Build : 19045.3324
    Current ANSI codepage : 1252
    Plugins : 
        mimeTools (2.9)
        NppConverter (4.5)
        NppExport (0.4)
    
    
    P 1 Reply Last reply Aug 10, 2023, 7:21 PM Reply Quote 1
    • P
      PeterJones @Trevor S
      last edited by Aug 10, 2023, 7:21 PM

      @Trevor-S ,

      That is known.

      It is described here and here as being the result of a change made in one of the libraries that Notepad++ uses, called “Lexilla”.

      The Lexilla team has fixed the issue on their end; the fix is in Lexilla v5.2.6.

      The newest Notepad++ release v8.5.5 includes Lexilla v5.2.6, so that version should hopefully fix your problem. (If you’re wondering why your just-updated Notepad++ v8.5.4 is older than the most recent v8.5.5, it’s because v8.5.5 is brand new and hasn’t been triggered for auto-update yet.)

      M T 2 Replies Last reply Aug 10, 2023, 7:52 PM Reply Quote 3
      • M
        Michael Vincent @PeterJones
        last edited by Aug 10, 2023, 7:52 PM

        @PeterJones said in Syntax Highlighting (BASH/shell) question/bug:

        The newest Notepad++ release v8.5.5 includes Lexilla v5.2.6, so that version should hopefully fix your problem.

        @Trevor-S :

        Is this what you expect?

        e19e2045-fa0d-47f9-bc10-2c415a850470-image.png

        Cheers.

        T 1 Reply Last reply Aug 10, 2023, 7:54 PM Reply Quote 1
        • T
          Trevor S @PeterJones
          last edited by Trevor S Aug 10, 2023, 8:00 PM Aug 10, 2023, 7:53 PM

          @PeterJones Thanks for the great info and explanation! Is there a way I can mark my question answered or equivalent?

          I manually updated to 8.5.5 and am now seeing the behavior I expect. Thanks again!

          Edit: Added more results.

          1 Reply Last reply Reply Quote 2
          • T
            Trevor S @Michael Vincent
            last edited by Aug 10, 2023, 7:54 PM

            @Michael-Vincent Yes indeed, thanks!

            M 1 Reply Last reply Aug 10, 2023, 7:59 PM Reply Quote 1
            • M
              Michael Vincent @Trevor S
              last edited by Aug 10, 2023, 7:59 PM

              @Trevor-S said in Syntax Highlighting (BASH/shell) question/bug:

              @Michael-Vincent Yes indeed, thanks!

              Great! Then if you’re comfortable, upgrade now since 8.5.5 is available; otherwise, wait for the autoupdate usually about 7-10 days after the release - if all goes well.

              No need to mark the question answered, it just stays like this for posterity.

              Cheers.

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