Skip to content

Commit 4dded2e

Browse files
committed
Add test for v-on shorthand parameter
fixes vuejs/vue-syntax-highlight#203
1 parent 40fe149 commit 4dded2e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/syntax_test_directive.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,19 @@
195195
// ^ string.quoted.double.html punctuation.definition.string.begin.html
196196
// ^^^^^^^^ meta.interpolation.vue source.js.embedded.vue meta.function-call
197197
// ^ string.quoted.double.html punctuation.definition.string.end.html
198+
199+
<a @click:outside.prevent="doThat()"></a>
200+
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.tag
201+
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute-with-value.directive.html
202+
// ^^^^^^^^^^^^^^^^^^^^^^ entity.other.attribute-name.html
203+
// ^ keyword.control.directive.vue
204+
// ^^^^^ variable.parameter.vue
205+
// ^ keyword.control.directive.vue
206+
// ^^^^^^^ variable.parameter.vue
207+
// ^ punctuation.separator.vue
208+
// ^^^^^^^ constant.other.vue
209+
// ^ punctuation.separator.key-value.html
210+
// ^^^^^^^^^^ meta.string.html
211+
// ^ string.quoted.double.html punctuation.definition.string.begin.html
212+
// ^^^^^^^^ meta.interpolation.vue source.js.embedded.vue meta.function-call
213+
// ^ string.quoted.double.html punctuation.definition.string.end.html

0 commit comments

Comments
 (0)