diff --git a/syntax/c.nanorc b/syntax/c.nanorc index bc1361e0..bb149bc1 100644 --- a/syntax/c.nanorc +++ b/syntax/c.nanorc @@ -1,6 +1,6 @@ ## Here is an example for C/C++. -syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|H|hh|ii?)$" +syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|cu|H|hh|ii?)$" magic "^(C|C\+\+) (source|program)" comment "//" diff --git a/syntax/php.nanorc b/syntax/php.nanorc index dead9d30..1a61f066 100644 --- a/syntax/php.nanorc +++ b/syntax/php.nanorc @@ -1,6 +1,6 @@ ## Here is an example for PHP. -syntax php "\.ph(p[23457s~]?|tml)$" +syntax php "\.(php[23457s~]?|phtml|ctp)$" magic "PHP script" comment "//"