-;; Author: Misha Brukman <brukman@cs.uiuc.edu>
-;; Description:
-;; Major mode for the LLVM assembler language.
-;; Updated:
-;; Apr 22, 2003
-;; Code:
+;; Maintainer: The LLVM team, http://llvm.org/
+;; Description: Major mode for the LLVM assembler language.
+;; Updated: 2007-09-19
'("\"[^\"]+\"" . font-lock-string-face)
;; Unnamed variable slots
'("%[-]?[0-9]+" . font-lock-variable-name-face)
'("\"[^\"]+\"" . font-lock-string-face)
;; Unnamed variable slots
'("%[-]?[0-9]+" . font-lock-variable-name-face)
- '("begin\\|end\\|true\\|false\\|declare\\|global\\|constant\\|const\\|internal\\|linkonce\\|appending\\|uninitialized\\|implementation\\|\\.\\.\\.\\|null\\|to\\|except\\|not\\|target\\|endian\\|little\\|big\\|pointersize" . font-lock-keyword-face)
- ;; Types
- '("void\\|bool\\|sbyte\\|ubyte\\|u?short\\|u?int\\|u?long\\|float\\|double\\|type\\|label\\|opaque" . font-lock-type-face)
+ '("\\bbegin\\b\\|\\bend\\b\\|\\btrue\\b\\|\\bfalse\\b\\|\\bzeroinitializer\\b\\|\\bdeclare\\b\\|\\bdefine\\b\\|\\bglobal\\b\\|\\bconstant\\b\\|\\bconst\\b\\|\\binternal\\b\\|\\blinkonce\\b\\|\\bweak\\b\\|\\bappending\\b\\|\\buninitialized\\b\\|\\bimplementation\\b\\|\\b\\.\\.\\.\\b\\|\\bnull\\b\\|\\bundef\\b\\|\\bto\\b\\|\\bexcept\\b\\|\\bnot\\b\\|\\btarget\\b\\|\\bendian\\b\\|\\blittle\\b\\|\\bbig\\b\\|\\bpointersize\\b\\|\\bdeplibs\\b\\|\\bvolatile\\b\\|\\bfastcc\\b\\|\\bcoldcc\\b\\|\\bcc\\b" . font-lock-keyword-face)
- mode-name "LLVM" ; This name goes into the modeline.
- font-lock-defaults `(llvm-font-lock-keywords))
+ mode-name "LLVM" ; This name goes into the modeline.
+ font-lock-defaults `(llvm-font-lock-keywords))
(run-hooks 'llvm-mode-hook)) ; Finally, this permits the user to
; customize the mode with a hook.
;; Associate .ll files with llvm-mode
(setq auto-mode-alist
(run-hooks 'llvm-mode-hook)) ; Finally, this permits the user to
; customize the mode with a hook.
;; Associate .ll files with llvm-mode
(setq auto-mode-alist