diff --git a/syntax/perl.nanorc b/syntax/perl.nanorc index 81fec835..932540cd 100644 --- a/syntax/perl.nanorc +++ b/syntax/perl.nanorc @@ -1,7 +1,7 @@ ## Here is an example for Perl. syntax perl "\.p[lm]$" -header "^#!.*perl[-0-9._]*" +header "^#!.*perl" magic "Perl script" comment "#" diff --git a/syntax/python.nanorc b/syntax/python.nanorc index 66dc8c84..671cda80 100644 --- a/syntax/python.nanorc +++ b/syntax/python.nanorc @@ -1,7 +1,7 @@ ## Here is an example for Python. syntax python "\.py$" -header "^#!.*python[-0-9._]*" +header "^#!.*python" magic "Python script" linter pyflakes comment "#" diff --git a/syntax/ruby.nanorc b/syntax/ruby.nanorc index ab12cc05..2fe19449 100644 --- a/syntax/ruby.nanorc +++ b/syntax/ruby.nanorc @@ -1,7 +1,7 @@ ## Here is an example for Ruby. syntax ruby "\.rb$" -header "^#!.*ruby[-0-9._]*" +header "^#!.*ruby" magic "Ruby script" linter ruby -w -c comment "#" diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc index b590674a..6c86683f 100644 --- a/syntax/sh.nanorc +++ b/syntax/sh.nanorc @@ -1,7 +1,7 @@ ## Here is an example for Bourne shell scripts. syntax sh "(\.sh|\.(a|ba|c|da|k|mk|pdk|tc|z)(sh|shrc|sh_profile)|/(etc/|\.)profile)$" -header "^#!.*(a|ba|c|da|k|mk|pdk|tc|z)?(sh[-0-9_]*|openrc-run|runscript)" +header "^#!.*/(((a|ba|c|da|k|mk|pdk|tc|z)?sh)|openrc-run|runscript)" magic "(POSIX|Bourne-Again) shell script.*text" linter dash -n comment "#"