]> git.wh0rd.org Git - nano.git/commitdiff
Adding a linter definition to four of the syntax files.
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 18 Apr 2015 11:35:23 +0000 (11:35 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Sat, 18 Apr 2015 11:35:23 +0000 (11:35 +0000)
Patch by Mark Oteiza.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5203 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/python.nanorc
doc/syntax/ruby.nanorc
doc/syntax/sh.nanorc
doc/syntax/tex.nanorc

index f76b2ce3a10cd969fe6d3f4d2a151ea4d2f01e99..0f8e3aeee210c9606bd9a3c59ff341040927cfa6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2015-04-18  Mark Oteiza  <mvoteiza@udel.edu>
+       * doc/syntax/{python,ruby,sh,tex}.nanorc: Add a linter definition.
+
 2015-04-17  Benno Schulenberg  <bensberg@justemail.net>
        * src/text.c (do_alt_speller, do_linter, do_formatter): Distinguish
        a failure to launch the linter from receiving zero parsable lines;
index eb2b36e9840aaedad47f53ce2ad1e1af56ee3b35..d86668c9f31f9d2d86adb11dc480847d911764f3 100644 (file)
@@ -2,6 +2,7 @@
 
 syntax "python" "\.py$"
 header "^#!.*python[-0-9._]*"
+linter pyflakes
 
 # Function definitions.
 icolor brightblue "def [0-9A-Z_]+"
index 298425f0cf24e2cd37617d9c363af7f4fea757c6..a70722160a3b7f300f2bb65ff7cbf375d646fb53 100644 (file)
@@ -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 074e03ac4bfce060bfffa153696a20fa16adf107..11eb9a458035d30a19f4eee557e260ea35b59f97 100644 (file)
@@ -3,6 +3,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 7fa417c4d5ae1f0b54a00bd4afda7e7de0fa0618..a89cff90bb7e0314bf8919cee9a0008d0960d53f 100644 (file)
@@ -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 "[{}]"