Improve fontification in bat-mode
commit2d284db5c9c5ff23269e2ec277f5348abdf1cd47
authorVladimir Panteleev <vladimir@thecybershadow.net>
Fri, 10 Feb 2017 09:23:24 +0000 (10 11:23 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 10 Feb 2017 09:23:24 +0000 (10 11:23 +0200)
tree6f135fd8d70b0e0d18391915295b521aa2635a6f
parent937bf04804246c86a4b1bd55b506169f5a894e3b
Improve fontification in bat-mode

* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Match
word and symbol constituents when looking for variable names
to fontify; also, correct the syntax table and mark the equal
sign (=) character as punctuation.  Improve fontification
accuracy of iteration/positional variables.
(bat-mode): Set comment-start-skip.  (Bug#25541)

* test/lisp/progmodes/bat-mode-tests.el: New file, tests for
bat-mode.el.
lisp/progmodes/bat-mode.el
test/lisp/progmodes/bat-mode-tests.el [new file with mode: 0644]