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

 
 

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

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

Submitted by:  Lars <penma>
Submitted on:  Sat Jun 27 14:53:20 2009  
 
Priority: 5 - NormalStatus: Done
Privacy: PublicAssigned to: Chris Allegretta <astyanax>
Open/Closed: ClosedRelease: None

Tue Apr 8 14:08:09 2014, comment #1:

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

Benno Schulenberg <bens>
Project Administrator
Sat Jun 27 14:53:20 2009, 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>

 

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
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by penma (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Apr 8 14:08:09 2014bensStatusNone=>Done
      Assigned toNone=>astyanax
      Open/ClosedOpen=>Closed
    Sat Jun 27 14:53:20 2009penmaAttached File-=>Added nano-syntax-1.diff, #18334

    Back to the top


    Powered by Savane 3.1-cleanup