What does "number of states should not exceed 16" comment in the codebase means?

Answered

Hey!

 

In this file:

https://github.com/JetBrains/intellij-community/blob/5bdbdd5ba6d18e7817ce9e8b0a470580e70161d0/xml/xml-psi-impl/src/com/intellij/lexer/_HtmlLexer.flex#L38

 

We can read this comment:

/* IMPORTANT! number of states should not exceed 16. See JspHighlightingLexer. */

 

I can't find JspHightingLexer and thus, I can't find what does it mean and what should I care of. Does someone have info on this?

 

Thanks a lot,

Xavier 

0
1 comment

Hi! This limitation is indeed important only for JspHighlightingLexer. You can safely ignore the comment, and if you need more states in your lexer, which extends this one, feel free to use them.

0

Please sign in to leave a comment.