Token's highlighter does not work with long strings

Editor does not highlight tokens which contain more than 4 characters.


I forked the JetBrains SimplePlugin github repository (

This is my fork


I created a token IDENT and defined it in Simple.flex file


IDE editor highlight strings when I write token GET or POST. But it does not highlight tokens FETCH or DELETE.

But if I insert a new line before DELETE or FETCH than editor highlights it correctly.

All code is available in my repository -

Video shows editor highlighting -

What is wrong with my code?

Help me, please. 

1 comment
Comment actions Permalink

I've got a solution to my problem

You can see it in this commit -

But I didn't have enough time to understand why this commit solves my problem


Please sign in to leave a comment.