diff --git a/ChangeLog b/ChangeLog index 2a3ec1e7424515aedd2c5aafe7402bbc61c1d084..e246f297ee6aa1c9a28758c57bb122eb351c977c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-02-22 Dennis Jenkins <dennisjenkins@Savannah> (tiny change) + * doc/syntax/c.nanorc - Also recognize c++ as extension. + 2014-02-22 Benno Schulenberg <bensberg@justemail.net> * 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 18c685e12fd1a03fff588616a4be900e96d1e4f6..e7b854158ebbd445d628c9d4933e49643732603a 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)\>"