rhtml
rhtml copied to clipboard
Syntax table improvements
I added this to my .emacs to fix issues with the parsing of the single quote and period characters as regards cursor movement and dabbrev-expansion; perhaps this should be part of the project?
(defvar rhtml-syntax-table (let ((table (make-syntax-table sgml-tag-syntax-table))) ;; Consider the single quote to be a quote character instead of a word character (for cursor movement and dabbrev-expand) (modify-syntax-entry ?' ""'" table) ;; Consider the period to be a punctuation character instead of a symbol character (for dabbrev-expand) (modify-syntax-entry ?. "." table) table))
(add-hook 'rhtml-mode-hook (lambda () (set-syntax-table rhtml-syntax-table)))