From 2698a2ba687cb5f5bc49aa6011b6dee9c35a5f39 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 6 Oct 2019 11:29:48 +0200 Subject: [PATCH] syntax: c: recognize some C++ header files by their Emacs modeline For extensionless files, recognize C/C++ ones from the mode name between the -*- marks on the first line. This addresses https://savannah.gnu.org/patch/?9719. Inspired-by: Devin Hussey --- syntax/c.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/syntax/c.nanorc b/syntax/c.nanorc index 35374803..c8c7259b 100644 --- a/syntax/c.nanorc +++ b/syntax/c.nanorc @@ -1,6 +1,7 @@ ## Here is an example for C/C++. syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|cu|H|hh|ii?)$" +header "-\*-.*\