aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/routeros.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/routeros.lua
parentcc18cea14d1f836abcebb84a96f5029431474255 (diff)
downloadvis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz
vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/routeros.lua')
-rw-r--r--lua/lexers/routeros.lua40
1 files changed, 20 insertions, 20 deletions
diff --git a/lua/lexers/routeros.lua b/lua/lexers/routeros.lua
index ceda578..c54bb04 100644
--- a/lua/lexers/routeros.lua
+++ b/lua/lexers/routeros.lua
@@ -12,25 +12,25 @@ lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
lex:add_rule('keyword', token(lexer.KEYWORD, word_match{
- -- Control.
- ':delay', ':do', 'on-error', 'while', ':error', ':foreach', 'in', 'do', ':for', 'from', 'to',
- 'step', ':if', 'do', 'else', ':return', ':while', 'do',
- -- Menu specific commands.
- 'add', 'disable', 'edit', 'enable', 'export', 'find', 'get', 'info', 'monitor', 'print', 'append',
- 'as-value', 'brief', 'count-only', 'detail', 'file', 'follow', 'follow-only', 'from', 'interval',
- 'terse', 'value-list', 'where', 'without-paging', 'remove', 'set',
- -- Output & string handling.
- ':beep', ':blink', ':environment', ':execute', ':find', ':len', ':log', 'alert', 'critical',
- 'debug', 'emergency', 'error', 'info', 'notice', 'warning', ':parse', ':pick', ':put',
- ':terminal', ':time', ':typeof',
- -- Variable declaration.
- ':global', ':local', ':set',
- -- Variable casting.
- ':toarray', ':tobool', ':toid', ':toip', ':toip6', ':tonum', ':tostr', ':totime',
- -- Boolean values and logical operators.
- 'false', 'no', 'true', 'yes', 'and', 'in', 'or',
- -- Networking.
- ':ping', ':resolve'
+ -- Control.
+ ':delay', ':do', 'on-error', 'while', ':error', ':foreach', 'in', 'do', ':for', 'from', 'to',
+ 'step', ':if', 'do', 'else', ':return', ':while', 'do',
+ -- Menu specific commands.
+ 'add', 'disable', 'edit', 'enable', 'export', 'find', 'get', 'info', 'monitor', 'print', 'append',
+ 'as-value', 'brief', 'count-only', 'detail', 'file', 'follow', 'follow-only', 'from', 'interval',
+ 'terse', 'value-list', 'where', 'without-paging', 'remove', 'set',
+ -- Output & string handling.
+ ':beep', ':blink', ':environment', ':execute', ':find', ':len', ':log', 'alert', 'critical',
+ 'debug', 'emergency', 'error', 'info', 'notice', 'warning', ':parse', ':pick', ':put',
+ ':terminal', ':time', ':typeof',
+ -- Variable declaration.
+ ':global', ':local', ':set',
+ -- Variable casting.
+ ':toarray', ':tobool', ':toid', ':toip', ':toip6', ':tonum', ':tostr', ':totime',
+ -- Boolean values and logical operators.
+ 'false', 'no', 'true', 'yes', 'and', 'in', 'or',
+ -- Networking.
+ ':ping', ':resolve'
}))
-- Identifiers.
@@ -47,7 +47,7 @@ lex:add_rule('string', token(lexer.STRING, lexer.range('"')))
-- Variables.
lex:add_rule('variable', token(lexer.VARIABLE, '$' *
- (S('!#?*@$') + lexer.digit^1 + lexer.word + lexer.range('{', '}', true, false, true))))
+ (S('!#?*@$') + lexer.digit^1 + lexer.word + lexer.range('{', '}', true, false, true))))
-- Operators.
lex:add_rule('operator', token(lexer.OPERATOR, S('=!%<>+-/*&|~.,;()[]{}')))