patchGNU nano - Patches: patch #6855, syntax hilighting hack to...

 
 

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

patch #6855: syntax hilighting hack to highlight based on hashbangs

Submitter:  Lars <penma>
Submitted:  Sat 27 Jun 2009 02:53:20 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Privacy:  Public Assigned to:  astyanax
Open/Closed:  Closed Release:  None

Tue 08 Apr 2014 02:08:09 PM UTC, comment #1: 

This was implemented in September 2008 by Chris, through the 'header' keyword.  See bug #24197.

Benno Schulenberg <bens>
Group administrator
Sat 27 Jun 2009 02:53:20 PM UTC, original submission:  

This patch allows nano to find out which hilight to use not only based on extension, but also on the contents of the first line. The way it is implemented is not the best at the moment, it uses the same expression for the first line. It priorizes matches on extension, however. It takes away the need to name Perl scripts .pl to get syntax hilighting (for example)

Lars <penma>

 

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

Attached Files
file #18334:  nano-syntax-1.diff added by penma (618B - text/x-patch)

 

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 penma (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-08 bens StatusNone Done
        Assigned toNone astyanax
        Open/ClosedOpen Closed
    2009-06-27 penma Attached File- Added nano-syntax-1.diff, #18334

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code