From cf79e5252636519b0bb9093f406d79132de4fc9a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 22 Feb 2014 16:57:23 +0000 Subject: [PATCH] Also recognzie 'c++' as an extension for C syntax highlighting. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4592 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ doc/syntax/c.nanorc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a3ec1e7..e246f297 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-02-22 Dennis Jenkins (tiny change) + * doc/syntax/c.nanorc - Also recognize c++ as extension. + 2014-02-22 Benno Schulenberg * src/nano.c (move_to_filestruct) - Update the data in 'mark_begin' when mark and cursor are on the same line. This avoids a segfault diff --git a/doc/syntax/c.nanorc b/doc/syntax/c.nanorc index 18c685e1..e7b85415 100644 --- a/doc/syntax/c.nanorc +++ b/doc/syntax/c.nanorc @@ -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)\>" -- 2.39.5