From fc7220cbef7d9a02b94839c47b72a03f67fb9821 Mon Sep 17 00:00:00 2001 From: bravoman Date: Mon, 3 Jan 2022 14:27:48 +0100 Subject: [PATCH] fix(php): Added matching for shebang headers like #!/bin/php Should also match: #!/usr/bin/env php #!php Originally proposed in https://github.com/scopatz/nanorc/pull/386 --- php.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/php.nanorc b/php.nanorc index 9be89424..a7ae7ab8 100644 --- a/php.nanorc +++ b/php.nanorc @@ -1,5 +1,6 @@ ## PHP Syntax Highlighting syntax "PHP" "\.php[2345s~]?$|\.module$" +header "^#!.*php" magic "PHP script" comment "//" color white start="<\?(php|=)?" end="\?>"