Skip to content

Commit ab96ba2

Browse files
committedAug 13, 2021
Support global api syntax
1 parent 4dd559c commit ab96ba2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎syntax/patch/javascript.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ let s:basic_reactive = 'reactive readonly isProxy isReactive isReadonly toRaw ma
6868
let s:refs = 'ref unref toRef toRefs isRef customRef shallowRef triggerRef'
6969
let s:computed_and_watch = 'computed watchEffect watchPostEffect watchSyncEffect watch'
7070
let s:composition = 'setup onBeforeMount onMounted onBeforeUpdate onUpdated onBeforeUnmount onUnmounted onErrorCaptured onRenderTracked onRenderTriggered onActivated onDeactivated getCurrentInstance InjectionKey provide inject'
71-
let s:vue3_keywords = s:basic_reactive.' '.s:refs.' '.s:computed_and_watch.' '.s:composition
71+
let s:global = 'createApp h defineComponent defineAsyncComponent defineCustomElement resolveComponent resolveDynamicComponent resolveDirective withDirectives createRenderer nextTick mergeProps useCssModule'
72+
let s:vue3_keywords = join([s:basic_reactive, s:refs, s:computed_and_watch, s:composition, s:global], ' ')
7273

7374
let s:vue3_keywords_regexp = '\v<('
7475
\.join(split(s:vue3_keywords, ' '), '|')

0 commit comments

Comments
 (0)