vitaLee wrote:i have question regarding tag matching.
does it make sense to you to match tags when the cursor is between tags?
<> | <div>
<> | </div>
currently div tags are matched when cursor is within either one of the opening/closing tags
<>| <div | >
It makes since, but it is not as easily done. I am kind of doing what I believe ST2 does, first I use the angle bracket matching to find a potential tag, then I see if it is a tag (opening or closing) and then I look for the pair if it is a tag. If you put a cursor in here:<string>([\w\-]+)\s*(:)\s*</string>
Do you match the bracket or the tag?
If I added something like this I might take this approach if I find a bracket match before I find a tag, don't search for tag, if I find a tag before I find a bracket match, then highlight the tags. That way in the above example, if I were inside the brackets, the tag does not get matched, but if I am outside the brackets, then the tags would get matched.
Let me play around with this.