diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-09 17:22:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-09 17:22:48 +0000 |
commit | 7a523dde57cc4364ec314b34c3b429a99935b275 (patch) | |
tree | 607b5fd2d046889002a6f9a9b2c0797138a870ac /utils/vim | |
parent | acb75a9d707a3d0d1498f4642c14c3afa67948d7 (diff) |
Tighten up the vim LLVM IR syntax highlighting regex for labels, and add a
highlighting rule for identifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/vim')
-rw-r--r-- | utils/vim/llvm.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/vim/llvm.vim b/utils/vim/llvm.vim index 451013ee66..6e4a207b68 100644 --- a/utils/vim/llvm.vim +++ b/utils/vim/llvm.vim @@ -71,7 +71,8 @@ syn keyword llvmBoolean true false syn keyword llvmConstant zeroinitializer undef null syn match llvmComment /;.*$/ syn region llvmString start=/"/ skip=/\\"/ end=/"/ -syn match llvmLabel /[\-a-zA-Z\$._0-9]*:/ +syn match llvmLabel /[-a-zA-Z$._][-a-zA-Z$._0-9]*:/ +syn match llvmIdentifier /[%@][-a-zA-Z$._][-a-zA-Z$._0-9]*/ " Syntax-highlight dejagnu test commands. syn match llvmSpecialComment /;\s*RUN:.*$/ @@ -101,6 +102,7 @@ if version >= 508 || !exists("did_c_syn_inits") HiLink llvmConstant Constant HiLink llvmSpecialComment SpecialComment HiLink llvmError Error + HiLink llvmIdentifier Identifier delcommand HiLink endif |