emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/cape 96eec1dd1f: Add php keywords (#31)


From: ELPA Syncer
Subject: [elpa] externals/cape 96eec1dd1f: Add php keywords (#31)
Date: Wed, 9 Mar 2022 08:57:19 -0500 (EST)

branch: externals/cape
commit 96eec1dd1fc2ba6458ab17d9647e739e64953946
Author: USAMI Kenta <tadsan@zonu.me>
Commit: GitHub <noreply@github.com>

    Add php keywords (#31)
    
    * Add PHP keywords and remove obsolete (removed) words
    
    * Add phps-mode as an alias of php-mode
---
 cape.el | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/cape.el b/cape.el
index 169334f6a6..4be0bfd398 100644
--- a/cape.el
+++ b/cape.el
@@ -255,17 +255,20 @@ auto completion does not pop up too aggressively."
      "ucfirst" "umask" "undef" "unless" "unlink" "unpack" "unshift" "untie"
      "until" "use" "utime" "values" "vec" "wait" "waitpid"
      "wantarray" "warn" "while" "write" "x" "xor" "y")
-    (php-mode
+    (php-mode ;; https://www.php.net/manual/reserved.php
+     "Closure" "Generator" "Exception" "Error" "Throwable"
      "__CLASS__" "__DIR__" "__FILE__" "__FUNCTION__" "__LINE__" "__METHOD__"
-     "__NAMESPACE__" "_once" "abstract" "and" "array" "as" "break" "case"
-     "catch" "cfunction" "class" "clone" "const" "continue" "declare"
-     "default" "die" "do" "echo" "else" "elseif" "empty" "enddeclare"
-     "endfor" "endforeach" "endif" "endswitch" "endwhile" "eval" "exception"
-     "exit" "extends" "final" "for" "foreach" "function" "global"
-     "goto" "if" "implements" "include" "instanceof" "interface"
-     "isset" "list" "namespace" "new" "old_function" "or" "php_user_filter"
-     "print" "private" "protected" "public" "require" "require_once" "return"
-     "static" "switch" "this" "throw" "try" "unset" "use" "var" "while" "xor")
+     "__NAMESPACE__" "__TRAIT__"
+     "abstract" "and" "array" "as" "bool" "break" "callable" "case" "catch"
+     "class" "clone" "const" "continue" "declare" "default" "die" "do" "echo"
+     "else" "elseif" "empty" "enddeclare" "endfor" "endforeach" "endif"
+     "endswitch" "endwhile" "enum" "eval" "exit" "extends" "false" "float"
+     "final" "finally" "for" "foreach" "fn" "function" "global" "goto" "if"
+     "implements" "include" "include_once" "instanceof" "insteadof" "interface"
+     "isset" "iterable" "list" "match" "namespace" "new" "null" "object" "or"
+     "print" "private" "protected" "public" "readonly" "require" "require_once"
+     "return" "self" "static" "string" "switch" "this" "throw" "trait" "true"
+     "try" "unset" "use" "var" "void" "while" "xor" "yield" "yeild from")
     (python-mode ;; 
https://docs.python.org/3/reference/lexical_analysis.html#keywords
      "False" "None" "True" "and" "as" "assert" "break" "class" "continue" "def"
      "del" "elif" "else" "except" "exec" "finally" "for" "from" "global" "if"
@@ -320,6 +323,7 @@ auto completion does not pop up too aggressively."
     (cperl-mode perl-mode)
     (jde-mode java-mode)
     (ess-julia-mode julia-mode)
+    (phps-mode php-mode)
     (enh-ruby-mode ruby-mode))
   "Alist of major modes and keywords."
   :type 'alist)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]