From 61947087b2e582ef3daa35ae4c85c767777dd596 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 693695f9..d3ba9595 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="\?>"