* Add "breakpoint" as a builtin to python font lock
@ 2019-02-21 23:07 Evan Moses
2019-03-01 9:56 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Evan Moses @ 2019-02-21 23:07 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 77 bytes --]
As of Python 3.7, "breakpoint" is a builtin and should be fontified as such.
[-- Attachment #1.2: Type: text/html, Size: 112 bytes --]
[-- Attachment #2: 0001-Add-breakpoint-to-builtins-for-Python.patch --]
[-- Type: application/octet-stream, Size: 1058 bytes --]
From 64fa93d4e8dfcd88de32b0f0244117d4db191e9c Mon Sep 17 00:00:00 2001
From: Evan Moses <evan@emoses.org>
Date: Thu, 21 Feb 2019 13:37:01 -0800
Subject: [PATCH] Add 'breakpoint' to builtins for Python
* lisp/progmodes/python.el (python-font-lock-keywords-level-2)
(python-font-lock-keywords-maxiumum-decoration): add 'breakpoint'
to the list of builtins, it's new as of Python 3.7
---
lisp/progmodes/python.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 71b2a94c07..65d5d90cd5 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -575,7 +575,7 @@ class declarations.")
"reload" "unichr" "unicode" "xrange" "apply" "buffer" "coerce"
"intern"
;; Python 3:
- "ascii" "bytearray" "bytes" "exec"
+ "ascii" "breakpoint" "bytearray" "bytes" "exec"
;; Extra:
"__all__" "__doc__" "__name__" "__package__")
symbol-end) . font-lock-builtin-face))
--
2.17.2 (Apple Git-113)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-01 9:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-21 23:07 Add "breakpoint" as a builtin to python font lock Evan Moses
2019-03-01 9:56 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.