diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-22 19:31:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-22 19:31:55 +0000 |
commit | 8ad51f596587db8bf8227cd947d99e13a41a5e3b (patch) | |
tree | 4d345f1a0e0c69dad26f6311e33e3f1f699b3432 | |
parent | 43a9994c0164848d44527060da72985c75183a48 (diff) |
Update to add new keywords
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5846 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/emacs/llvm-mode.el | 4 | ||||
-rw-r--r-- | utils/vim/llvm.vim | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/utils/emacs/llvm-mode.el b/utils/emacs/llvm-mode.el index 1cc638d14b..f72fbcb3f9 100644 --- a/utils/emacs/llvm-mode.el +++ b/utils/emacs/llvm-mode.el @@ -2,7 +2,7 @@ ;; Description: ;; Major mode for the LLVM assembler language. ;; Updated: -;; Oct 8, 2002 +;; Apr 22, 2003 ;; Code: ;; Create mode-specific tables. @@ -28,7 +28,7 @@ ;; Hex constants '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face) ;; Keywords - '("begin\\|end\\|true\\|false\\|declare\\|global\\|constant\\|const\\|internal\\|linkonce\\|appending\\|uninitialized\\|implementation\\|\\.\\.\\.\\|null\\|to\\|except\\|not" . font-lock-keyword-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) ;; Arithmetic and Logical Operators diff --git a/utils/vim/llvm.vim b/utils/vim/llvm.vim index e7968e4f91..578aeed768 100644 --- a/utils/vim/llvm.vim +++ b/utils/vim/llvm.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: llvm -" Maintainer: Nick Hildenbrandt <hldnbrnd@uiuc.edu> -" Updated: 2002-10-07 +" Maintainer: ? +" Updated: 2003-04-22 if version < 600 syntax clear @@ -28,7 +28,8 @@ syn keyword llvmStatement begin end true false syn keyword llvmStatement declare global constant const syn keyword llvmStatement internal uninitialized external implementation syn keyword llvmStatement linkonce appending -syn keyword llvmStatement null to except not +syn keyword llvmStatement null to except not target endian pointersize +syn keyword llvmStatement big little "syn match llvmFunction /%[a-zA-Z\$._\-][a-zA-Z\$._\-0-9]*/ syn match llvmNumber /\<\d\+\>/ |