XPath Syntax hilighting - when pain persists see your local parser writer

My XPath syntax hilighting (which I thought looked fairly promising a while ago) has stalled while I worked on a couple of other things, and threatens to cause problems getting started again. There are still a number of instances where round-tripping whitespace is not 100%, and tonight adding support for querying documents with XML namespaces showed up another flaw that looks like it will be annoying to track down - the syntax hilighting fails altogether on documents of this sort (but at least now you can query them). At this stage this project has kind of stopped being fun for me, and I just want to finish it so I can get on with my life. If only I knew someone who could help me generate a parser?