RustHighlighter
classin packageklyn.code.rust
public class RustHighlighter extends Object implements SyntaxHighlighter
└ RustHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for Rust backed by klyn.code.rust.RustTokenizer.

Example
import klyn.code.rust

spans = RustHighlighter().highlight("pub fn main() { println!(\"hello\"); }")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one Rust source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml