diff options
| author | Simeon Simeonov | 2015-08-28 11:10:13 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2015-08-28 11:10:13 +0200 |
| commit | 3ec6ac6a8d888043cc12dfe6f77adcd0cfc1b086 (patch) | |
| tree | c2382110856abc0cae77f8360ea2b0d8962d07f9 /.emacs.d/lisp/php-mode.el | |
| parent | eeeaae3a34ca050c9ea30aa3950dc91db70b9b1a (diff) | |
Upgrade all, add yaml, few snippet fixes
Diffstat (limited to '.emacs.d/lisp/php-mode.el')
| -rw-r--r-- | .emacs.d/lisp/php-mode.el | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index c90fa55..ef31a17 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el | |||
| @@ -6,12 +6,12 @@ | |||
| 6 | 6 | ||
| 7 | ;;; Author: Eric James Michael Ritz | 7 | ;;; Author: Eric James Michael Ritz |
| 8 | ;;; URL: https://github.com/ejmr/php-mode | 8 | ;;; URL: https://github.com/ejmr/php-mode |
| 9 | ;;; Version: 1.15.3 | 9 | ;;; Version: 1.17.0 |
| 10 | 10 | ||
| 11 | (defconst php-mode-version-number "1.15.3" | 11 | (defconst php-mode-version-number "1.17.0" |
| 12 | "PHP Mode version number.") | 12 | "PHP Mode version number.") |
| 13 | 13 | ||
| 14 | (defconst php-mode-modified "2015-03-09" | 14 | (defconst php-mode-modified "2015-06-23" |
| 15 | "PHP Mode build date.") | 15 | "PHP Mode build date.") |
| 16 | 16 | ||
| 17 | ;;; License | 17 | ;;; License |
| @@ -732,7 +732,7 @@ Implements PHP version of `beginning-of-defun-function'." | |||
| 732 | 732 | ||
| 733 | (defun php-end-of-defun (&optional arg) | 733 | (defun php-end-of-defun (&optional arg) |
| 734 | "Move the end of the ARGth PHP function from point. | 734 | "Move the end of the ARGth PHP function from point. |
| 735 | Implements PHP befsion of `end-of-defun-function' | 735 | Implements PHP version of `end-of-defun-function' |
| 736 | 736 | ||
| 737 | See `php-beginning-of-defun'." | 737 | See `php-beginning-of-defun'." |
| 738 | (interactive "p") | 738 | (interactive "p") |
| @@ -1001,8 +1001,7 @@ PHP heredoc." | |||
| 1001 | (set (make-local-variable 'syntax-propertize-function) | 1001 | (set (make-local-variable 'syntax-propertize-function) |
| 1002 | #'php-syntax-propertize-function)) | 1002 | #'php-syntax-propertize-function)) |
| 1003 | 1003 | ||
| 1004 | (setq font-lock-maximum-decoration t | 1004 | (setq imenu-generic-expression php-imenu-generic-expression) |
| 1005 | imenu-generic-expression php-imenu-generic-expression) | ||
| 1006 | 1005 | ||
| 1007 | ;; PHP vars are case-sensitive | 1006 | ;; PHP vars are case-sensitive |
| 1008 | (setq case-fold-search t) | 1007 | (setq case-fold-search t) |
| @@ -1250,7 +1249,7 @@ under which to search for files in the local documentation directory.") | |||
| 1250 | (not (assq types-list words-cache))) | 1249 | (not (assq types-list words-cache))) |
| 1251 | ;; Generate the cache on the first run, or if the types changed. | 1250 | ;; Generate the cache on the first run, or if the types changed. |
| 1252 | ;; We read the filenames matching our types list in the local | 1251 | ;; We read the filenames matching our types list in the local |
| 1253 | ;; documention directory, and extract the 'middle' component | 1252 | ;; documentation directory, and extract the 'middle' component |
| 1254 | ;; of each. e.g. "function.array-map.html" => "array_map". | 1253 | ;; of each. e.g. "function.array-map.html" => "array_map". |
| 1255 | (let* ((types-opt (regexp-opt types-list)) | 1254 | (let* ((types-opt (regexp-opt types-list)) |
| 1256 | (pattern (concat "\\`" types-opt "\\.\\(.+\\)\\.html\\'")) | 1255 | (pattern (concat "\\`" types-opt "\\.\\(.+\\)\\.html\\'")) |
| @@ -1479,9 +1478,10 @@ The output will appear in the buffer *PHP*." | |||
| 1479 | 1478 | ||
| 1480 | (defun php-string-intepolated-variable-font-lock-find (limit) | 1479 | (defun php-string-intepolated-variable-font-lock-find (limit) |
| 1481 | (while (re-search-forward php-string-interpolated-variable-regexp limit t) | 1480 | (while (re-search-forward php-string-interpolated-variable-regexp limit t) |
| 1482 | (when (php-in-string-p) | 1481 | (let ((quoted-stuff (nth 3 (syntax-ppss)))) |
| 1483 | (put-text-property (match-beginning 0) (match-end 0) | 1482 | (when (and quoted-stuff (member quoted-stuff '(?\" ?`))) |
| 1484 | 'face 'font-lock-variable-name-face))) | 1483 | (put-text-property (match-beginning 0) (match-end 0) |
| 1484 | 'face 'font-lock-variable-name-face)))) | ||
| 1485 | nil) | 1485 | nil) |
| 1486 | 1486 | ||
| 1487 | (eval-after-load 'php-mode | 1487 | (eval-after-load 'php-mode |
| @@ -1533,3 +1533,7 @@ The output will appear in the buffer *PHP*." | |||
| 1533 | (provide 'php-mode) | 1533 | (provide 'php-mode) |
| 1534 | 1534 | ||
| 1535 | ;;; php-mode.el ends here | 1535 | ;;; php-mode.el ends here |
| 1536 | |||
| 1537 | ;; Local Variables: | ||
| 1538 | ;; firestarter: ert-run-tests-interactively | ||
| 1539 | ;; End: | ||
