aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-21 15:37:09 +0000
committerChris Lattner <sabre@nondot.org>2003-10-21 15:37:09 +0000
commit84a6f39a764069896df61fc2b1bacf69c67fbb3f (patch)
treee9e4585d06add6002ecfaccacb13ef60d183cd8d
parent25e6e9949e99ae485568ed238d0a2595cc290882 (diff)
Syntax highlight the new operators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9328 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/emacs/llvm-mode.el2
-rw-r--r--utils/vim/llvm.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/emacs/llvm-mode.el b/utils/emacs/llvm-mode.el
index 045f745634..477f821ded 100644
--- a/utils/emacs/llvm-mode.el
+++ b/utils/emacs/llvm-mode.el
@@ -31,7 +31,7 @@
;; Arithmetic and Logical Operators
'("add\\|sub\\|mul\\|div\\|rem\\|and\\|or\\|xor\\|set\\(ne\\|eq\\|lt\\|gt\\|le\\|ge\\)" . font-lock-keyword-face)
;; Special instructions
- '("phi\\|call\\|cast\\|to\\|shl\\|shr\\|va_arg" . font-lock-keyword-face)
+ '("phi\\|call\\|cast\\|to\\|shl\\|shr\\|vaarg\\|vanext" . font-lock-keyword-face)
;; Control instructions
'("ret\\|br\\|switch\\|invoke" . font-lock-keyword-face)
;; Memory operators
diff --git a/utils/vim/llvm.vim b/utils/vim/llvm.vim
index 92971c3df6..7b426f4ac5 100644
--- a/utils/vim/llvm.vim
+++ b/utils/vim/llvm.vim
@@ -20,7 +20,7 @@ syn keyword llvmStatement add sub mul div rem
syn keyword llvmStatement and or xor
syn keyword llvmStatement setne seteq setlt setgt setle setge
-syn keyword llvmStatement phi call cast to shl shr va_arg
+syn keyword llvmStatement phi call cast to shl shr vaarg vanext
syn keyword llvmStatement ret br switch invoke
syn keyword llvmStatement malloc alloca free load store getelementptr