Skip to content

Commit

Permalink
Merge pull request #485 from emacs-php/fix/code-style
Browse files Browse the repository at this point in the history
Fix style and suppress warning in compile
  • Loading branch information
zonuexe authored Dec 4, 2018
2 parents d769da0 + 76d35ba commit 0af8d71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@

(eval-when-compile
(require 'regexp-opt)
(autoload 'pkg-info-version-info "pkg-info")
(defvar c-vsemi-status-unknown-p)
(defvar syntax-propertize-via-font-lock))

Expand Down Expand Up @@ -170,15 +171,15 @@ Turning this on will open it whenever `php-mode' is loaded."
(defsubst php-in-string-or-comment-p ()
(nth 8 (syntax-ppss)))

(defun php-mode-extra-constants-create-regexp(kwds)
(defun php-mode-extra-constants-create-regexp (kwds)
"Create regexp for the list of extra constant keywords KWDS."
(concat "[^_$]?\\<\\("
(regexp-opt
(append kwds
(when (boundp 'web-mode-extra-php-constants) web-mode-extra-php-constants)))
"\\)\\>[^_]?"))

(defun php-mode-extra-constants-set(sym value)
(defun php-mode-extra-constants-set (sym value)
"Apply the list of extra constant keywords `VALUE'.
This function is called when the custom variable php-extra-constants
Expand Down

0 comments on commit 0af8d71

Please sign in to comment.