unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Evan Moses <evan@emoses.org>
To: emacs-devel@gnu.org
Subject: Add "breakpoint" as a builtin to python font lock
Date: Thu, 21 Feb 2019 15:07:02 -0800	[thread overview]
Message-ID: <CAEzBis4wfZA-icrX7T_uA0bb0P2P0ayWnAhLz3mjXKFmdjSVAg@mail.gmail.com> (raw)


[-- 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)


             reply	other threads:[~2019-02-21 23:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-21 23:07 Evan Moses [this message]
2019-03-01  9:56 ` Add "breakpoint" as a builtin to python font lock Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEzBis4wfZA-icrX7T_uA0bb0P2P0ayWnAhLz3mjXKFmdjSVAg@mail.gmail.com \
    --to=evan@emoses.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).