]> git.eshelyaron.com Git - emacs.git/commitdiff
php-ts-mode: minor fixes
authorMattias EngdegÄrd <mattiase@acm.org>
Thu, 13 Jun 2024 08:49:28 +0000 (10:49 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:21:11 +0000 (19:21 +0200)
* lisp/progmodes/php-ts-mode.el (php-ts-mode-flymake-php):
Don't use `any` to mean `not-newline`; it's misleading.
(php-ts-mode--predefined-constant): Remove duplicate "E_USER_NOTICE".

(cherry picked from commit 59367f6a3a9dd7fb30429494b622ebdec94e6e32)

lisp/progmodes/php-ts-mode.el

index 3473057edd484621e0d8737ce53507d8f6731cfd..6a576d9c7c5a385fdf4ca3910387c81b1f54af65 100644 (file)
@@ -242,8 +242,8 @@ Calls REPORT-FN directly."
                                (rx bol (? "PHP ") ;; every dignostic line start with PHP
                                    (group (or "Fatal" "Parse")) ;; 1: type
                                    " error:" (+ (syntax whitespace))
-                                   (group (+? any)) ;; 2: msg
-                                   " in " (group (+? any)) ;; 3: file
+                                   (group (+? nonl)) ;; 2: msg
+                                   " in " (group (+? nonl)) ;; 3: file
                                    " on line " (group (+ num)) ;; 4: line
                                    eol))))
     (save-restriction
@@ -739,7 +739,7 @@ characters of the current line."
     "PHP_SHLIB_SUFFIX" "PHP_FD_SETSIZE" "E_ERROR" "E_WARNING" "E_PARSE"
     "E_NOTICE" "E_CORE_ERROR" "E_CORE_WARNING" "E_COMPILE_ERROR"
     "E_COMPILE_WARNING" "E_USER_ERROR" "E_USER_WARNING"
-    "E_USER_NOTICE" "E_USER_NOTICE" "E_DEPRECATED" "E_USER_DEPRECATED"
+    "E_USER_NOTICE" "E_DEPRECATED" "E_USER_DEPRECATED"
     "E_ALL" "E_STRICT"
     ;; magic constant
     "__COMPILER_HALT_OFFSET__" "__CLASS__" "__DIR__" "__FILE__"