diff -r e4711ae3529f -r f697f2772ec9 mylisp-obsolete/iar4-linker-config-mode.el --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mylisp-obsolete/iar4-linker-config-mode.el Fri Jan 01 20:32:49 2021 +0200 @@ -0,0 +1,53 @@ +;;; iar-linker-config-mode.el --- major mode for highlighting IAR Embedded Workbench 4.x linker scripts + +;; Copyright (C) 2009, 2010 by Oleksandr Gavenko + +;; You can do anything with this file without any warranty. + +;; Author: Oleksandr Gavenko +;; Maintainer: Oleksandr Gavenko +;; Created: 2009-11-04 +;; Version: 0.1 +;; Keywords: languages + +;;; Commentary: +;; +;; Very pure highlighting and not all available syntax. + +;;; Code: + +;;;###autoload +(define-generic-mode iar4-linker-config-mode + '("// " ("/*" . "*/")) + nil + '( + ("^\\(-c\\)\\([_a-zA-Z]+\\)" + (1 font-lock-keyword-face) + (2 font-lock-variable-name-face) ) + ("^\\(-D\\)\\([_a-zA-Z0-9]+\\)=\\(\\(0x\\)?[0-9a-fA-F]+\\|.[0-9]+\\)" + (1 font-lock-keyword-face) + (2 font-lock-variable-name-face) + (3 font-lock-constant-face) ) + ("^\\(-Q\\)\\([_a-zA-Z]+\\)=\\([_a-zA-Z]+\\)" + (1 font-lock-keyword-face) + (2 font-lock-variable-name-face) + (3 font-lock-variable-name-face) ) + ("^\\(-Z\\|-P\\|-b\\)(\\([_a-zA-Z]+\\))\\([_a-zA-Z]+\\)=" + (1 font-lock-keyword-face) + (2 font-lock-variable-name-face) + (3 font-lock-variable-name-face) ) + ("^\\(-Z\\|-P\\|-b\\)(\\([_a-zA-Z]+\\))\\([_a-zA-Z]+\\)\\+\\([_a-zA-Z]+\\)=" + (1 font-lock-keyword-face) + (2 font-lock-variable-name-face) + (3 font-lock-variable-name-face) + (4 font-lock-variable-name-face) ) + ) + (list "\\.\\(xcl\\)\\'") + (list + (lambda () (setq comment-start "// " comment-end "")) + ) + "Generic mode for iar linker config files.") + +(provide 'iar4-linker-config-mode) + +;;; iar4-linker-config-mode.el ends here