Vincent Lefevre writes: > There's still an issue. On the following XML file > > > text > > text > > > the part after the comment is highlighted as a comment. > And another one: > > > text > > text > > > The second text is highlighted as a comment. Right, this is a collision between the syntax rules. The following patch fixes it, though perhaps it would be better to just search for the end of the comment in the ("\\(<\\)!--" (1 "< b")) rule instead?