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 (https://github.com/JetBrains/SimplePlugin)

This is my fork https://github.com/danblack/SimplePlugin

 

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

IDENT="GET"|"POST"|"FETCH"|"DELETE"

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 - https://github.com/danblack/SimplePlugin

Video shows editor highlighting - http://www.youtube.com/watch?v=GHCzVCHDYV4

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 - https://github.com/danblack/SimplePlugin/commit/41e2ccd07b5b2e165369124415e79c3b819fefe5

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

1

Please sign in to leave a comment.