diff options
| author | John Paul Wallington | 2003-09-22 12:37:00 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2003-09-22 12:37:00 +0000 |
| commit | b8313039df4446d849b658fcf5306fe6d8d0103a (patch) | |
| tree | e53022ec1e73125121ac61cbb7c7d17046125842 | |
| parent | 5b631b6b36cce2a239c04953c49f676be8ba5924 (diff) | |
| download | emacs-b8313039df4446d849b658fcf5306fe6d8d0103a.tar.gz emacs-b8313039df4446d849b658fcf5306fe6d8d0103a.zip | |
Add Commentary section, minor cleanup of file header.
(ld-script-font-lock-keywords): Doc fix.
(toplevel): Provide `ld-script' feature.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/ld-script.el | 24 |
2 files changed, 23 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 83104e753c9..2920416ab25 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-09-22 John Paul Wallington <jpw@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/ld-script.el: Add Commentary section, | ||
| 4 | minor cleanup of file header. | ||
| 5 | (ld-script-font-lock-keywords): Doc fix. | ||
| 6 | (toplevel): Provide `ld-script' feature. | ||
| 7 | |||
| 1 | 2003-09-21 Kim F. Storm <storm@cua.dk> | 8 | 2003-09-21 Kim F. Storm <storm@cua.dk> |
| 2 | 9 | ||
| 3 | * scroll-bar.el (set-scroll-bar-mode): Initialize to | 10 | * scroll-bar.el (set-scroll-bar-mode): Initialize to |
diff --git a/lisp/progmodes/ld-script.el b/lisp/progmodes/ld-script.el index 94e829903c9..120cae538d5 100644 --- a/lisp/progmodes/ld-script.el +++ b/lisp/progmodes/ld-script.el | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | ;; Author: Masatake YAMATO<jet@gyve.org> | 5 | ;; Author: Masatake YAMATO<jet@gyve.org> |
| 6 | ;; Keywords: languages, faces | 6 | ;; Keywords: languages, faces |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | ||
| 9 | |||
| 8 | ;; This program is free software; you can redistribute it and/or modify | 10 | ;; This program is free software; you can redistribute it and/or modify |
| 9 | ;; it under the terms of the GNU General Public License as published by | 11 | ;; it under the terms of the GNU General Public License as published by |
| 10 | ;; the Free Software Foundation; either version 2, or (at your option) | 12 | ;; the Free Software Foundation; either version 2, or (at your option) |
| @@ -20,7 +22,11 @@ | |||
| 20 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 22 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 21 | ;; Boston, MA 02111-1307, USA. | 23 | ;; Boston, MA 02111-1307, USA. |
| 22 | 24 | ||
| 23 | ;;; Codes: | 25 | ;;; Commentary: |
| 26 | |||
| 27 | ;; Major mode for editing GNU linker (ld) scripts. | ||
| 28 | |||
| 29 | ;;; Code: | ||
| 24 | 30 | ||
| 25 | ;; Custom | 31 | ;; Custom |
| 26 | (defgroup ld-script nil | 32 | (defgroup ld-script nil |
| @@ -35,7 +41,7 @@ | |||
| 35 | :group 'ld-script) | 41 | :group 'ld-script) |
| 36 | 42 | ||
| 37 | ;; Syntax rules | 43 | ;; Syntax rules |
| 38 | (defvar ld-script-mode-syntax-table | 44 | (defvar ld-script-mode-syntax-table |
| 39 | (let ((st (make-syntax-table))) | 45 | (let ((st (make-syntax-table))) |
| 40 | (modify-syntax-entry ?\ "-" st) | 46 | (modify-syntax-entry ?\ "-" st) |
| 41 | (modify-syntax-entry ?{ "(}" st) | 47 | (modify-syntax-entry ?{ "(}" st) |
| @@ -67,12 +73,12 @@ | |||
| 67 | "Syntax table used while in `ld-script-mode'.") | 73 | "Syntax table used while in `ld-script-mode'.") |
| 68 | 74 | ||
| 69 | ;; Font lock keywords | 75 | ;; Font lock keywords |
| 70 | (defvar ld-script-keywords | 76 | (defvar ld-script-keywords |
| 71 | '("ENTRY" "INCLUDE" "INPUT" "GROUP" | 77 | '("ENTRY" "INCLUDE" "INPUT" "GROUP" |
| 72 | "OUTPUT" "SEARCH_DIR" "STARTUP" | 78 | "OUTPUT" "SEARCH_DIR" "STARTUP" |
| 73 | "OUTPUT_FORMAT" "TARGET" | 79 | "OUTPUT_FORMAT" "TARGET" |
| 74 | "ASSERT" "EXTERN" "FORCE_COMMON_ALLOCATION" "NOCROSSREFS" "OUTPUT_ARCH" | 80 | "ASSERT" "EXTERN" "FORCE_COMMON_ALLOCATION" "NOCROSSREFS" "OUTPUT_ARCH" |
| 75 | "PROVIDE" | 81 | "PROVIDE" |
| 76 | "SECTIONS" "SORT" "COMMON" "KEEP" | 82 | "SECTIONS" "SORT" "COMMON" "KEEP" |
| 77 | "BYTE" "SHORT" "LONG" "QUAD" "SQAD" | 83 | "BYTE" "SHORT" "LONG" "QUAD" "SQAD" |
| 78 | "FILL" | 84 | "FILL" |
| @@ -86,8 +92,8 @@ | |||
| 86 | "VERSION") | 92 | "VERSION") |
| 87 | "Keywords used of GNU ld script.") | 93 | "Keywords used of GNU ld script.") |
| 88 | 94 | ||
| 89 | (defvar ld-script-builtins | 95 | (defvar ld-script-builtins |
| 90 | '("ABSOLUTE" | 96 | '("ABSOLUTE" |
| 91 | "ADDR" | 97 | "ADDR" |
| 92 | "ALIGN" | 98 | "ALIGN" |
| 93 | "BLOCK" | 99 | "BLOCK" |
| @@ -110,7 +116,7 @@ | |||
| 110 | ("##\\|#[^#\n]+$" . font-lock-preprocessor-face) | 116 | ("##\\|#[^#\n]+$" . font-lock-preprocessor-face) |
| 111 | ("\\W\\(\\.\\)\\W" 1 ld-script-location-counter-face) | 117 | ("\\W\\(\\.\\)\\W" 1 ld-script-location-counter-face) |
| 112 | ) | 118 | ) |
| 113 | "Default font-lock-keywords for `ld-script mode'.") | 119 | "Default font-lock-keywords for `ld-script-mode'.") |
| 114 | 120 | ||
| 115 | ;;;###autoload | 121 | ;;;###autoload |
| 116 | (add-to-list 'auto-mode-alist '("\\.lds" . ld-script-mode)) | 122 | (add-to-list 'auto-mode-alist '("\\.lds" . ld-script-mode)) |
| @@ -123,5 +129,7 @@ | |||
| 123 | (set (make-local-variable 'indent-line-function) #'indent-relative) | 129 | (set (make-local-variable 'indent-line-function) #'indent-relative) |
| 124 | (set (make-local-variable 'font-lock-defaults) '(ld-script-font-lock-keywords nil))) | 130 | (set (make-local-variable 'font-lock-defaults) '(ld-script-font-lock-keywords nil))) |
| 125 | 131 | ||
| 132 | (provide 'ld-script) | ||
| 133 | |||
| 126 | ;;; arch-tag: 83280b6b-e6fc-4d00-a630-922d7aec5593 | 134 | ;;; arch-tag: 83280b6b-e6fc-4d00-a630-922d7aec5593 |
| 127 | ;;; ld-script.el ends here | 135 | ;;; ld-script.el ends here |