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

Submitted by:  Lars <penma>
Submitted on:  Sat 27 Jun 2009 02:53:20 PM UTC  
Priority: 5 - NormalStatus: Done
Privacy: PublicAssigned to: Chris Allegretta <astyanax>
Open/Closed: ClosedRelease: 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>
Project 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>


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 08 Apr 2014 02:08:09 PM UTCbensStatusNone=>Done
      Assigned toNone=>astyanax
    Sat 27 Jun 2009 02:53:20 PM UTCpenmaAttached File-=>Added nano-syntax-1.diff, #18334

    Back to the top

    Powered by Savane 3.1-cleanup1