From 3f82d729027e82de4a8b2c2335c9e600153a9e72 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 16 Feb 2016 16:55:55 +0900 Subject: [PATCH] emacs.el: Update regexp for editorconfig font-lock --- emacs.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/emacs.el b/emacs.el index 3dd5d66..8bd9cfa 100644 --- a/emacs.el +++ b/emacs.el @@ -1901,15 +1901,15 @@ This mode is a simplified version of `adoc-mode'." "#" `( ("^#.*\\|^;.*\\| #.*\\| ;.*" 0 font-lock-comment-face) - ("\\bindent_size\\b" 0 font-lock-keyword-face) - ("\\bcharset\\b" 0 font-lock-keyword-face) - ("\\bindent_style\\b" 0 font-lock-keyword-face) - ("\\btab_width\\b" 0 font-lock-keyword-face) - ("\\btrim_trailing_whitespace\\b" 0 font-lock-keyword-face) - ("\\binsert_final_newline\\b" 0 font-lock-keyword-face) - ("\\bmax_line_length\\b" 0 font-lock-keyword-face) - ("\\bend_of_line\\b" 0 font-lock-keyword-face) - ("\\broot\\b" 0 font-lock-keyword-face) + ("\\b\\(indent_size\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(charset\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(indent_style\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(tab_width\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(trim_trailing_whitespace\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(insert_final_newline\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(max_line_length\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(end_of_line\\)[ \t]*=" 1 font-lock-keyword-face) + ("\\b\\(root\\)[ \t]*=" 1 font-lock-keyword-face) ,@conf-font-lock-keywords))) (add-to-list 'auto-mode-alist