diff options
| author | Masatake YAMATO | 2006-04-26 07:03:20 +0000 |
|---|---|---|
| committer | Masatake YAMATO | 2006-04-26 07:03:20 +0000 |
| commit | 0db097a55749dc040ef5d8daec7d7806cbb4281c (patch) | |
| tree | 04ff363eaff282ca1a6625c0c990b229570304b5 | |
| parent | 08a1dbe66260be7c7e95ec9752243167ac168cfb (diff) | |
| download | emacs-0db097a55749dc040ef5d8daec7d7806cbb4281c.tar.gz emacs-0db097a55749dc040ef5d8daec7d7806cbb4281c.zip | |
(asm-mode, asm-mode-syntax-table): Add
support for "//" style comments. Remove `b' flag
from ?* in `asm-mode-syntax-table'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/asm-mode.el | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b4c19727934..234a8445845 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-04-26 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * progmodes/asm-mode.el (asm-mode, asm-mode-syntax-table): | ||
| 4 | Add support for "//" style comments. Remove `b' flag | ||
| 5 | from ?* in `asm-mode-syntax-table'. | ||
| 6 | |||
| 1 | 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * follow.el: Use (featurep 'xemacs) everywhere. | 9 | * follow.el: Use (featurep 'xemacs) everywhere. |
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el index b79237adba7..ebb532a3525 100644 --- a/lisp/progmodes/asm-mode.el +++ b/lisp/progmodes/asm-mode.el | |||
| @@ -62,9 +62,9 @@ | |||
| 62 | 62 | ||
| 63 | (defvar asm-mode-syntax-table | 63 | (defvar asm-mode-syntax-table |
| 64 | (let ((st (make-syntax-table))) | 64 | (let ((st (make-syntax-table))) |
| 65 | (modify-syntax-entry ?\n ">" st) | 65 | (modify-syntax-entry ?\n "> b" st) |
| 66 | (modify-syntax-entry ?/ ". 14b" st) | 66 | (modify-syntax-entry ?/ ". 124b" st) |
| 67 | (modify-syntax-entry ?* ". 23b" st) | 67 | (modify-syntax-entry ?* ". 23" st) |
| 68 | st) | 68 | st) |
| 69 | "Syntax table used while in Asm mode.") | 69 | "Syntax table used while in Asm mode.") |
| 70 | 70 | ||
| @@ -136,14 +136,14 @@ Special commands: | |||
| 136 | (use-local-map (nconc (make-sparse-keymap) asm-mode-map)) | 136 | (use-local-map (nconc (make-sparse-keymap) asm-mode-map)) |
| 137 | (local-set-key (vector asm-comment-char) 'asm-comment) | 137 | (local-set-key (vector asm-comment-char) 'asm-comment) |
| 138 | (set-syntax-table (make-syntax-table asm-mode-syntax-table)) | 138 | (set-syntax-table (make-syntax-table asm-mode-syntax-table)) |
| 139 | (modify-syntax-entry asm-comment-char "<") | 139 | (modify-syntax-entry asm-comment-char "< b") |
| 140 | 140 | ||
| 141 | (make-local-variable 'comment-start) | 141 | (make-local-variable 'comment-start) |
| 142 | (setq comment-start (string asm-comment-char)) | 142 | (setq comment-start (string asm-comment-char)) |
| 143 | (make-local-variable 'comment-add) | 143 | (make-local-variable 'comment-add) |
| 144 | (setq comment-add 1) | 144 | (setq comment-add 1) |
| 145 | (make-local-variable 'comment-start-skip) | 145 | (make-local-variable 'comment-start-skip) |
| 146 | (setq comment-start-skip "\\(?:\\s<+\\|/\\*+\\)[ \t]*") | 146 | (setq comment-start-skip "\\(?:\\s<+\\|/[/*]+\\)[ \t]*") |
| 147 | (make-local-variable 'comment-end-skip) | 147 | (make-local-variable 'comment-end-skip) |
| 148 | (setq comment-end-skip "[ \t]*\\(\\s>\\|\\*+/\\)") | 148 | (setq comment-end-skip "[ \t]*\\(\\s>\\|\\*+/\\)") |
| 149 | (make-local-variable 'comment-end) | 149 | (make-local-variable 'comment-end) |