nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1e3f3a7511d5f21f6fc7ada2c5d5e12693ab3613
parent 8fce33afe074bb769eb3bf73d8d15582463a027b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  6 Aug 2019 18:51:58 +0200

syntaxes: recognize .ctp extension as a PHP file, and .cu as a C/C++ file

This brings color to CakePHP template files, and to CUDA files.

This addresses https://bugs.debian.org/932192.
Requested-by: Jérôme Bardot <bardot.jerome@gmail.com>

Diffstat:
Msyntax/c.nanorc | 2+-
Msyntax/php.nanorc | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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 "//"