Skip to content

Commit a11ba5b

Browse files
garyoAdamNiederer
authored andcommitted
Add support for script setup, new in Vue 3
1 parent 031edd1 commit a11ba5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vue-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,14 @@ add an entry with a root mode of `js-mode' and dedicated mode of `js2-mode'"
139139
"\\(?:\\s-+\\w+=[\"'].*?[\"']\\)" ; Any optional key-value pairs like type="foo/bar"
140140
"\\|\\(?:\\s-+scoped\\)" ; The optional "scoped" attribute
141141
"\\|\\(?:\\s-+module\\)" ; The optional "module" attribute
142+
"\\|\\(?:\\s-+setup\\)" ; The optional "setup" attribute
142143
"\\)*"
143144
"\\(?:\\s-+lang=[\"']%s[\"']\\)" ; The language specifier (required)
144145
"\\(?:" ; Zero of more of...
145146
"\\(?:\\s-+\\w+=[\"'].*?[\"']\\)" ; Any optional key-value pairs like type="foo/bar"
146147
"\\|\\(?:\\s-+scoped\\)" ; The optional "scoped" attribute
147148
"\\|\\(?:\\s-+module\\)" ; The optional "module" attribute
149+
"\\|\\(?:\\s-+setup\\)" ; The optional "setup" attribute
148150
"\\)*"
149151
" *>\n") ; The end of the tag
150152
"A regular expression for the starting tags of template areas with languages.

0 commit comments

Comments
 (0)