rhtml icon indicating copy to clipboard operation
rhtml copied to clipboard

Syntax table improvements

Open cohenaarone opened this issue 12 years ago • 0 comments

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)))

cohenaarone avatar Feb 18 '13 03:02 cohenaarone