1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 08:35:39 +01:00

Added matching for shebang headers like #!/bin/php

Should also match:
#!/usr/bin/env php
#!php
This commit is contained in:
bravoman 2022-01-03 14:27:48 +01:00 committed by GitHub
parent 1fd3bb55f0
commit 245a24b101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
## PHP Syntax Highlighting ## PHP Syntax Highlighting
syntax "PHP" "\.php[2345s~]?$|\.module$" syntax "PHP" "\.php[2345s~]?$|\.module$"
header "^#!.*php"
magic "PHP script" magic "PHP script"
comment "//" comment "//"
color white start="<\?(php|=)?" end="\?>" color white start="<\?(php|=)?" end="\?>"