From 245a24b10143ba6afce96e72e4460a5f9f9bf535 Mon Sep 17 00:00:00 2001 From: bravoman Date: Mon, 3 Jan 2022 14:27:48 +0100 Subject: [PATCH] Added matching for shebang headers like #!/bin/php Should also match: #!/usr/bin/env php #!php --- php.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/php.nanorc b/php.nanorc index 693695f..d3ba959 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="\?>"