[llvm-commits] [llvm] r93056 - /llvm/trunk/utils/vim/llvm.vim
Dan Gohman
gohman at apple.com
Sat Jan 9 09:22:48 PST 2010
Author: djg
Date: Sat Jan 9 11:22:48 2010
New Revision: 93056
URL: http://llvm.org/viewvc/llvm-project?rev=93056&view=rev
Log:
Tighten up the vim LLVM IR syntax highlighting regex for labels, and add a
highlighting rule for identifiers.
Modified:
llvm/trunk/utils/vim/llvm.vim
Modified: llvm/trunk/utils/vim/llvm.vim
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/llvm.vim?rev=93056&r1=93055&r2=93056&view=diff
==============================================================================
--- llvm/trunk/utils/vim/llvm.vim (original)
+++ llvm/trunk/utils/vim/llvm.vim Sat Jan 9 11:22:48 2010
@@ -71,7 +71,8 @@
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 @@
HiLink llvmConstant Constant
HiLink llvmSpecialComment SpecialComment
HiLink llvmError Error
+ HiLink llvmIdentifier Identifier
delcommand HiLink
endif
More information about the llvm-commits
mailing list