aboutsummaryrefslogtreecommitdiffstats
path: root/utils/vim
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-08-11 19:14:20 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-08-11 19:14:20 +0000
commitdac35491910c7524eba5a81bacda4a53dd31f110 (patch)
tree37644a7afc919678192d668146ef701694b5dc8b /utils/vim
parente0db815ccf108bec3182de77d045131ebed101d6 (diff)
downloadexternal_llvm-dac35491910c7524eba5a81bacda4a53dd31f110.zip
external_llvm-dac35491910c7524eba5a81bacda4a53dd31f110.tar.gz
external_llvm-dac35491910c7524eba5a81bacda4a53dd31f110.tar.bz2
Added keyword `include', and a FIXME for hex and binary constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/vim')
-rw-r--r--utils/vim/tablegen.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/vim/tablegen.vim b/utils/vim/tablegen.vim
index 41a0c59..7ab8e2c 100644
--- a/utils/vim/tablegen.vim
+++ b/utils/vim/tablegen.vim
@@ -11,8 +11,9 @@ endif
syn case match
-syn keyword tgKeyword def let in code dag field
+syn keyword tgKeyword def let in code dag field include
syn keyword tgType class int string list bit bits
+" FIXME: this does not handle hex (0x...) or binary (0b...) constants
syn match tgNumber /\<\d\+\>/
syn match tgNumber /\<\d\+\.\d*\>/
syn match tgComment /\/\/.*$/