Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Highlighting: Inconsistent scope of v-else #1837

Open
3 tasks done
gaplo917 opened this issue Apr 11, 2020 · 0 comments
Open
3 tasks done

Syntax Highlighting: Inconsistent scope of v-else #1837

gaplo917 opened this issue Apr 11, 2020 · 0 comments

Comments

@gaplo917
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Mac
  • Vetur version: 0.24.0
  • VS Code version: 1.43.2
Version: 1.43.2
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:34:57.037Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0

Problem

Reproducing GIF

vue-v-else-bug

Expected: v-else should be in scope meta.directive.vue that equal to v-if, v-show, v-else-if

Reproducible Case

<template>
    <div id="app">
        <div name="a" v-if="(1 + '1' === 2) === true"></div>
        <div name="b" v-else-if="(1 + '1' === 2) === true"></div>
        <div name="c" v-else></div>
        <div name="c" v-show="true"></div>
        <ul name="d">
            <li v-for="item in items" :key="item.message">
                {{ item.message }}
            </li>
        </ul>
    </div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants