public class JsCodeHighlighter extends Object implements NCodeHighlighter
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
builtins |
protected Set<String> |
keywords |
| Constructor and Description |
|---|
JsCodeHighlighter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushString(StringBuilder sb,
List<NText> result) |
static int |
getScore(NScorableContext context) |
String |
id() |
protected void |
initBuiltins() |
protected void |
initKeywords() |
protected List<NText> |
readIdentifier(StringReaderExt ar) |
protected List<NText> |
readNumber(StringReaderExt ar) |
protected List<NText> |
readTemplateLiteral(StringReaderExt ar) |
NText |
stringToText(String text) |
NText |
tokenToText(String text,
String nodeType) |
protected List<NText> |
tryReadRegex(StringReaderExt ar) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcodeHighlighters, of, registerCodeHighlighter, unregisterCodeHighlighterprotected void initKeywords()
protected void initBuiltins()
public String id()
id in interface NCodeHighlighterpublic static int getScore(NScorableContext context)
public NText tokenToText(String text, String nodeType)
tokenToText in interface NCodeHighlighterpublic NText stringToText(String text)
stringToText in interface NCodeHighlighterprotected List<NText> readIdentifier(StringReaderExt ar)
protected List<NText> readTemplateLiteral(StringReaderExt ar)
protected List<NText> tryReadRegex(StringReaderExt ar)
protected List<NText> readNumber(StringReaderExt ar)
protected void flushString(StringBuilder sb, List<NText> result)
Copyright © 2026 vpc open source initiative. All rights reserved.