# HG changeset patch # User IBBoard # Date 1522686620 -3600 # Node ID 5f2c5800fa8a604c1e7d9a71951c689868ec91d0 # Parent 9f3d2d765a0f65974d12d93ddef2185722ca0336 Fix small differences with older Nano on the server diff -r 9f3d2d765a0f -r 5f2c5800fa8a nanorc --- a/nanorc Mon Apr 02 17:29:52 2018 +0100 +++ b/nanorc Mon Apr 02 17:30:20 2018 +0100 @@ -1,6 +1,6 @@ set nowrap set nonewlines -set constantshow +set const set autoindent ## Nanorc files diff -r 9f3d2d765a0f -r 5f2c5800fa8a nanorc.d/nanorc.nanorc --- a/nanorc.d/nanorc.nanorc Mon Apr 02 17:29:52 2018 +0100 +++ b/nanorc.d/nanorc.nanorc Mon Apr 02 17:30:20 2018 +0100 @@ -1,6 +1,6 @@ ## Here is an example for nanorc files. -syntax nanorc "\.?nanorc$" +syntax "nanorc" "\.?nanorc$" comment "#" # Possible errors and parameters diff -r 9f3d2d765a0f -r 5f2c5800fa8a nanorc.d/patch.nanorc --- a/nanorc.d/patch.nanorc Mon Apr 02 17:29:52 2018 +0100 +++ b/nanorc.d/patch.nanorc Mon Apr 02 17:30:20 2018 +0100 @@ -1,6 +1,6 @@ ## Here is an example for patch files. -syntax patch "\.(patch|diff|debdiff)$" +syntax "patch" "\.(patch|diff|debdiff)$" magic "diff output" # There is no official support for comments in patch files. comment "" diff -r 9f3d2d765a0f -r 5f2c5800fa8a nanorc.d/php.nanorc --- a/nanorc.d/php.nanorc Mon Apr 02 17:29:52 2018 +0100 +++ b/nanorc.d/php.nanorc Mon Apr 02 17:30:20 2018 +0100 @@ -1,6 +1,6 @@ ## Here is an example for PHP. -syntax php "\.(php[23457s~]?|html?)$" +syntax "php" "\.(php[23457s~]?|html?)$" magic "PHP script" comment "//" diff -r 9f3d2d765a0f -r 5f2c5800fa8a nanorc.d/python.nanorc --- a/nanorc.d/python.nanorc Mon Apr 02 17:29:52 2018 +0100 +++ b/nanorc.d/python.nanorc Mon Apr 02 17:30:20 2018 +0100 @@ -1,6 +1,6 @@ ## Here is an example for Python. -syntax python "\.py$" +syntax "python" "\.py$" header "^#!.*python[-0-9._]*" magic "Python script" linter pyflakes diff -r 9f3d2d765a0f -r 5f2c5800fa8a nanorc.d/sh.nanorc --- a/nanorc.d/sh.nanorc Mon Apr 02 17:29:52 2018 +0100 +++ b/nanorc.d/sh.nanorc Mon Apr 02 17:30:20 2018 +0100 @@ -1,6 +1,6 @@ ## Here is an example for Bourne shell scripts. -syntax sh "\.sh$" +syntax "sh" "\.sh$" header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)" magic "(POSIX|Bourne-Again) shell script.*text" linter dash -n