Skip to content

Commit 1e88689

Browse files
committed
vim-utils: highlight the sil call instructions in a bolder color.
Because often these are the most important instructions in a function.
1 parent e70b38b commit 1e88689

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/vim/syntax/sil.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ syn keyword swiftKeyword load load_unowned store assign mark_uninitialized mark_
3131
syn keyword swiftKeyword strong_retain strong_release strong_retain_unowned ref_to_unowned unowned_to_ref unowned_retain unowned_release load_weak store_unowned store_weak fix_lifetime autorelease_value is_unique is_unique_or_pinned strong_pin strong_unpin skipwhite
3232
syn keyword swiftKeyword function_ref integer_literal float_literal string_literal global_addr skipwhite
3333
syn keyword swiftKeyword class_method super_method witness_method dynamic_method skipwhite
34-
syn keyword swiftKeyword apply try_apply partial_apply builtin skipwhite
34+
syn keyword swiftKeyword partial_apply builtin skipwhite
35+
syn keyword swiftApplyKeyword apply try_apply skipwhite
3536
syn keyword swiftKeyword metatype value_metatype existential_metatype skipwhite
3637
syn keyword swiftKeyword retain_value release_value tuple tuple_extract tuple_element_addr struct struct_extract struct_element_addr ref_element_addr skipwhite
3738
syn keyword swiftKeyword init_enum_data_addr unchecked_enum_data unchecked_take_enum_data_addr inject_enum_addr skipwhite
@@ -66,6 +67,7 @@ syn match swiftImplicitVarName /\$\<[A-Za-z_0-9]\+\>/
6667
hi def link swiftImport Include
6768
hi def link swiftImportModule Title
6869
hi def link swiftImportComponent Identifier
70+
hi def link swiftApplyKeyword ModeMsg
6971
hi def link swiftKeyword Statement
7072
hi def link swiftTypeDefinition Define
7173
hi def link swiftTypeName Type

0 commit comments

Comments
 (0)