update packages
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
;; Maintainer: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Keywords: php languages convenience align
|
||||
;; Homepage: https://github.com/emacs-php/php-mode
|
||||
;; Version: 1.26.1
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
|
||||
;; Created: 18 Sep 2022
|
||||
;; Version: 1.26.1
|
||||
;; Keywords: languages, php
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Created: 5 Mar 2022
|
||||
;; Version: 1.26.1
|
||||
;; Keywords: languages, php
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Created: 5 May 2019
|
||||
;; Version: 1.26.1
|
||||
;; Keywords: faces, php
|
||||
;; Homepage: https://github.com/emacs-php/php-mode
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Created: 5 Mar 2022
|
||||
;; Version: 1.26.1
|
||||
;; Keywords: tools, languages, php
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Created: 5 Mar 2023
|
||||
;; Version: 0.1.0
|
||||
;; Keywords: tools, php
|
||||
;; URL: https://github.com/emacs-php/php-mode.el
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Keywords: tools, files
|
||||
;; URL: https://github.com/emacs-php/php-mode
|
||||
;; Version: 1.26.1
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Keywords: tools, files
|
||||
;; URL: https://github.com/emacs-php/php-mode
|
||||
;; Version: 1.26.1
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
;; Maintainer: USAMI Kenta <tadsan@zonu.me>
|
||||
;; URL: https://github.com/emacs-php/php-mode/wiki/Local-PHP-Manual
|
||||
;; Keywords: docs, php
|
||||
;; Version: 2.0.0
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
@@ -194,6 +193,7 @@ current `tags-file-name'."
|
||||
(setq php-local-manual--completion-table php-table))))
|
||||
|
||||
(defun php-local-manual-build-table-from-file (filename)
|
||||
"Build a table of PHP function names from FILENAME."
|
||||
(let ((table (make-vector 1022 0))
|
||||
(buf (find-file-noselect filename)))
|
||||
(with-current-buffer buf
|
||||
@@ -208,10 +208,11 @@ current `tags-file-name'."
|
||||
|
||||
(defun php-local-manual-build-table-from-path (path)
|
||||
"Return list of PHP function name from `PATH' directory."
|
||||
(cl-loop for file in (directory-files path nil "^function\\..+\\.html$")
|
||||
if (string-match "\\.\\([-a-zA-Z_0-9]+\\)\\.html$" file)
|
||||
collect (replace-regexp-in-string
|
||||
"-" "_" (substring file (match-beginning 1) (match-end 1)) t)))
|
||||
(save-match-data
|
||||
(cl-loop for file in (directory-files path nil "^function\\..+\\.html$")
|
||||
if (string-match "\\.\\([-a-zA-Z_0-9]+\\)\\.html$" file)
|
||||
collect (replace-regexp-in-string
|
||||
"-" "_" (substring file (match-beginning 1) (match-end 1)) t))))
|
||||
|
||||
(provide 'php-local-manual)
|
||||
;;; php-local-manual.el ends here
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; URL: https://github.com/emacs-php/php-mode
|
||||
;; Keywords: maint
|
||||
;; Version: 1.26.1
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
(define-package "php-mode" "20250109.2103" "Major mode for editing PHP code"
|
||||
;; -*- no-byte-compile: t; lexical-binding: nil -*-
|
||||
(define-package "php-mode" "20250602.1308"
|
||||
"Major mode for editing PHP code."
|
||||
'((emacs "27.1"))
|
||||
:commit "0f756a8c0782ebdc00557addc68763305c91ca51" :maintainers
|
||||
'(("USAMI Kenta" . "tadsan@zonu.me"))
|
||||
:maintainer
|
||||
'("USAMI Kenta" . "tadsan@zonu.me")
|
||||
:keywords
|
||||
'("languages" "php")
|
||||
:url "https://github.com/emacs-php/php-mode")
|
||||
;; Local Variables:
|
||||
;; no-byte-compile: t
|
||||
;; End:
|
||||
:url "https://github.com/emacs-php/php-mode"
|
||||
:commit "40b8abed3079771e060dd99a56703520dabf5be4"
|
||||
:revdesc "40b8abed3079"
|
||||
:keywords '("languages" "php")
|
||||
:maintainers '(("USAMI Kenta" . "tadsan@zonu.me")))
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
;; Maintainer: USAMI Kenta <tadsan@zonu.me>
|
||||
;; URL: https://github.com/emacs-php/php-mode
|
||||
;; Keywords: languages php
|
||||
;; Version: 1.26.1
|
||||
;; Package-Version: 20250602.1308
|
||||
;; Package-Revision: 40b8abed3079
|
||||
;; Package-Requires: ((emacs "27.1"))
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Keywords: tools, files
|
||||
;; URL: https://github.com/emacs-php/php-mode
|
||||
;; Version: 1.26.1
|
||||
;; License: GPL-3.0-or-later
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
;; Author: USAMI Kenta <tadsan@zonu.me>
|
||||
;; Created: 5 Dec 2018
|
||||
;; Version: 1.26.1
|
||||
;; Keywords: languages, php
|
||||
;; Homepage: https://github.com/emacs-php/php-mode
|
||||
;; License: GPL-3.0-or-later
|
||||
@@ -49,12 +48,24 @@
|
||||
:link '(url-link :tag "Official Site" "https://github.com/emacs-php/php-mode")
|
||||
:link '(url-link :tag "PHP Mode Wiki" "https://github.com/emacs-php/php-mode/wiki"))
|
||||
|
||||
(defcustom php-executable (or (executable-find "php") "/usr/bin/php")
|
||||
(defcustom php-executable (or (executable-find "php") "php")
|
||||
"The location of the PHP executable."
|
||||
:group 'php
|
||||
:tag "PHP Executable"
|
||||
:type 'string)
|
||||
|
||||
(defcustom php-phpdbg-executable (list "phpdbg")
|
||||
"The location of the PHPDBG executable."
|
||||
:group 'php
|
||||
:tag "PHP PHPDBG Executable"
|
||||
:type '(repeat string))
|
||||
|
||||
(defcustom php-php-parse-executabe nil
|
||||
"The location of the php-parse executable."
|
||||
:group 'php
|
||||
:tag "PHP php-parse Executable"
|
||||
:type '(repeat string))
|
||||
|
||||
(defcustom php-site-url "https://www.php.net/"
|
||||
"Default PHP.net site URL.
|
||||
|
||||
@@ -325,12 +336,18 @@ can be used to match against definitions for that classlike."
|
||||
;; First see if 'abstract' or 'final' appear, although really these
|
||||
;; are not valid for all values of `type' that the function
|
||||
;; accepts.
|
||||
"^\\s-*\\(?:\\(?:abstract\\|final\\)\\s-+\\)?"
|
||||
(eval-when-compile
|
||||
(rx line-start
|
||||
(* (syntax whitespace))
|
||||
(? (or "abstract" "final" "readonly")
|
||||
(+ (syntax whitespace)))))
|
||||
;; The classlike type
|
||||
type
|
||||
;; Its name, which is the first captured group in the regexp. We
|
||||
;; allow backslashes in the name to handle namespaces, but again
|
||||
;; this is not necessarily correct for all values of `type'.
|
||||
;; (rx (+ (syntax whitespace))
|
||||
;; (group (+ (or (syntax word) "\\" (syntax symbol)))))
|
||||
"\\s-+\\(\\(?:\\sw\\|\\\\\\|\\s_\\)+\\)")))
|
||||
|
||||
(defconst php-imenu-generic-expression-default
|
||||
@@ -465,7 +482,7 @@ can be used to match against definitions for that classlike."
|
||||
|
||||
(defconst php--re-classlike-pattern
|
||||
(eval-when-compile
|
||||
(php-create-regexp-for-classlike (regexp-opt '("class" "interface" "trait")))))
|
||||
(php-create-regexp-for-classlike (regexp-opt '("class" "interface" "trait" "enum")))))
|
||||
|
||||
(defvar php--analysis-syntax-table
|
||||
(eval-when-compile
|
||||
@@ -798,5 +815,29 @@ When `DOCUMENT-ROOT' is NIL, the document root is obtained from `ROUTER-OR-DIR'.
|
||||
#'file-exists-p))))
|
||||
(find-file file))
|
||||
|
||||
|
||||
(defun php-phpdbg-disassemble-file (file)
|
||||
"Read PHP FILE and print opcodes."
|
||||
(interactive (list (if (or buffer-file-name (zerop (prefix-numeric-value current-prefix-arg)))
|
||||
buffer-file-name
|
||||
(expand-file-name
|
||||
(read-file-name "Select PHP file: " default-directory buffer-file-name)))))
|
||||
(let ((args `(,@php-phpdbg-executable "-dopcache.enable_cli=1" "-p*" ,file)))
|
||||
(compile (mapconcat #'shell-quote-argument args " "))))
|
||||
|
||||
(defun php-parse-file (file)
|
||||
"Parse PHP FILE and print node tree."
|
||||
(interactive (list (if (or buffer-file-name (zerop (prefix-numeric-value current-prefix-arg)))
|
||||
buffer-file-name
|
||||
(expand-file-name
|
||||
(read-file-name "Select PHP file: " default-directory buffer-file-name)))))
|
||||
(let* ((project-dir (php-project-get-root-dir))
|
||||
(executable (or php-php-parse-executabe
|
||||
(file-executable-p (expand-file-name "vendor/bin/php-parse" project-dir))
|
||||
(executable-find "php-parse")
|
||||
(user-error "`php-parse' command not found")))
|
||||
(args `(,@(if (listp executable) executable (list executable)) ,file)))
|
||||
(compile (mapconcat #'shell-quote-argument args " "))))
|
||||
|
||||
(provide 'php)
|
||||
;;; php.el ends here
|
||||
|
||||
Reference in New Issue
Block a user