bugGNU nano - Bugs: bug #66437, shell syntax miscolors string with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #66437: shell syntax miscolors string with interposed escaped single quote

Submitter:  THN <thn>
Submitted:  Wed 13 Nov 2024 03:31:40 PM UTC
   
 
Severity:  2 - Minor Status:  Cantfix
Assigned to:  None Open/Closed:  Open

Wed 13 Nov 2024 06:13:00 PM UTC, comment #2: 

I don't know regex, you'll have to find someone, sorry.
THN

THN <thn>
Wed 13 Nov 2024 04:24:22 PM UTC, comment #1: 

If you can construct a regex that will color your example correctly, then please post it here.  I do not know how.

(Also, of course, the shell allows both types of quotes -- single and double -- so that it is easy to avoid having to escape any quote.  Also, a quote is not a hyphen.)

Benno Schulenberg <bens>
Group administrator
Wed 13 Nov 2024 03:31:40 PM UTC, original submission:  

In a file with associated file type "text" (eg. bash script), the syntax highlighting of a string containing a hyphen (single quote) is incorrect.

Example: in a script file containing the syntactically correct line

echo 'It'\''s a boy'

the (in my case yellow) highlighting of the echo string stops before the letter "s" while it should continue to the EOL.

Regards

thn

THN <thn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by thn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-13 bens Severity3 - Normal 2 - Minor
        StatusNone Cantfix
        SummarySyntax highlighting: string with embedded hyphen not correctly detected shell syntax miscolors string with interposed escaped single quote

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code