patchGNU nano - Patches: patch #8124, Accept 'c++' as extension for C...

 
 

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

patch #8124: Accept 'c++' as extension for C syntax highlighting

Submitted by:  Dennis Jenkins <dennisjenkins>
Submitted on:  Mon 15 Jul 2013 03:21:13 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed
Release: None

Sat 22 Feb 2014 04:58:27 PM UTC, comment #1:

Thanks. It's in SVN now.

Benno Schulenberg <bens>
Project MemberIn charge of this item.
Mon 15 Jul 2013 03:21:13 PM UTC, original submission:

Discovered while working on 'hylafaxplus'. They use ".c++" as their C++ file extension. Per the man page for "g++", ".c++" is a recognized extension for C++ source code.

djenkins@dwj-hfax-dev ~/code/nano-trunk $ svn diff
Index: nano/doc/syntax/c.nanorc
===================================================================
--- nano/doc/syntax/c.nanorc (revision 4580)
+++ nano/doc/syntax/c.nanorc (working copy)
@@ -1,6 +1,6 @@
## Here is an example for C/C++.
##
-syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
+syntax "c" "\.(c(c|pp|xx|\+\+)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
magic "ASCII C(\+\+)? program text"
color brightred "\<[A-Z_][0-9A-Z_]+\>"
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|auto|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"

Dennis Jenkins <dennisjenkins>

 

No files currently attached

 

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 dennisjenkins (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Feb 2014 04:58:27 PM UTCbensStatusNone=>Done
      Assigned toNone=>bens
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup