diff options
| author | Simeon Simeonov | 2015-10-26 12:08:33 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2015-10-26 12:08:33 +0100 |
| commit | eb2f8b1a6dccd17e31bc486439bf72ee3e81e050 (patch) | |
| tree | 178af92fd349ed5ff78569098a2d08049a028462 /.emacs.d/lisp/php-mode.el | |
| parent | f78074a490a25e6cdce112e4fda4ba6c28ad1751 (diff) | |
Upgrade php-mode and yasnippet. Introduce which-function support in .emacs
Diffstat (limited to '.emacs.d/lisp/php-mode.el')
| -rw-r--r-- | .emacs.d/lisp/php-mode.el | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index ef31a17..6979e8c 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | (defconst php-mode-version-number "1.17.0" | 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-06-23" | 14 | (defconst php-mode-modified "2015-10-02" |
| 15 | "PHP Mode build date.") | 15 | "PHP Mode build date.") |
| 16 | 16 | ||
| 17 | ;;; License | 17 | ;;; License |
| @@ -517,7 +517,8 @@ PHP does not have an \"enum\"-like keyword." | |||
| 517 | "null")) | 517 | "null")) |
| 518 | 518 | ||
| 519 | (c-lang-defconst c-lambda-kwds | 519 | (c-lang-defconst c-lambda-kwds |
| 520 | php '("function")) | 520 | php '("function" |
| 521 | "use")) | ||
| 521 | 522 | ||
| 522 | (c-lang-defconst c-other-kwds | 523 | (c-lang-defconst c-other-kwds |
| 523 | "Keywords not accounted for by any other `*-kwds' language constant." | 524 | "Keywords not accounted for by any other `*-kwds' language constant." |
| @@ -550,6 +551,7 @@ PHP does not have an \"enum\"-like keyword." | |||
| 550 | "var" | 551 | "var" |
| 551 | "xor" | 552 | "xor" |
| 552 | "yield" | 553 | "yield" |
| 554 | "yield from" | ||
| 553 | 555 | ||
| 554 | ;; Below keywords are technically not reserved keywords, but | 556 | ;; Below keywords are technically not reserved keywords, but |
| 555 | ;; threated no differently by php-mode from actual reserved | 557 | ;; threated no differently by php-mode from actual reserved |
| @@ -558,6 +560,7 @@ PHP does not have an \"enum\"-like keyword." | |||
| 558 | ;;; declare directives: | 560 | ;;; declare directives: |
| 559 | "encoding" | 561 | "encoding" |
| 560 | "ticks" | 562 | "ticks" |
| 563 | "strict_types" | ||
| 561 | 564 | ||
| 562 | ;;; self for static references: | 565 | ;;; self for static references: |
| 563 | "self" | 566 | "self" |
| @@ -604,6 +607,7 @@ but only if the setting is enabled" | |||
| 604 | (class-open . -) | 607 | (class-open . -) |
| 605 | (comment-intro . 0) | 608 | (comment-intro . 0) |
| 606 | (inlambda . 0) | 609 | (inlambda . 0) |
| 610 | (lambda-intro-cont . +) | ||
| 607 | (inline-open . 0) | 611 | (inline-open . 0) |
| 608 | (label . +) | 612 | (label . +) |
| 609 | (statement-cont . (first php-lineup-cascaded-calls php-lineup-string-cont +)) | 613 | (statement-cont . (first php-lineup-cascaded-calls php-lineup-string-cont +)) |
| @@ -1301,7 +1305,8 @@ With a prefix argument, prompt (with completion) for a word to search for." | |||
| 1301 | t))) | 1305 | t))) |
| 1302 | 1306 | ||
| 1303 | (defsubst php-search-web-documentation (word) | 1307 | (defsubst php-search-web-documentation (word) |
| 1304 | (php-browse-documentation-url (concat php-search-url word))) | 1308 | (php-browse-documentation-url (concat php-search-url |
| 1309 | (replace-regexp-in-string "_" "-" (downcase word))))) | ||
| 1305 | 1310 | ||
| 1306 | ;; Define function documentation function | 1311 | ;; Define function documentation function |
| 1307 | (defun php-search-documentation (word) | 1312 | (defun php-search-documentation (word) |
| @@ -1402,6 +1407,9 @@ a completion list." | |||
| 1402 | " \\(\\sw+\\)") | 1407 | " \\(\\sw+\\)") |
| 1403 | 1 font-lock-type-face) | 1408 | 1 font-lock-type-face) |
| 1404 | 1409 | ||
| 1410 | ;; Highlight return types in functions and methods. | ||
| 1411 | ("function.+:\\s-?\\(\\sw+\\)" 1 font-lock-type-face) | ||
| 1412 | |||
| 1405 | ;; While c-opt-cpp-* highlights the <?php opening tags, it is not | 1413 | ;; While c-opt-cpp-* highlights the <?php opening tags, it is not |
| 1406 | ;; possible to make it highlight short open tags and closing tags | 1414 | ;; possible to make it highlight short open tags and closing tags |
| 1407 | ;; as well. So we force the correct face on all cases that | 1415 | ;; as well. So we force the correct face on all cases that |
