aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/boo.lua
diff options
context:
space:
mode:
authororbitalquark <70453897+orbitalquark@users.noreply.github.com>2024-09-18 14:30:49 -0400
committerRandy Palamar <randy@rnpnr.xyz>2025-01-04 12:29:07 -0700
commitc1f4d3f68787fa2ae964c468d28a84df37319b28 (patch)
treedcd62bd74f8f9fd786cba6a0c248fb388d5244a8 /lua/lexers/boo.lua
parentcc18cea14d1f836abcebb84a96f5029431474255 (diff)
downloadvis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz
vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/boo.lua')
-rw-r--r--lua/lexers/boo.lua32
1 files changed, 16 insertions, 16 deletions
diff --git a/lua/lexers/boo.lua b/lua/lexers/boo.lua
index 284bbf6..e20cbe9 100644
--- a/lua/lexers/boo.lua
+++ b/lua/lexers/boo.lua
@@ -12,30 +12,30 @@ lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
lex:add_rule('keyword', token(lexer.KEYWORD, word_match{
- 'and', 'break', 'cast', 'continue', 'elif', 'else', 'ensure', 'except', 'for', 'given', 'goto',
- 'if', 'in', 'isa', 'is', 'not', 'or', 'otherwise', 'pass', 'raise', 'ref', 'try', 'unless',
- 'when', 'while',
- -- Definitions.
- 'abstract', 'callable', 'class', 'constructor', 'def', 'destructor', 'do', 'enum', 'event',
- 'final', 'get', 'interface', 'internal', 'of', 'override', 'partial', 'private', 'protected',
- 'public', 'return', 'set', 'static', 'struct', 'transient', 'virtual', 'yield',
- -- Namespaces.
- 'as', 'from', 'import', 'namespace',
- -- Other.
- 'self', 'super', 'null', 'true', 'false'
+ 'and', 'break', 'cast', 'continue', 'elif', 'else', 'ensure', 'except', 'for', 'given', 'goto',
+ 'if', 'in', 'isa', 'is', 'not', 'or', 'otherwise', 'pass', 'raise', 'ref', 'try', 'unless',
+ 'when', 'while',
+ -- Definitions.
+ 'abstract', 'callable', 'class', 'constructor', 'def', 'destructor', 'do', 'enum', 'event',
+ 'final', 'get', 'interface', 'internal', 'of', 'override', 'partial', 'private', 'protected',
+ 'public', 'return', 'set', 'static', 'struct', 'transient', 'virtual', 'yield',
+ -- Namespaces.
+ 'as', 'from', 'import', 'namespace',
+ -- Other.
+ 'self', 'super', 'null', 'true', 'false'
}))
-- Types.
lex:add_rule('type', token(lexer.TYPE, word_match{
- 'bool', 'byte', 'char', 'date', 'decimal', 'double', 'duck', 'float', 'int', 'long', 'object',
- 'operator', 'regex', 'sbyte', 'short', 'single', 'string', 'timespan', 'uint', 'ulong', 'ushort'
+ 'bool', 'byte', 'char', 'date', 'decimal', 'double', 'duck', 'float', 'int', 'long', 'object',
+ 'operator', 'regex', 'sbyte', 'short', 'single', 'string', 'timespan', 'uint', 'ulong', 'ushort'
}))
-- Functions.
lex:add_rule('function', token(lexer.FUNCTION, word_match{
- 'array', 'assert', 'checked', 'enumerate', '__eval__', 'filter', 'getter', 'len', 'lock', 'map',
- 'matrix', 'max', 'min', 'normalArrayIndexing', 'print', 'property', 'range', 'rawArrayIndexing',
- 'required', '__switch__', 'typeof', 'unchecked', 'using', 'yieldAll', 'zip'
+ 'array', 'assert', 'checked', 'enumerate', '__eval__', 'filter', 'getter', 'len', 'lock', 'map',
+ 'matrix', 'max', 'min', 'normalArrayIndexing', 'print', 'property', 'range', 'rawArrayIndexing',
+ 'required', '__switch__', 'typeof', 'unchecked', 'using', 'yieldAll', 'zip'
}))
-- Identifiers.