Top Fields Constructors Methods
io.github.kusoroadeolu.veneer

public Class LuaSyntaxHighlighter

extends AbstractSyntaxHighlighter
Class Inheritance
Imports
io.github.kusoroadeolu.clique.Clique, io.github.kusoroadeolu.clique.style.StyleBuilder, io.github.kusoroadeolu.veneer.theme.SyntaxTheme, io.github.kusoroadeolu.veneer.utils.Utils, org.antlr.v4.runtime.BufferedTokenStream, .CharStreams, .Token, io.github.kusoroadeolu.veneer.LuaLexer

Field Summary

Inherited from io.github.kusoroadeolu.veneer.AbstractSyntaxHighlighter:
showLineNumberstheme

Constructor Summary

AccessConstructor and Description
public
public
LuaSyntaxHighlighter(boolean showLineNumbers)

public
public
LuaSyntaxHighlighter(SyntaxTheme theme, boolean showLineNumbers)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public void
public void
public String
highlight(String s)

Implements io.github.kusoroadeolu.veneer.SyntaxHighlighter.highlight.

Highlights the given Java source string.

pack-priv boolean
pack-priv boolean
isEOF(Token token)

pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean

Constructor Detail

LuaSyntaxHighlighterback to summary
public LuaSyntaxHighlighter()
LuaSyntaxHighlighterback to summary
public LuaSyntaxHighlighter(boolean showLineNumbers)
LuaSyntaxHighlighterback to summary
public LuaSyntaxHighlighter(SyntaxTheme theme)
LuaSyntaxHighlighterback to summary
public LuaSyntaxHighlighter(SyntaxTheme theme, boolean showLineNumbers)

Method Detail

applyStylesback to summary
pack-priv void applyStyles(Token token, StyleBuilder sb)
applyWithLinesback to summary
public void applyWithLines(StyleBuilder sb, BufferedTokenStream tokenStream)
applyWithoutLinesback to summary
public void applyWithoutLines(StyleBuilder sb, BufferedTokenStream tokenStream)
highlightback to summary
public String highlight(String s)

Implements io.github.kusoroadeolu.veneer.SyntaxHighlighter.highlight.

Doc from io.github.kusoroadeolu.veneer.SyntaxHighlighter.highlight.

Highlights the given Java source string.

Annotations
@Override
isCommentback to summary
pack-priv boolean isComment(Token token)
isEOFback to summary
pack-priv boolean isEOF(Token token)
isKeywordback to summary
pack-priv boolean isKeyword(Token token)
isMultiLineTokenback to summary
pack-priv boolean isMultiLineToken(Token token)
isNumberLiteralback to summary
pack-priv boolean isNumberLiteral(Token token)
isStringLiteralback to summary
pack-priv boolean isStringLiteral(Token token)