branch: scratch/editorconfig-cc commit d78fd7acd5dffd342cf7ea7baebff50573155642 Author: Hong Xu <h...@topbug.net> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Create a syntax table for editorconfig-conf-mode. Fix #83. --- editorconfig.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editorconfig.el b/editorconfig.el index 17611b0abf..5618ea6bb9 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -313,6 +313,13 @@ This function do the job only when the major mode is not listed in editorconfig-exclude-modes))) (editorconfig-apply))) +(defvar editorconfig-conf-mode-syntax-table + (let ((table (make-syntax-table conf-unix-mode-syntax-table))) + (modify-syntax-entry ?\; "<" table) + table) + "Syntax table in use in `editorconfig-conf-mode' buffers.") + + ;;;###autoload (define-minor-mode editorconfig-mode "Toggle EditorConfig feature.