bugGNU nano - Bugs: bug #65591, starting a new Makefile does not...

 
 

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

bug #65591: starting a new Makefile does not activate the makefile syntax

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 14 Apr 2024 09:59:28 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Sun 14 Apr 2024 02:13:36 PM UTC, comment #1: 

Fixed in git, commit c02aec55, by including "^" (BOL) in the regex as an alternative to "/" (slash).

Benno Schulenberg <bens>
Group administrator
Sun 14 Apr 2024 09:59:28 AM UTC, original submission:  

To reproduce, run:

mkdir what  &&  cd what  &&  nano --rc=../syntax/makefile.nanorc  Makefile

Then type these four characters: all:

Notice that "all:" does not get colored blue, as a target should.

Type: ^S^X and run the same nano command again.  Now the "all:" is colored blue.

The problem is that when opening a file that does not exist yet, it does not have any path yet but consists of just the name.  Therefore the «full name» does not contain a slash, which is what the regex in the makefile syntax is checking for.

Benno Schulenberg <bens>
Group administrator

 

(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 (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-14 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code