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/idl.lua | |
| parent | cc18cea14d1f836abcebb84a96f5029431474255 (diff) | |
| download | vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz | |
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/idl.lua')
| -rw-r--r-- | lua/lexers/idl.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lua/lexers/idl.lua b/lua/lexers/idl.lua index 5ba0863..343a76b 100644 --- a/lua/lexers/idl.lua +++ b/lua/lexers/idl.lua @@ -12,16 +12,16 @@ lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1)) -- Keywords. lex:add_rule('keyword', token(lexer.KEYWORD, word_match{ - 'abstract', 'attribute', 'case', 'const', 'context', 'custom', 'default', 'enum', 'exception', - 'factory', 'FALSE', 'in', 'inout', 'interface', 'local', 'module', 'native', 'oneway', 'out', - 'private', 'public', 'raises', 'readonly', 'struct', 'support', 'switch', 'TRUE', 'truncatable', - 'typedef', 'union', 'valuetype' + 'abstract', 'attribute', 'case', 'const', 'context', 'custom', 'default', 'enum', 'exception', + 'factory', 'FALSE', 'in', 'inout', 'interface', 'local', 'module', 'native', 'oneway', 'out', + 'private', 'public', 'raises', 'readonly', 'struct', 'support', 'switch', 'TRUE', 'truncatable', + 'typedef', 'union', 'valuetype' })) -- Types. lex:add_rule('type', token(lexer.TYPE, word_match{ - 'any', 'boolean', 'char', 'double', 'fixed', 'float', 'long', 'Object', 'octet', 'sequence', - 'short', 'string', 'unsigned', 'ValueBase', 'void', 'wchar', 'wstring' + 'any', 'boolean', 'char', 'double', 'fixed', 'float', 'long', 'Object', 'octet', 'sequence', + 'short', 'string', 'unsigned', 'ValueBase', 'void', 'wchar', 'wstring' })) -- Identifiers. @@ -42,7 +42,7 @@ lex:add_rule('number', token(lexer.NUMBER, lexer.number)) -- Preprocessor. lex:add_rule('preproc', token(lexer.PREPROCESSOR, lexer.starts_line('#') * - word_match('define undef ifdef ifndef if elif else endif include warning pragma'))) + word_match('define undef ifdef ifndef if elif else endif include warning pragma'))) -- Operators. lex:add_rule('operator', token(lexer.OPERATOR, S('!<>=+-/*%&|^~.,:;?()[]{}'))) |
