-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from emacs-php/release/v1.21.2
Release v1.21.2
- Loading branch information
Showing
6 changed files
with
79 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,14 @@ | |
;; Maintainer: USAMI Kenta <[email protected]> | ||
;; URL: https://github.com/emacs-php/php-mode | ||
;; Keywords: languages php | ||
;; Version: 1.21.1 | ||
;; Version: 1.21.2 | ||
;; Package-Requires: ((emacs "24.3") (cl-lib "0.5")) | ||
;; License: GPL-3.0-or-later | ||
|
||
(defconst php-mode-version-number "1.21.1" | ||
(defconst php-mode-version-number "1.21.2" | ||
"PHP Mode version number.") | ||
|
||
(defconst php-mode-modified "2019-04-01" | ||
(defconst php-mode-modified "2019-05-11" | ||
"PHP Mode build date.") | ||
|
||
;; This program is free software; you can redistribute it and/or modify | ||
|
@@ -98,7 +98,7 @@ | |
;; Work around emacs bug#18845, cc-mode expects cl to be loaded | ||
;; while php-mode only uses cl-lib (without compatibility aliases) | ||
(eval-and-compile | ||
(if (and (= emacs-major-version 24) (>= emacs-minor-version 4)) | ||
(when (and (= emacs-major-version 24) (>= emacs-minor-version 4)) | ||
(require 'cl))) | ||
|
||
;; Work around https://github.com/emacs-php/php-mode/issues/310. | ||
|
@@ -191,7 +191,7 @@ Turning this on will open it whenever `php-mode' is loaded." | |
"Create regexp for the list of extra constant keywords KWDS." | ||
(concat "[^_$]?\\<\\(" | ||
(regexp-opt | ||
(append kwds | ||
(append kwds | ||
(when (boundp 'web-mode-extra-php-constants) web-mode-extra-php-constants))) | ||
"\\)\\>[^_]?")) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
;; Author: USAMI Kenta <[email protected]> | ||
;; Keywords: tools, files | ||
;; URL: https://github.com/emacs-php/php-mode | ||
;; Version: 1.21.1 | ||
;; Version: 1.21.2 | ||
;; Package-Requires: ((emacs "24.3") (cl-lib "0.5")) | ||
;; License: GPL-3.0-or-later | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
<?php | ||
|
||
// Test highlighting of variables with the variable-name-face | ||
$_; | ||
$regularVariable; | ||
$$variableVariable; | ||
$漢字; | ||
$snake_case; | ||
$abc123xyz; | ||
$def_456_ghi; | ||
${'var'}; | ||
${"var"}; | ||
${$var}; | ||
${'v' . 'ar'}; | ||
$a{1}; | ||
$a{'a'}; | ||
MyClass::$staticVariable; | ||
$object->memberVariable; | ||
$object->funCall(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,60 @@ | ||
;; -*- mode: emacs-lisp -*- | ||
(("<?php" . php-php-tag) | ||
("\n\n" . nil) | ||
("\n\n") | ||
("// " . font-lock-comment-delimiter-face) | ||
("Test highlighting of variables with the variable-name-face\n" . font-lock-comment-face) | ||
("$" . php-variable-sigil) | ||
("_" . php-variable-name) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("regularVariable" . php-variable-name) | ||
(";\n" . nil) | ||
(";\n") | ||
("$$" . php-variable-sigil) | ||
("variableVariable" . php-variable-name) | ||
(";\n" . nil) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("漢字" . php-variable-name) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("snake_case" . php-variable-name) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("abc123xyz" . php-variable-name) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("def_456_ghi" . php-variable-name) | ||
(";\n${") | ||
("'var'" . php-string) | ||
("};\n${") | ||
("\"var\"" . php-string) | ||
("};\n${") | ||
("$" . php-variable-sigil) | ||
("var" . php-variable-name) | ||
("};\n${") | ||
("'v'" . php-string) | ||
(" . ") | ||
("'ar'" . php-string) | ||
("};\n") | ||
("$" . php-variable-sigil) | ||
("a" . php-variable-name) | ||
("{1};\n") | ||
("$" . php-variable-sigil) | ||
("a" . php-variable-name) | ||
("{") | ||
("'a'" . php-string) | ||
("};\n") | ||
("MyClass" . php-constant) | ||
("::" . php-paamayim-nekudotayim) | ||
("$" . php-variable-sigil) | ||
("staticVariable" . php-variable-name) | ||
(";\n" . nil) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("object" . php-variable-name) | ||
("->" . php-object-op) | ||
("memberVariable" . php-property-name) | ||
(";\n" . nil) | ||
(";\n") | ||
("$" . php-variable-sigil) | ||
("object" . php-variable-name) | ||
("->" . php-object-op) | ||
("funCall" . php-method-call) | ||
("();\n" . nil)) | ||
("();\n")) |