[llvm] bcb34a5 - [Utils][vim] Highlight `poison` keyword
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 19 19:09:16 PDT 2021
Author: Senran Zhang
Date: 2021-03-19T19:09:11-07:00
New Revision: bcb34a538729f7c5b49aff9535196e239495db85
URL: https://github.com/llvm/llvm-project/commit/bcb34a538729f7c5b49aff9535196e239495db85
DIFF: https://github.com/llvm/llvm-project/commit/bcb34a538729f7c5b49aff9535196e239495db85.diff
LOG: [Utils][vim] Highlight `poison` keyword
Reviewed By: awarzynski, MaskRay
Differential Revision: https://reviews.llvm.org/D98927
Added:
Modified:
llvm/utils/vim/syntax/llvm.vim
Removed:
################################################################################
diff --git a/llvm/utils/vim/syntax/llvm.vim b/llvm/utils/vim/syntax/llvm.vim
index 48d3daf581ca..70918ffd160c 100644
--- a/llvm/utils/vim/syntax/llvm.vim
+++ b/llvm/utils/vim/syntax/llvm.vim
@@ -211,7 +211,7 @@ syn match llvmNumber /-\?\<\d\+\>/
syn match llvmFloat /-\?\<\d\+\.\d*\(e[+-]\d\+\)\?\>/
syn match llvmFloat /\<0x\x\+\>/
syn keyword llvmBoolean true false
-syn keyword llvmConstant zeroinitializer undef null none
+syn keyword llvmConstant zeroinitializer undef null none poison
syn match llvmComment /;.*$/
syn region llvmString start=/"/ skip=/\\"/ end=/"/
syn match llvmLabel /[-a-zA-Z$._][-a-zA-Z$._0-9]*:/
More information about the llvm-commits
mailing list