Browse Source

emacs.el: Update regexp for font-lock

pull/15/head
10sr 8 years ago
parent
commit
7aa543f158
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      emacs.el

+ 4
- 1
emacs.el View File

@@ -1899,6 +1899,7 @@ This mode is a simplified version of `adoc-mode'."
"Major mode for editing .editorconfig files." "Major mode for editing .editorconfig files."
;; TODO: highlight for : separated assgnment ;; TODO: highlight for : separated assgnment
(setq conf-assignment-regexp ".+?\\([ \t]*[=:][ \t]*\\)") (setq conf-assignment-regexp ".+?\\([ \t]*[=:][ \t]*\\)")
(set-variable 'indent-line-function 'indent-relative)
(conf-mode-initialize (conf-mode-initialize
"#" "#"
`( `(
@@ -1922,7 +1923,9 @@ This mode is a simplified version of `adoc-mode'."
("[=:][ \t]*\\(tab\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face) ("[=:][ \t]*\\(tab\\)\\([ \t]\\|$\\)" 1 font-lock-constant-face)


("^[ \t]*\\[\\(.+?\\)\\]" 1 'font-lock-type-face) ("^[ \t]*\\[\\(.+?\\)\\]" 1 'font-lock-type-face)
,@conf-font-lock-keywords)))
("^[ \t]*\\(.+?\\)[ \t]*[=:]" 1 'font-lock-variable-name-face)
;;("^[ \t]*\\([^=:\n]+?\\)[ \t\n]*{[^{}]*?$" 1 'font-lock-type-face prepend)
)))


(add-to-list 'auto-mode-alist (add-to-list 'auto-mode-alist
'("/\\.editorconfig\\'" . editorconfig-conf-mode)) '("/\\.editorconfig\\'" . editorconfig-conf-mode))


Loading…
Cancel
Save