aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/ld-script.el
diff options
context:
space:
mode:
authorMasatake YAMATO2006-01-11 14:29:44 +0000
committerMasatake YAMATO2006-01-11 14:29:44 +0000
commit4076cbf66cef35e6682dbdef56eb127d0bb0fdbf (patch)
tree1729334c1e408e8d38de55c6674dd174bd96a626 /lisp/progmodes/ld-script.el
parent00b6a079049b0a129759e6d0e0f992ddb3759b2d (diff)
downloademacs-4076cbf66cef35e6682dbdef56eb127d0bb0fdbf.tar.gz
emacs-4076cbf66cef35e6682dbdef56eb127d0bb0fdbf.zip
2006-01-06 Masatake YAMATO <jet@gyve.org>
* font-lock.el (cpp-font-lock-keywords): Font lock keywords for C preprocessor forward ported from GNU Emacs 21.2. * progmodes/asm-mode.el (asm-font-lock-keywords): Use `cpp-font-lock-keywords'. * progmodes/ld-script.el (ld-script-font-lock-keywords): Ditto. * progmodes/ld-script.el (auto-mode-alist): Use \\> instead of $ for "\\.ld[s]?".
Diffstat (limited to 'lisp/progmodes/ld-script.el')
-rw-r--r--lisp/progmodes/ld-script.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/progmodes/ld-script.el b/lisp/progmodes/ld-script.el
index 99477b73c63..4dbbe0faa18 100644
--- a/lisp/progmodes/ld-script.el
+++ b/lisp/progmodes/ld-script.el
@@ -114,18 +114,19 @@
114 "Builtin functions of GNU ld script.") 114 "Builtin functions of GNU ld script.")
115 115
116(defvar ld-script-font-lock-keywords 116(defvar ld-script-font-lock-keywords
117 `((,(regexp-opt ld-script-keywords 'words) 117 (append
118 1 font-lock-keyword-face) 118 `((,(regexp-opt ld-script-keywords 'words)
119 (,(regexp-opt ld-script-builtins 'words) 119 1 font-lock-keyword-face)
120 1 font-lock-builtin-face) 120 (,(regexp-opt ld-script-builtins 'words)
121 ("/DISCARD/" . font-lock-warning-face) 121 1 font-lock-builtin-face)
122 ("##\\|#[^#\n]+$" . font-lock-preprocessor-face) 122 ("/DISCARD/" . font-lock-warning-face)
123 ("\\W\\(\\.\\)\\W" 1 ld-script-location-counter-face) 123 ("\\W\\(\\.\\)\\W" 1 ld-script-location-counter-face)
124 ) 124 )
125 cpp-font-lock-keywords)
125 "Default font-lock-keywords for `ld-script-mode'.") 126 "Default font-lock-keywords for `ld-script-mode'.")
126 127
127;;;###autoload 128;;;###autoload
128(add-to-list 'auto-mode-alist '("\\.ld[s]?\\(\\.in\\)?$" . ld-script-mode)) 129(add-to-list 'auto-mode-alist '("\\.ld[s]?\\>" . ld-script-mode))
129;;;###autoload 130;;;###autoload
130(add-to-list 'auto-mode-alist '("\\.x[bdsru]?[cn]?$" . ld-script-mode)) 131(add-to-list 'auto-mode-alist '("\\.x[bdsru]?[cn]?$" . ld-script-mode))
131 132