Closed rhdunn closed 8 years ago
The same thing happens for text nodes. For example:
<p>Hello</p>
Double clicking Hello
only selects a single character.
Double clicking as well as using ctrl-w (select word) relies on the elements in internal AST being represented as separate tokens. Currently all of the elements that you mentioned are all having each character treated as a separate token. I'll consider changing the lexical analysis change to see if it's possible to merge/group them.
If I have an XML fragment such as:
Double clicking on
basic
,json
andtype
select the word as expected, but double clicking onobject
(i.e. the string content within the attribute) only selects a single character, where it should select the word.NOTE: Given something like:
let $msg := "Hello World";
Double clicking inside that string selects the word as expected (i.e.
Hello
orWorld
in this example).