Parenthesis around opt regexp should be escaped here

- Former regexp matches any string that contains `.(plantuml` or `pum`
  or `plantuml` or `plu` (e.g. `plantuml-mode.el` itself and any file
  that contain `pum` in its name)
This commit is contained in:
Novak Boškov 2016-11-08 00:34:10 +01:00
parent 2b7d796886
commit 68df979a9f
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ Uses prefix (as PREFIX) to choose where to display it:
(message "Making completion list...%s" "done")))))
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.(plantuml\\|pum\\|plantuml\\|plu)\\'" . plantuml-mode))
(add-to-list 'auto-mode-alist '("\\.\\(plantuml\\|pum\\|plu\\)\\'" . plantuml-mode))
;;;###autoload
(define-derived-mode plantuml-mode prog-mode "plantuml"