On 21/11/11 00:47, Bram Moolenaar wrote:
Detrith wrote:
If I use "vat" with the cursor on<list> it selects the "root" element
instead of "list". The same goes for "it".
It selects the contents of "root" and not the contents of "list" (as
expected). I guess the problem is that the parent element's name is a
substring of the child's name.
<root>
<list>
<list-item>
<p>text</p>
</list-item>
</list>
</root>
I wonder if a dash inside a tag name is actually valid. In XML perhaps?
Any other characters that should be considered part of the tag name?
For XML 1.1, see items [4] and [4a] at
http://www.w3.org/TR/xml11/#NT-NameStartChar (any Name may be a tag
name.) Dashes are allowed, except as the first character.
Best regards,
Tony.
--
Infancy, n.:
The period of our lives when, according to Wordsworth, "Heaven
lies about us." The world begins lying about us pretty soon
afterward.
-- Ambrose Bierce
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php