public class VbTokenizer extends CodeTokenizer
Specialized CodeTokenizer for Visual Basic / VB.NET source files (.vb, .bas, .vbs).
Handles case-insensitive keyword and type matching, ' and REM single-line comments, and "" doubled-quote string literals.
import klyn.code
import klyn.code.vb
tokenizer = VbTokenizer()
res = tokenizer.tokenizeLine("Public Function Total(x As Integer) As Integer ' comment")
assert res.spans[0].kind == TokenKind.KEYWORD| Modifier and Type | Member | Description |
|---|---|---|
| public | VbTokenizer | Constructs a VbTokenizer configured with VbLanguage.profile(). |