summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Bengtsson <mattias.jc.bengtsson@gmail.com>2023-09-29 18:39:16 +0200
committerGitHub <noreply@github.com>2023-09-29 18:39:16 +0200
commit01af6c1f9fbf19b753ed2a69f9cd716864fa4c8d (patch)
tree8161d1987dc6aebad61c38597b3537af2de454d9
parentf97e64e87071c880f4a92ac73bed667e89e4e580 (diff)
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
-rw-r--r--cape-keyword.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/cape-keyword.el b/cape-keyword.el
index 51eb0d5..ec445a2 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"