rosshadden / sublime-xpath

Sublime Text plugin for easier cursor navigation of XML and HTML files using XPath 1.0.
44 stars 10 forks source link

syntax improvements #36

Closed keith-hall closed 6 years ago

keith-hall commented 6 years ago

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)