* lisp/progmodes/ps-mode.el: Use SMIE. Move string and comment recognition
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Apr 2014 04:40:41 +0000 (00:40 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Apr 2014 04:40:41 +0000 (00:40 -0400)
commit9b7b020ddefd619ffecc5010ae335baa5bae0856
tree6e2728b59514044815f9e883cd5cb6c3a3e1d7e2
parent6ab1b16c54b63d1c4217b6fcea026400029fcc72
* lisp/progmodes/ps-mode.el: Use SMIE.  Move string and comment recognition
to syntax-propertize.
(ps-mode-auto-indent): Mark as obsolete.
(ps-mode-font-lock-keywords-1): Remove string-or-comment handling.
(ps-mode-font-lock-keywords-3): Use symbol regexp operators instead of
word regexp operators.
(ps-mode-map): Move initialization into declaration.  Remove binding
for TAB, RET, >, ], and }.
(ps-mode-syntax-table): Move initialization into declaration.
Don't give word syntax to non-word chars.
(ps-run-mode-map): Move initialization into declaration.
(ps-mode-menu-main): Remove auto-indent entry.
(ps-mode-smie-rules): New function.
(ps-mode): Setup smie, syntax-propertize, and electric-indent-mode.
(ps-mode-looking-at-nested, ps-mode-match-string-or-comment): Remove.
(ps-mode--string-syntax-table): New const.
(ps-mode--syntax-propertize-special, ps-mode-syntax-propertize):
New functions.
(ps-mode-newline, ps-mode-tabkey, ps-mode-r-brace, ps-mode-r-angle)
(ps-mode-r-gt, ps-mode-r-balance): Remove functions.
lisp/ChangeLog
lisp/progmodes/ps-mode.el
lisp/simple.el