[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] linter definitions
From: |
Mark Oteiza |
Subject: |
[Nano-devel] [PATCH] linter definitions |
Date: |
Thu, 16 Apr 2015 02:46:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi,
... and here is a patch for the default linter definitions, except the c
one since that one was poor.
Cheers
Index: doc/syntax/python.nanorc
===================================================================
--- doc/syntax/python.nanorc (revision 5198)
+++ doc/syntax/python.nanorc (working copy)
@@ -2,6 +2,7 @@
syntax "python" "\.py$"
header "^#!.*python[-0-9._]*"
+linter pyflakes
# Function definitions.
icolor brightblue "def [0-9A-Z_]+"
Index: doc/syntax/ruby.nanorc
===================================================================
--- doc/syntax/ruby.nanorc (revision 5198)
+++ doc/syntax/ruby.nanorc (working copy)
@@ -2,6 +2,7 @@
syntax "ruby" "\.rb$"
header "^#!.*ruby[-0-9._]*"
+linter ruby -w -c
# Reserved words.
color yellow
"\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module)\>"
Index: doc/syntax/sh.nanorc
===================================================================
--- doc/syntax/sh.nanorc (revision 5198)
+++ doc/syntax/sh.nanorc (working copy)
@@ -2,6 +2,7 @@
syntax "sh" "\.sh$"
header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
magic "(POSIX|Bourne.*) shell script text"
+linter dash -n
icolor brightgreen "^[0-9A-Z_]+\(\)"
color green
"\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>"
Index: doc/syntax/tex.nanorc
===================================================================
--- doc/syntax/tex.nanorc (revision 5198)
+++ doc/syntax/tex.nanorc (working copy)
@@ -1,6 +1,7 @@
## Here is a short example for TeX files.
syntax "tex" "\.tex$"
+linter chktex -v0 -q -I
icolor green "\\.|\\[A-Z]*"
color magenta "[{}]"
- [Nano-devel] [PATCH] linter definitions,
Mark Oteiza <=