llvm.org GIT mirror llvm / 8ad51f5
Update to add new keywords git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5846 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
11 ;; Description:
22 ;; Major mode for the LLVM assembler language.
33 ;; Updated:
4 ;; Oct 8, 2002
4 ;; Apr 22, 2003
55 ;; Code:
66
77 ;; Create mode-specific tables.
2727 ;; Hex constants
2828 '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face)
2929 ;; Keywords
30 '("begin\\|end\\|true\\|false\\|declare\\|global\\|constant\\|const\\|internal\\|linkonce\\|appending\\|uninitialized\\|implementation\\|\\.\\.\\.\\|null\\|to\\|except\\|not" . font-lock-keyword-face)
30 '("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)
3131 ;; Types
3232 '("void\\|bool\\|sbyte\\|ubyte\\|u?short\\|u?int\\|u?long\\|float\\|double\\|type\\|label\\|opaque" . font-lock-type-face)
3333 ;; Arithmetic and Logical Operators
0 " Vim syntax file
11 " Language: llvm
2 " Maintainer: Nick Hildenbrandt
3 " Updated: 2002-10-07
2 " Maintainer: ?
3 " Updated: 2003-04-22
44
55 if version < 600
66 syntax clear
2727 syn keyword llvmStatement declare global constant const
2828 syn keyword llvmStatement internal uninitialized external implementation
2929 syn keyword llvmStatement linkonce appending
30 syn keyword llvmStatement null to except not
30 syn keyword llvmStatement null to except not target endian pointersize
31 syn keyword llvmStatement big little
3132
3233 "syn match llvmFunction /%[a-zA-Z\$._\-][a-zA-Z\$._\-0-9]*/
3334 syn match llvmNumber /\<\d\+\>/