From 489e9034087868a46dc9a3f6c4298090cb4395ea Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 7 Apr 2017 13:44:14 +0200 Subject: Upgrade php-mode and yaml-mode --- .emacs.d/lisp/php-mode.el | 10 ++++++++-- .emacs.d/lisp/yaml-mode.el | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index d18443d..9498d4d 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el @@ -997,9 +997,12 @@ PHP heredoc." (cons "PHP" (c-lang-const c-mode-menu php))) -;;; Faces +;; Faces + +;;;###autoload (defgroup php-faces nil "Faces used in PHP Mode" + :tag "PHP Faces" :group 'php :group 'faces) @@ -1311,6 +1314,7 @@ current `tags-file-name'." If non-nil, this shadows the value of `browse-url-browser-function' when calling `php-search-documentation' or `php-search-local-documentation'." + :group 'php :type '(choice (const :tag "default" nil) function) :link '(variable-link browse-url-browser-function)) @@ -1428,7 +1432,7 @@ a completion list." (format "%smanual/%s/" php-site-url php-manual-url)))) -;;; Font Lock +;; Font Lock (defconst php-phpdoc-type-keywords (list "string" "integer" "int" "boolean" "bool" "float" "double" "object" "mixed" "array" "resource" "$this" @@ -1640,10 +1644,12 @@ The output will appear in the buffer *PHP*." (defcustom php-class-suffix-when-insert "::" "Suffix for inserted class." + :group 'php :type 'string) (defcustom php-namespace-suffix-when-insert "\\" "Suffix for inserted namespace." + :group 'php :type 'string) (defvar php--re-namespace-pattern diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index 615de6f..90e2109 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -203,6 +203,8 @@ that key is pressed to begin a block literal." (modify-syntax-entry ?\\ "\\" syntax-table) (modify-syntax-entry ?- "_" syntax-table) (modify-syntax-entry ?_ "_" syntax-table) + (modify-syntax-entry ?& "." syntax-table) + (modify-syntax-entry ?* "." syntax-table) (modify-syntax-entry ?\( "." syntax-table) (modify-syntax-entry ?\) "." syntax-table) (modify-syntax-entry ?\{ "(}" syntax-table) -- cgit v1.3