Add support for undef and unreachable
authorChris Lattner <sabre@nondot.org>
Sat, 16 Oct 2004 18:24:35 +0000 (18:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Oct 2004 18:24:35 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17059 91177308-0d34-0410-b5e6-96231b3b80d8

utils/emacs/llvm-mode.el
utils/vim/llvm.vim

index 6e460ab87ca7fde86d4f9114493ab3d92ffd8ae7..959cf268a061f618fead1ced6406f2b5e4c9a910 100644 (file)
@@ -25,7 +25,7 @@
    ;; Hex constants
    '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face)
    ;; Keywords
-   '("begin\\|end\\|true\\|false\\|zeroinitializer\\|declare\\|global\\|constant\\|const\\|internal\\|linkonce\\|weak\\|appending\\|uninitialized\\|implementation\\|\\.\\.\\.\\|null\\|to\\|except\\|not\\|target\\|endian\\|little\\|big\\|pointersize\\|deplibs\\|volatile" . font-lock-keyword-face)
+   '("begin\\|end\\|true\\|false\\|zeroinitializer\\|declare\\|global\\|constant\\|const\\|internal\\|linkonce\\|weak\\|appending\\|uninitialized\\|implementation\\|\\.\\.\\.\\|null\\|undef\\|to\\|except\\|not\\|target\\|endian\\|little\\|big\\|pointersize\\|deplibs\\|volatile" . 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
@@ -33,7 +33,7 @@
    ;; Special instructions
    '("phi\\|call\\|cast\\|select\\|to\\|shl\\|shr\\|vaarg\\|vanext" . font-lock-keyword-face)
    ;; Control instructions
-   '("ret\\|br\\|switch\\|invoke\\|unwind" . font-lock-keyword-face)
+   '("ret\\|br\\|switch\\|invoke\\|unwind\\|unreachable" . font-lock-keyword-face)
    ;; Memory operators
    '("malloc\\|alloca\\|free\\|load\\|store\\|getelementptr" . font-lock-keyword-face)
    )
index 2f3c859bac289b62e253d907534f05e25dc8e973..8088600fdff5a28a9a8fdc378c657ecdfef9ff68 100644 (file)
@@ -21,14 +21,14 @@ syn keyword llvmStatement and or xor
 syn keyword llvmStatement setne seteq setlt setgt setle setge
 
 syn keyword llvmStatement phi call cast to select shl shr vaarg vanext
-syn keyword llvmStatement ret br switch invoke unwind
+syn keyword llvmStatement ret br switch invoke unwind unreachable
 syn keyword llvmStatement malloc alloca free load store getelementptr
 
 syn keyword llvmStatement begin end true false zeroinitializer
 syn keyword llvmStatement declare global constant const
 syn keyword llvmStatement internal uninitialized external implementation
 syn keyword llvmStatement linkonce weak appending
-syn keyword llvmStatement null to except target endian pointersize deplibs
+syn keyword llvmStatement undef null to except target endian pointersize deplibs
 syn keyword llvmStatement big little volatile
 
 "syn match llvmFunction /%[a-zA-Z\$._\-][a-zA-Z\$._\-0-9]*/