public class LessTokenMaker extends CSSTokenMaker
AbstractJFlexCTokenMaker.CStyleInsertBreakAction
CSS_C_STYLE_COMMENT, CSS_CHAR_LITERAL, CSS_PROPERTY, CSS_STRING, CSS_VALUE, INTERNAL_CSS_CHAR, INTERNAL_CSS_MLC, INTERNAL_CSS_PROPERTY, INTERNAL_CSS_STRING, INTERNAL_CSS_VALUE, YYEOF, YYINITIAL
offsetShift, s, start
currentToken, firstToken, previousToken
Constructor and Description |
---|
LessTokenMaker()
Constructor; overridden to enable the niceties added by Less.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getMarkOccurrencesOfTokenType(int type)
Returns whether tokens of the specified type should have "mark
occurrences" enabled for the current programming language.
|
addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getShouldIndentNextLineAfter, getTokenList, isIdentifierChar, setHighlightingLess, yybegin, yycharat, yyclose, yylength, yylex, yypushback, yyreset, yystate, yytext
createInsertBreakAction, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction
yybegin
addNullToken, addToken, addToken, createOccurrenceMarker, getLanguageIndex, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getOccurrenceMarker, isMarkupLanguage, resetTokenList, setLanguageIndex
public LessTokenMaker()
public boolean getMarkOccurrencesOfTokenType(int type)
TokenTypes.IDENTIFIER
.
Subclasses can override this method to support other token types, such
as TokenTypes.VARIABLE
.getMarkOccurrencesOfTokenType
in interface TokenMaker
getMarkOccurrencesOfTokenType
in class CSSTokenMaker
type
- The token type.