branch: externals/cape
commit 01af6c1f9fbf19b753ed2a69f9cd716864fa4c8d
Author: Mattias Bengtsson <mattias.jc.bengts...@gmail.com>
Commit: GitHub <nore...@github.com>

    cape-keyword: Update Python keywords (#93)
    
    Python 3.10 added three new "soft"[1] keywords: "match", "case" and "_".
    
    Add "match" and "case" but skip "_" since a one-character keyword is of
    low use in completion.
    
    1: https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords
---
 cape-keyword.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cape-keyword.el b/cape-keyword.el
index 51eb0d5b78..ec445a2c27 100644
--- a/cape-keyword.el
+++ b/cape-keyword.el
@@ -259,10 +259,10 @@
      "in" "infix" "infixl" "infixr" "instance" "let" "module" "newtype" "of"
      "then" "type" "where")
     (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"
-     "import" "in" "is" "lambda" "nonlocal" "not" "or" "pass" "print" "raise"
-     "return" "try" "while" "with" "yield")
+     "False" "None" "True" "and" "as" "assert" "break" "case ""class" 
"continue"
+     "def" "del" "elif" "else" "except" "exec" "finally" "for" "from" "global"
+     "if" "import" "in" "is" "lambda" "match ""nonlocal" "not" "or" "pass"
+     "print" "raise" "return" "try" "while" "with" "yield")
     (ruby-mode
      "BEGIN" "END" "alias" "and" "begin" "break" "case" "class" "def" 
"defined?"
      "do" "else" "elsif" "end" "ensure" "false" "for" "if" "in" "module" "next"

Reply via email to