diff options
| author | orbitalquark <70453897+orbitalquark@users.noreply.github.com> | 2024-09-18 14:30:49 -0400 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-04 12:29:07 -0700 |
| commit | c1f4d3f68787fa2ae964c468d28a84df37319b28 (patch) | |
| tree | dcd62bd74f8f9fd786cba6a0c248fb388d5244a8 /lua/lexers/chuck.lua | |
| parent | cc18cea14d1f836abcebb84a96f5029431474255 (diff) | |
| download | vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz | |
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/chuck.lua')
| -rw-r--r-- | lua/lexers/chuck.lua | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lua/lexers/chuck.lua b/lua/lexers/chuck.lua index 9c2433d..f72b6eb 100644 --- a/lua/lexers/chuck.lua +++ b/lua/lexers/chuck.lua @@ -28,7 +28,7 @@ lex:add_rule('function', lex:tag(lexer.FUNCTION_BUILTIN, std + machine + math) + -- Constants. lex:add_rule('constant', lex:tag(lexer.CONSTANT_BUILTIN, - 'Math.' * lex:word_match(lexer.CONSTANT_BUILTIN .. '.math'))) + 'Math.' * lex:word_match(lexer.CONSTANT_BUILTIN .. '.math'))) -- Global ugens. lex:add_rule('ugen', lex:tag(lexer.CONSTANT_BUILTIN .. '.ugen', word_match('dac adc blackhole'))) @@ -60,41 +60,41 @@ lex:add_rule('operator', lex:tag(lexer.OPERATOR, S('+-/*%<>!=^&|?~:;.()[]{}@'))) -- Word lists. lex:set_word_list(lexer.KEYWORD, { - -- Control structures. - 'break', 'continue', 'else', 'for', 'if', 'repeat', 'return', 'switch', 'until', 'while', - -- Other chuck keywords. - 'function', 'fun', 'spork', 'const', 'new' + -- Control structures. + 'break', 'continue', 'else', 'for', 'if', 'repeat', 'return', 'switch', 'until', 'while', + -- Other chuck keywords. + 'function', 'fun', 'spork', 'const', 'new' }) lex:set_word_list(lexer.CONSTANT_BUILTIN, { - 'false', 'maybe', 'me', 'null', 'NULL', 'pi', 'true' -- special values + 'false', 'maybe', 'me', 'null', 'NULL', 'pi', 'true' -- special values }) lex:set_word_list(lexer.TYPE, 'float int time dur void same') -- Class keywords. lex:set_word_list(lexer.CLASS, { - 'class', 'extends', 'implements', 'interface', 'private', 'protected', 'public', 'pure', 'static', - 'super', 'this' + 'class', 'extends', 'implements', 'interface', 'private', 'protected', 'public', 'pure', 'static', + 'super', 'this' }) lex:set_word_list(lexer.FUNCTION_BUILTIN, { - 'abs', 'fabs', 'sgn', 'system', 'atoi', 'atof', 'getenv', 'setenv', 'mtof', 'ftom', 'powtodb', - 'rmstodb', 'dbtopow', 'dbtorms' + 'abs', 'fabs', 'sgn', 'system', 'atoi', 'atof', 'getenv', 'setenv', 'mtof', 'ftom', 'powtodb', + 'rmstodb', 'dbtopow', 'dbtorms' }) lex:set_word_list(lexer.FUNCTION_BUILTIN .. '.machine', { - 'add', 'spork', 'remove', 'replace', 'status', 'crash' + 'add', 'spork', 'remove', 'replace', 'status', 'crash' }) lex:set_word_list(lexer.FUNCTION_BUILTIN .. '.math', { - 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2', 'sinh', 'cosh', 'tanh', 'hypot', 'pow', - 'sqrt', 'exp', 'log', 'log2', 'log10', 'random', 'random2', 'randomf', 'random2f', 'srandom', - 'floor', 'ceil', 'round', 'trunc', 'fmod', 'remainder', 'min', 'max', 'nextpow2', 'isinf', 'isnan' + 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2', 'sinh', 'cosh', 'tanh', 'hypot', 'pow', + 'sqrt', 'exp', 'log', 'log2', 'log10', 'random', 'random2', 'randomf', 'random2f', 'srandom', + 'floor', 'ceil', 'round', 'trunc', 'fmod', 'remainder', 'min', 'max', 'nextpow2', 'isinf', 'isnan' }) lex:set_word_list(lexer.CONSTANT_BUILTIN .. '.math', { - 'PI', 'TWO_PI', 'e', 'E', 'i', 'I', 'j', 'J', 'RANDOM_MAX' + 'PI', 'TWO_PI', 'e', 'E', 'i', 'I', 'j', 'J', 'RANDOM_MAX' }) lexer.property['scintillua.comment'] = '//' |
