|
Class: NaiveSyntaxHighlighterForLisp (in Tools)
Object
|
+--Scanner
|
+--Parser
|
+--AbstractSyntaxHighlighter
|
+--Tools::NaiveSyntaxHighlighter
|
+--Tools::NaiveSyntaxHighlighterForLisp
- Package:
- stx:libtool
- Category:
- Interface-Tools-File-Syntax
- Version:
- rev:
1.10
date: 2024/04/28 08:41:47
- user: cg
- file: Tools__NaiveSyntaxHighlighterForLisp.st directory: libtool
- module: stx stc-classLibrary: libtool
a quick and dirty hack;
not really (yet) aware of what it is doing.
All highlighting is based on hardcoded heuristics;
a bad implementation, but better than nothing...
formatFileContents:elementsInto:format (recolor) a file's contents.
Return the text containing font changes and color information.
constants
-
controlFlowKeywords
-
flush cache when changing:
ControlFlowKeywords := nil
-
knownFunctionKeywords
-
flush cache when changing:
KnownFunctionKeywords := nil
-
syntaxDefiningKeywords
-
flush cache when changing:
SyntaxDefiningKeywords := nil
api highlighting
-
formatFileContents: aString elementsInto: elementsCollection
-
format (recolor) a file's contents.
Return the text containing font changes and color information.
initialization
-
initialize
-
must be called if redefined
private-scanning
-
scanAtom
-
attn: stops on one of those special chars,
-
scanEOLComment
-
-
scanHashBarComment
-
-
scanNumber
-
CScanner notNil
-
scanStep
-
actually a constant: nil.
-
scanString
-
unterminated string
|