Преглед на файлове

emacs.el: Update highlight regexp

pull/15/head
10sr преди 8 години
родител
ревизия
55176a6918
променени са 1 файла, в които са добавени 19 реда и са изтрити 17 реда
  1. +19
    -17
      emacs.el

+ 19
- 17
emacs.el Целия файл

@@ -1897,27 +1897,29 @@ This mode is a simplified version of `adoc-mode'."

(define-derived-mode editorconfig-conf-mode conf-mode "EditorConfig"
"Major mode for editing .editorconfig files."
;; TODO: highlight for : separated assgnment
(setq conf-assignment-regexp ".+?\\([ \t]*[=:][ \t]*\\)")
(conf-mode-initialize
"#"
`(
("^#.*\\|^;.*\\| #.*\\| ;.*" 0 font-lock-comment-face)
("^[ \t]*\\(root\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(indent_style\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(indent_size\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(tab_width\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(end_of_line\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(charset\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(trim_trailing_whitespace\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(insert_final_newline\\)[ \t]*=" 1 font-lock-builtin-face)
("^[ \t]*\\(max_line_length\\)[ \t]*=" 1 font-lock-builtin-face)
("=[ \t]*\\(true\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("=[ \t]*\\(false\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("=[ \t]*\\(lf\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("=[ \t]*\\(cr\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("=[ \t]*\\(crlf\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("=[ \t]*\\(space\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("=[ \t]*\\(tab\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("^[ \t]*\\(root\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(indent_style\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(indent_size\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(tab_width\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(end_of_line\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(charset\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(trim_trailing_whitespace\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(insert_final_newline\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("^[ \t]*\\(max_line_length\\)[ \t]*[=:]" 1 font-lock-builtin-face)
("[=:][ \t]*\\(true\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("[=:][ \t]*\\(false\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("[=:][ \t]*\\(lf\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("[=:][ \t]*\\(cr\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("[=:][ \t]*\\(crlf\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("[=:][ \t]*\\(space\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)
("[=:][ \t]*\\(tab\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)

("^[ \t]*\\[\\(.+?\\)\\]" 1 'font-lock-type-face)
,@conf-font-lock-keywords)))


Зареждане…
Отказ
Запис