Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion syntax/vue.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ unlet! b:current_syntax
""
" Get the pattern for a HTML {name} attribute with {value}.
function! s:attr(name, value)
return a:name . '=\("\|''\)[^\1]*' . a:value . '[^\1]*\1'
return a:name . '=\("\|''\)\?[^\1]*' . a:value . '[^\1]*\1'
endfunction

function! s:should_register(language, start_pattern)
Expand Down Expand Up @@ -47,6 +47,7 @@ let s:languages = [
\ {'name': 'haml', 'tag': 'template'},
\ {'name': 'typescript', 'tag': 'script', 'attr_pattern': '\%(lang=\("\|''\)[^\1]*\(ts\|typescript\)[^\1]*\1\|ts\)'},
\ {'name': 'coffee', 'tag': 'script'},
\ {'name': 'ls', 'tag': 'script'},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to add this to the PR?

\ {'name': 'stylus', 'tag': 'style'},
\ {'name': 'sass', 'tag': 'style'},
\ {'name': 'scss', 'tag': 'style'},
Expand Down