chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52cd0db
)
el/dot-emacs.el: Add the additional Python 3 keywords and builtins.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 17 Feb 2024 13:15:59 +0000
(13:15 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 17 Feb 2024 14:55:46 +0000
(14:55 +0000)
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index 7c58433632b8bfe6f7ff24a35cc62d82ba7755b6..4d26b856f0cb061388e02e7cafb33e5827476448 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-3474,20
+3474,22
@@
(defun mdw-fontify-pythonic (keywords builtins)
(defun mdw-fontify-python ()
(mdw-fontify-pythonic
(defun mdw-fontify-python ()
(mdw-fontify-pythonic
- (mdw-regexps "and" "as" "assert"
+ (mdw-regexps "and" "as" "assert"
"async" "await"
"break"
"break"
- "class" "continue"
+ "c
ase" "c
lass" "continue"
"def" "del"
"def" "del"
- "elif" "else" "except" "exec"
+ "elif" "else" "except"
;
"exec"
"finally" "for" "from"
"global"
"if" "import" "in" "is"
"lambda"
"finally" "for" "from"
"global"
"if" "import" "in" "is"
"lambda"
+ "match"
+ "nonlocal"
"not"
"or"
"not"
"or"
- "pass" "print"
+ "pass"
;
"print"
"raise" "return"
"raise" "return"
- "try"
+ "try"
;"type"
"while" "with"
"yield")
"while" "with"
"yield")
@@
-3498,6
+3500,7
@@
(defun mdw-fontify-python ()
"__debug__"
"BaseException"
"__debug__"
"BaseException"
+ "BaseExceptionGroup"
"Exception"
"StandardError"
"ArithmeticError"
"Exception"
"StandardError"
"ArithmeticError"
@@
-3510,8
+3513,24
@@
(defun mdw-fontify-python ()
"EnvironmentError"
"IOError"
"OSError"
"EnvironmentError"
"IOError"
"OSError"
+ "BlockingIOError"
+ "ChildProcessError"
+ "ConnectionError"
+ "BrokenPipeError"
+ "ConnectionAbortedError"
+ "ConnectionRefusedError"
+ "ConnectionResetError"
+ "FileExistsError"
+ "FileNotFoundError"
+ "InterruptedError"
+ "IsADirectoryError"
+ "NotADirectoryError"
+ "PermissionError"
+ "TimeoutError"
"EOFError"
"EOFError"
+ "ExceptionGroup"
"ImportError"
"ImportError"
+ "ModuleNotFoundError"
"LookupError"
"IndexError"
"KeyError"
"LookupError"
"IndexError"
"KeyError"
@@
-3521,6
+3540,7
@@
(defun mdw-fontify-python ()
"ReferenceError"
"RuntimeError"
"NotImplementedError"
"ReferenceError"
"RuntimeError"
"NotImplementedError"
+ "RecursionError"
"SyntaxError"
"IndentationError"
"TabError"
"SyntaxError"
"IndentationError"
"TabError"
@@
-3535,9
+3555,11
@@
(defun mdw-fontify-python ()
"Warning"
"BytesWarning"
"DeprecationWarning"
"Warning"
"BytesWarning"
"DeprecationWarning"
+ "EncodingWarning"
"FutureWarning"
"ImportWarning"
"PendingDeprecationWarning"
"FutureWarning"
"ImportWarning"
"PendingDeprecationWarning"
+ "ResourceWarning"
"RuntimeWarning"
"SyntaxWarning"
"UnicodeWarning"
"RuntimeWarning"
"SyntaxWarning"
"UnicodeWarning"
@@
-3546,12
+3568,14
@@
(defun mdw-fontify-python ()
"KeyboardInterrupt"
"SystemExit"
"KeyboardInterrupt"
"SystemExit"
- "abs" "absolute_import" "all" "any" "apply"
- "basestring" "bin" "bool" "buffer" "bytearray"
+ "abs" "absolute_import" "aiter"
+ "all" "anext" "any" "apply" "ascii"
+ "basestring" "bin" "bool" "breakpoint"
+ "buffer" "bytearray" "bytes"
"callable" "coerce" "chr" "classmethod"
"cmp" "compile" "complex"
"delattr" "dict" "dir" "divmod"
"callable" "coerce" "chr" "classmethod"
"cmp" "compile" "complex"
"delattr" "dict" "dir" "divmod"
- "enumerate" "eval" "execfile"
+ "enumerate" "eval" "exec
" "exec
file"
"file" "filter" "float" "format" "frozenset"
"getattr" "globals"
"hasattr" "hash" "help" "hex"
"file" "filter" "float" "format" "frozenset"
"getattr" "globals"
"hasattr" "hash" "help" "hex"