Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1809d824
Commit
1809d824
authored
Feb 24, 1997
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(python-font-lock-keywords): Use new convention for installing in mode
parent
76ab39a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Misc/python-mode.el
Misc/python-mode.el
+3
-2
No files found.
Misc/python-mode.el
View file @
1809d824
...
@@ -208,7 +208,7 @@ equal <number>, `tab-width' is set to <number>, a message saying so is
...
@@ -208,7 +208,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
displayed in the echo area, and if `py-beep-if-tab-change' is non-nil
the Emacs bell is also rung as a warning."
)
the Emacs bell is also rung as a warning."
)
(
def
const
python-font-lock-keywords
(
def
var
python-font-lock-keywords
(
let*
((
keywords
'
(
"and"
"break"
"class"
(
let*
((
keywords
'
(
"and"
"break"
"class"
"continue"
"def"
"del"
"elif"
"continue"
"def"
"del"
"elif"
"else:"
"except"
"except:"
"exec"
"else:"
"except"
"except:"
"exec"
...
@@ -234,6 +234,8 @@ the Emacs bell is also rung as a warning.")
...
@@ -234,6 +234,8 @@ the Emacs bell is also rung as a warning.")
1
font-lock-function-name-face
)
1
font-lock-function-name-face
)
))
))
"Additional expressions to highlight in Python mode."
)
"Additional expressions to highlight in Python mode."
)
(
put
'python-mode
'font-lock-defaults
'
(
python-font-lock-keywords
))
(
defvar
imenu-example--python-show-method-args-p
nil
(
defvar
imenu-example--python-show-method-args-p
nil
"*Controls echoing of arguments of functions & methods in the imenu buffer.
"*Controls echoing of arguments of functions & methods in the imenu buffer.
...
@@ -716,7 +718,6 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
...
@@ -716,7 +718,6 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
(
setq
major-mode
'python-mode
(
setq
major-mode
'python-mode
mode-name
"Python"
mode-name
"Python"
local-abbrev-table
python-mode-abbrev-table
local-abbrev-table
python-mode-abbrev-table
font-lock-defaults
'
(
python-font-lock-keywords
)
paragraph-separate
"^[ \t]*$"
paragraph-separate
"^[ \t]*$"
paragraph-start
"^[ \t]*$"
paragraph-start
"^[ \t]*$"
require-final-newline
t
require-final-newline
t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment