Class LessTokenMaker
- java.lang.Object
-
- org.fife.ui.rsyntaxtextarea.TokenMakerBase
-
- org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
-
- org.fife.ui.rsyntaxtextarea.AbstractJFlexCTokenMaker
-
- org.fife.ui.rsyntaxtextarea.modes.CSSTokenMaker
-
- org.fife.ui.rsyntaxtextarea.modes.LessTokenMaker
-
- All Implemented Interfaces:
TokenMaker
public class LessTokenMaker extends CSSTokenMaker
Scanner for Less files.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexCTokenMaker
AbstractJFlexCTokenMaker.CStyleInsertBreakAction
-
-
Field Summary
-
Fields inherited from class org.fife.ui.rsyntaxtextarea.modes.CSSTokenMaker
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
-
Fields inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
offsetShift, s, start
-
Fields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
currentToken, firstToken, previousToken
-
-
Constructor Summary
Constructors Constructor Description LessTokenMaker()
Constructor; overridden to enable the niceties added by Less.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getMarkOccurrencesOfTokenType(int type)
Returns whether tokens of the specified type should have "mark occurrences" enabled for the current programming language.-
Methods inherited from class org.fife.ui.rsyntaxtextarea.modes.CSSTokenMaker
addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getShouldIndentNextLineAfter, getTokenList, isIdentifierChar, setHighlightingLess, yybegin, yycharat, yyclose, yylength, yylex, yypushback, yyreset, yystate, yytext
-
Methods inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexCTokenMaker
createInsertBreakAction, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction
-
Methods inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
yybegin
-
Methods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
addNullToken, addToken, addToken, createOccurrenceMarker, getLanguageIndex, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getOccurrenceMarker, isMarkupLanguage, resetTokenList, setLanguageIndex
-
-
-
-
Method Detail
-
getMarkOccurrencesOfTokenType
public boolean getMarkOccurrencesOfTokenType(int type)
Returns whether tokens of the specified type should have "mark occurrences" enabled for the current programming language. The default implementation returns true if type isTokenTypes.IDENTIFIER
. Subclasses can override this method to support other token types, such asTokenTypes.VARIABLE
.- Specified by:
getMarkOccurrencesOfTokenType
in interfaceTokenMaker
- Overrides:
getMarkOccurrencesOfTokenType
in classCSSTokenMaker
- Parameters:
type
- The token type.- Returns:
- Whether tokens of this type should have "mark occurrences" enabled.
-
-