[llvm] 594febf - [Utils] Add missing freeze and poison keyword highlights
Juneyoung Lee via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 13 17:21:42 PDT 2021
Author: Juneyoung Lee
Date: 2021-06-14T09:21:26+09:00
New Revision: 594febf05b41a09409cf3145c6fa7635e9957334
URL: https://github.com/llvm/llvm-project/commit/594febf05b41a09409cf3145c6fa7635e9957334
DIFF: https://github.com/llvm/llvm-project/commit/594febf05b41a09409cf3145c6fa7635e9957334.diff
LOG: [Utils] Add missing freeze and poison keyword highlights
This patch adds missing keyword highlights for freeze and poison
Reviewed By: MaskRay, porglezomp
Differential Revision: https://reviews.llvm.org/D104017
Added:
Modified:
llvm/utils/vim/syntax/llvm.vim
llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
Removed:
################################################################################
diff --git a/llvm/utils/vim/syntax/llvm.vim b/llvm/utils/vim/syntax/llvm.vim
index 00f5413bb8ee6..755a7e8a95bc4 100644
--- a/llvm/utils/vim/syntax/llvm.vim
+++ b/llvm/utils/vim/syntax/llvm.vim
@@ -26,7 +26,7 @@ syn keyword llvmStatement add addrspacecast alloca and arcp ashr atomicrmw
syn keyword llvmStatement bitcast br catchpad catchswitch catchret call callbr
syn keyword llvmStatement cleanuppad cleanupret cmpxchg eq exact extractelement
syn keyword llvmStatement extractvalue fadd fast fcmp fdiv fence fmul fpext
-syn keyword llvmStatement fptosi fptoui fptrunc free frem fsub fneg getelementptr
+syn keyword llvmStatement fptosi fptoui fptrunc free freeze frem fsub fneg getelementptr
syn keyword llvmStatement icmp inbounds indirectbr insertelement insertvalue
syn keyword llvmStatement inttoptr invoke landingpad load lshr malloc max min
syn keyword llvmStatement mul nand ne ninf nnan nsw nsz nuw oeq oge ogt ole
diff --git a/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml b/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
index 18667303ab140..127f5d9867a09 100644
--- a/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
+++ b/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
@@ -67,6 +67,7 @@ patterns:
\\bfptrunc\\b|\
\\bfree\\b|\
\\bfrem\\b|\
+ \\bfreeze\\b|\
\\bfsub\\b|\
\\bfneg\\b|\
\\bgetelementptr\\b|\
@@ -335,6 +336,7 @@ patterns:
\\bnull\\b|\
\\bzeroinitializer\\b|\
\\bundef\\b|\
+ \\bpoison\\b|\
\\bnull\\b|\
\\bnone\\b"
name: constant.language
More information about the llvm-commits
mailing list