aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/icon.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/icon.lua
parentcc18cea14d1f836abcebb84a96f5029431474255 (diff)
downloadvis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz
vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/icon.lua')
-rw-r--r--lua/lexers/icon.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/lua/lexers/icon.lua b/lua/lexers/icon.lua
index 4881628..20a00ba 100644
--- a/lua/lexers/icon.lua
+++ b/lua/lexers/icon.lua
@@ -14,18 +14,18 @@ lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
lex:add_rule('keyword', token(lexer.KEYWORD, word_match{
- 'break', 'by', 'case', 'create', 'default', 'do', 'else', 'end', 'every', 'fail', 'global', 'if',
- 'initial', 'invocable', 'link', 'local', 'next', 'not', 'of', 'procedure', 'record', 'repeat',
- 'return', 'static', 'suspend', 'then', 'to', 'until', 'while'
+ 'break', 'by', 'case', 'create', 'default', 'do', 'else', 'end', 'every', 'fail', 'global', 'if',
+ 'initial', 'invocable', 'link', 'local', 'next', 'not', 'of', 'procedure', 'record', 'repeat',
+ 'return', 'static', 'suspend', 'then', 'to', 'until', 'while'
}))
-- Icon Keywords: unique to Icon.
lex:add_rule('special_keyword', token('special_keyword', '&' * word_match{
- 'allocated', 'ascii', 'clock', 'collections', 'cset', 'current', 'date', 'dateline', 'digits',
- 'dump', 'e', 'error', 'errornumber', 'errortext', 'errorvalue', 'errout', 'fail', 'features',
- 'file', 'host', 'input', 'lcase', 'letters', 'level', 'line', 'main', 'null', 'output', 'phi',
- 'pi', 'pos', 'progname', 'random', 'regions', 'source', 'storage', 'subject', 'time', 'trace',
- 'ucase', 'version'
+ 'allocated', 'ascii', 'clock', 'collections', 'cset', 'current', 'date', 'dateline', 'digits',
+ 'dump', 'e', 'error', 'errornumber', 'errortext', 'errorvalue', 'errout', 'fail', 'features',
+ 'file', 'host', 'input', 'lcase', 'letters', 'level', 'line', 'main', 'null', 'output', 'phi',
+ 'pi', 'pos', 'progname', 'random', 'regions', 'source', 'storage', 'subject', 'time', 'trace',
+ 'ucase', 'version'
}))
lex:add_style('special_keyword', lexer.styles.type)
@@ -46,7 +46,7 @@ lex:add_rule('number', token(lexer.NUMBER, radix_literal + lexer.number))
-- Preprocessor.
lex:add_rule('preproc', token(lexer.PREPROCESSOR, '$' *
- word_match('define else endif error ifdef ifndef include line undef')))
+ word_match('define else endif error ifdef ifndef include line undef')))
-- Operators.
lex:add_rule('operator', token(lexer.OPERATOR, S('+-/*%<>~!=^&|?~@:;,.()[]{}')))