llvm.org GIT mirror llvm / 4c554c5
Add support for undef and unreachable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17059 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2424 ;; Hex constants
2525 '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face)
2626 ;; Keywords
27 '("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)
27 '("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)
2828 ;; Types
2929 '("void\\|bool\\|sbyte\\|ubyte\\|u?short\\|u?int\\|u?long\\|float\\|double\\|type\\|label\\|opaque" . font-lock-type-face)
3030 ;; Arithmetic and Logical Operators
3232 ;; Special instructions
3333 '("phi\\|call\\|cast\\|select\\|to\\|shl\\|shr\\|vaarg\\|vanext" . font-lock-keyword-face)
3434 ;; Control instructions
35 '("ret\\|br\\|switch\\|invoke\\|unwind" . font-lock-keyword-face)
35 '("ret\\|br\\|switch\\|invoke\\|unwind\\|unreachable" . font-lock-keyword-face)
3636 ;; Memory operators
3737 '("malloc\\|alloca\\|free\\|load\\|store\\|getelementptr" . font-lock-keyword-face)
3838 )
2020 syn keyword llvmStatement setne seteq setlt setgt setle setge
2121
2222 syn keyword llvmStatement phi call cast to select shl shr vaarg vanext
23 syn keyword llvmStatement ret br switch invoke unwind
23 syn keyword llvmStatement ret br switch invoke unwind unreachable
2424 syn keyword llvmStatement malloc alloca free load store getelementptr
2525
2626 syn keyword llvmStatement begin end true false zeroinitializer
2727 syn keyword llvmStatement declare global constant const
2828 syn keyword llvmStatement internal uninitialized external implementation
2929 syn keyword llvmStatement linkonce weak appending
30 syn keyword llvmStatement null to except target endian pointersize deplibs
30 syn keyword llvmStatement undef null to except target endian pointersize deplibs
3131 syn keyword llvmStatement big little volatile
3232
3333 "syn match llvmFunction /%[a-zA-Z\$._\-][a-zA-Z\$._\-0-9]*/