This PR improves the syntax highlighting definition for XPath 1.0 by conforming more closely to the official scope naming guidelines. This means that it no longer enforces that brackets/parens would look like comments. If users desire this behavior back, they can easily customize their color scheme.
I've also added highlighting for comments from the XPath 2.0 spec, because it makes the syntax tests much nicer to look at, and could help people that generally work with an XPath 2.0 engine but write XPath 1.0 compatible queries that they want to test in ST. (i.e. a future change could strip these comments out before passing the query to the lxml xpath engine)
This PR improves the syntax highlighting definition for XPath 1.0 by conforming more closely to the official scope naming guidelines. This means that it no longer enforces that brackets/parens would look like comments. If users desire this behavior back, they can easily customize their color scheme.
I've also added highlighting for comments from the XPath 2.0 spec, because it makes the syntax tests much nicer to look at, and could help people that generally work with an XPath 2.0 engine but write XPath 1.0 compatible queries that they want to test in ST. (i.e. a future change could strip these comments out before passing the query to the lxml xpath engine)