Skip to content

Commit

Permalink
fix(php): Added matching for shebang headers like #!/bin/php
Browse files Browse the repository at this point in the history
Should also match:
#!/usr/bin/env php
#!php

Originally proposed in scopatz#386
  • Loading branch information
bravoman authored and galenguyer committed Nov 2, 2022
1 parent 961f871 commit fc7220c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions php.nanorc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## PHP Syntax Highlighting
syntax "PHP" "\.php[2345s~]?$|\.module$"
header "^#!.*php"
magic "PHP script"
comment "//"
color white start="<\?(php|=)?" end="\?>"
Expand Down

0 comments on commit fc7220c

Please sign in to comment.