Skip to content

Commit ef0fe91

Browse files
committed
Add list of magical constants
1 parent bf48740 commit ef0fe91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

php.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ You can replace \"en\" with your ISO language code."
7878
:group 'php
7979
:type 'string)
8080

81+
;;; PHP Keywords
82+
(defconst php-magical-constants
83+
(list "__LINE__" "__FILE__" "__FUNCTION__" "__CLASS__" "__TRAIT__" "__METHOD__" "__NAMESPACE__")
84+
"Magical keyword that is expanded at compile time.
85+
86+
These are different from \"constants\" in strict terms.
87+
see https://www.php.net/manual/language.constants.predefined.php")
88+
8189
;;; Utillity for locate language construction
8290
(defsubst php-in-string-p ()
8391
"Return non-nil if inside a string.

0 commit comments

Comments
 (0)