I want to develop a plugin to highlight the custom language which based on xml.
I chose the JFlex to implement, and I copy the flex code on intellij-community.
the code below:
But it still highlight when the xml tag is different, like:
I want to throw error when the tag is different or tag is invalid， but I don't know how :)