mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
(python-font-lock-keywords): make it a defconst
This commit is contained in:
parent
391b4e60e6
commit
62d9d6ed40
1 changed files with 2 additions and 2 deletions
|
|
@ -185,7 +185,7 @@ equal <number>, `tab-width' is set to <number>, a message saying so is
|
|||
displayed in the echo area, and if `py-beep-if-tab-change' is non-nil
|
||||
the Emacs bell is also rung as a warning.")
|
||||
|
||||
(defvar python-font-lock-keywords
|
||||
(defconst python-font-lock-keywords
|
||||
(let* ((keywords '("access" "and" "break" "continue"
|
||||
"del" "elif" "else:" "except"
|
||||
"except:" "exec" "finally:" "for"
|
||||
|
|
@ -209,7 +209,7 @@ the Emacs bell is also rung as a warning.")
|
|||
'("\\bdef[ \t]+\\([a-zA-Z_]+[a-zA-Z0-9_]*\\)"
|
||||
1 font-lock-function-name-face)
|
||||
))
|
||||
"*Additional expressions to highlight in Python mode.")
|
||||
"Additional expressions to highlight in Python mode.")
|
||||
|
||||
|
||||
;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue