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:
parent
1fd3bb55f0
commit
245a24b101
@ -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="\?>"
|
||||||
|
Loading…
Reference in New Issue
Block a user