update of packages
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
;;; php.el --- PHP support for friends -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2022 Friends of Emacs-PHP development
|
||||
;; Copyright (C) 2023 Friends of Emacs-PHP development
|
||||
;; Copyright (C) 1985, 1987, 1992-2022 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Created: 5 Dec 2018
|
||||
;; Version: 1.24.2
|
||||
;; Version: 1.25.0
|
||||
;; Keywords: languages, php
|
||||
;; Homepage: https://github.com/emacs-php/php-mode
|
||||
;; License: GPL-3.0-or-later
|
||||
@@ -206,7 +206,8 @@ a completion list."
|
||||
|
||||
;;; PHP Keywords
|
||||
(defconst php-magical-constants
|
||||
(list "__LINE__" "__FILE__" "__FUNCTION__" "__CLASS__" "__TRAIT__" "__METHOD__" "__NAMESPACE__")
|
||||
'("__CLASS__" "__DIR__" "__FILE__" "__FUNCTION__" "__LINE__"
|
||||
"__METHOD__" "__NAMESPACE__" "__TRAIT__")
|
||||
"Magical keyword that is expanded at compile time.
|
||||
|
||||
These are different from \"constants\" in strict terms.
|
||||
@@ -261,12 +262,12 @@ an integer (the current comment nesting)."
|
||||
"Make a regular expression for methods with the given VISIBILITY.
|
||||
|
||||
VISIBILITY must be a string that names the visibility for a PHP
|
||||
method, e.g. \'public\'. The parameter VISIBILITY can itself also
|
||||
method, e.g. `public'. The parameter VISIBILITY can itself also
|
||||
be a regular expression.
|
||||
|
||||
The regular expression this function returns will check for other
|
||||
keywords that can appear in method signatures, e.g. \'final\' and
|
||||
\'static\'. The regular expression will have one capture group
|
||||
keywords that can appear in method signatures, e.g. `final' and
|
||||
`static'. The regular expression will have one capture group
|
||||
which will be the name of the method."
|
||||
(when (stringp visibility)
|
||||
(setq visibility (list visibility)))
|
||||
@@ -293,8 +294,8 @@ which will be the name of the method."
|
||||
'((* any) line-end))))))
|
||||
|
||||
(defun php-create-regexp-for-classlike (type)
|
||||
"Accepts a `TYPE' of a \'classlike\' object as a string, such as
|
||||
\'class\' or \'interface\', and returns a regexp as a string which
|
||||
"Accepts a `TYPE' of a `classlike' object as a string, such as
|
||||
`class' or `interface', and returns a regexp as a string which
|
||||
can be used to match against definitions for that classlike."
|
||||
(concat
|
||||
;; First see if 'abstract' or 'final' appear, although really these
|
||||
|
||||
Reference in New Issue
Block a user