@@ -22,10 +22,10 @@ syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>'
22
22
\ containedin= @j avascript display
23
23
highlight link javaScriptNumber Constant
24
24
25
- " Vue keywords
25
+ " Check if Vue keywords syntax are enabled
26
26
if ! s: keyword | finish | endif
27
27
28
- let s: vue_keywords = ' name parent functional delimiters comments components directives filters extends mixins inheritAttrs model props propsData data computed watch methods template render renderError inject provide beforeCreate created beforeMount mounted beforeUpdate updated activated deactivated beforeDestroy destroyed setup beforeUnmount unmounted errorCaptured renderTracked renderTriggered'
28
+ let s: vue_keywords = ' name parent functional delimiters comments components directives filters extends mixins inheritAttrs model props propsData data methods template render renderError inject provide beforeCreate created beforeMount mounted beforeUpdate updated activated deactivated beforeDestroy destroyed beforeUnmount unmounted errorCaptured renderTracked renderTriggered'
29
29
30
30
let s: indent = &sw * (1 + s: enable_initial_indent )
31
31
let s: keywords_regexp = ' \v^\s{' .s: indent .' }(async )?<('
@@ -63,10 +63,13 @@ execute 'syntax match vueObjectFuncKey display /'
63
63
\. s: match_option
64
64
\. ' nextgroup=jsFuncArgs'
65
65
66
- let s: vue3_keywords = ' ref reactive toRefs watch computed' .
67
- \' onBeforeMount onMounted onBeforeUpdate onUpdated onBeforeUnmount'.
68
- \' onUnmounted onErrorCaptured onRenderTracked onRenderTriggered'.
69
- \' getCurrentInstance'
66
+ " https://v3.vuejs.org/api/
67
+ let s: basic_reactive = ' reactive readonly isProxy isReactive isReadonly toRaw markRaw shallowReactive shallowReadonly'
68
+ let s: refs = ' ref unref toRef toRefs isRef customRef shallowRef triggerRef'
69
+ let s: computed_and_watch = ' computed watchEffect watchPostEffect watchSyncEffect watch'
70
+ 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
72
+
70
73
let s: vue3_keywords_regexp = ' \v<('
71
74
\. join (split (s: vue3_keywords , ' ' ), ' |' )
72
75
\. ' )\ze'
0 commit comments