t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

ignore tags within strings #975

Open jeffreysbrother opened 6 years ago

jeffreysbrother commented 6 years ago

The "tag" object ought to ignore tags within strings.

<div class="container">
    <div class="xyz">Yes</div>
    <div class="zyx">No</div>
    <?php if($variableName != 'vim') {
        echo '<div class="string">Hi there</div>';
    } ?>
</div>

If the cursor is placed on the opening div with the class of "container", and we run vat, vim-mode-plus assumes that the closing tag of "container" is the closing tag within the string echoed out by PHP. It would be awesome if all tags within strings were ignored (unless perhaps the user executes vat or a similar command within a string).

vim-mode-plus: 1.20.0 Atom: 1.22.1 Electron: 1.6.15 Chrome: 56.0.2924.87 Node: 7.4.0 MacOS: 10.12.6