Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a4d8ed20
Commit
a4d8ed20
authored
Oct 07, 1994
by
Richard M. Stallman
Browse files
(asm-font-lock-keywords): New variable.
(asm-mode): Set font-lock-keywords locally.
parent
0ece5f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lisp/progmodes/asm-mode.el
lisp/progmodes/asm-mode.el
+8
-0
No files found.
lisp/progmodes/asm-mode.el
View file @
a4d8ed20
...
...
@@ -72,6 +72,12 @@
(
define-key
asm-mode-map
"\C-m"
'asm-newline
)
)
(
defconst
asm-font-lock-keywords
'
((
"^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\)?"
(
1
font-lock-function-name-face
)
(
3
font-lock-keyword-face
nil
t
))
(
"^\\s +\\(\\(\\sw\\|\\s_\\)+\\)"
1
font-lock-keyword-face
))
"Additional expressions to highlight in Assembler mode."
)
(
defvar
asm-code-level-empty-comment-pattern
nil
)
(
defvar
asm-flush-left-empty-comment-pattern
nil
)
(
defvar
asm-inline-empty-comment-pattern
nil
)
...
...
@@ -103,6 +109,8 @@ Special commands:
(
setq
mode-name
"Assembler"
)
(
setq
major-mode
'asm-mode
)
(
setq
local-abbrev-table
asm-mode-abbrev-table
)
(
make-local-variable
'font-lock-keywords
)
(
setq
font-lock-keywords
asm-font-lock-keywords
)
(
make-local-variable
'asm-mode-syntax-table
)
(
setq
asm-mode-syntax-table
(
make-syntax-table
))
(
set-syntax-table
asm-mode-syntax-table
)
...
...
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