Update to add new keywords

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-04-22 19:31:55 +00:00
parent 43a9994c01
commit 8ad51f5965
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@
;; Description: ;; Description:
;; Major mode for the LLVM assembler language. ;; Major mode for the LLVM assembler language.
;; Updated: ;; Updated:
;; Oct 8, 2002 ;; Apr 22, 2003
;; Code: ;; Code:
;; Create mode-specific tables. ;; Create mode-specific tables.
@ -28,7 +28,7 @@
;; Hex constants ;; Hex constants
'("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face) '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face)
;; Keywords ;; 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 ;; Types
'("void\\|bool\\|sbyte\\|ubyte\\|u?short\\|u?int\\|u?long\\|float\\|double\\|type\\|label\\|opaque" . font-lock-type-face) '("void\\|bool\\|sbyte\\|ubyte\\|u?short\\|u?int\\|u?long\\|float\\|double\\|type\\|label\\|opaque" . font-lock-type-face)
;; Arithmetic and Logical Operators ;; Arithmetic and Logical Operators

View File

@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: llvm " Language: llvm
" Maintainer: Nick Hildenbrandt <hldnbrnd@uiuc.edu> " Maintainer: ?
" Updated: 2002-10-07 " Updated: 2003-04-22
if version < 600 if version < 600
syntax clear syntax clear
@ -28,7 +28,8 @@ syn keyword llvmStatement begin end true false
syn keyword llvmStatement declare global constant const syn keyword llvmStatement declare global constant const
syn keyword llvmStatement internal uninitialized external implementation syn keyword llvmStatement internal uninitialized external implementation
syn keyword llvmStatement linkonce appending 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 llvmFunction /%[a-zA-Z\$._\-][a-zA-Z\$._\-0-9]*/
syn match llvmNumber /\<\d\+\>/ syn match llvmNumber /\<\d\+\>/