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

已回答

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

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

请先登录再写评论。