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/powershell.lua | |
| parent | cc18cea14d1f836abcebb84a96f5029431474255 (diff) | |
| download | vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz | |
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/powershell.lua')
| -rw-r--r-- | lua/lexers/powershell.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lua/lexers/powershell.lua b/lua/lexers/powershell.lua index 5ed99bd..c490f5b 100644 --- a/lua/lexers/powershell.lua +++ b/lua/lexers/powershell.lua @@ -16,34 +16,34 @@ lex:add_rule('comment', token(lexer.COMMENT, lexer.to_eol('#'))) -- Keywords. lex:add_rule('keyword', token(lexer.KEYWORD, word_match({ - 'Begin', 'Break', 'Continue', 'Do', 'Else', 'End', 'Exit', 'For', 'ForEach', 'ForEach-Object', - 'Get-Date', 'Get-Random', 'If', 'Param', 'Pause', 'Powershell', 'Process', 'Read-Host', 'Return', - 'Switch', 'While', 'Write-Host' + 'Begin', 'Break', 'Continue', 'Do', 'Else', 'End', 'Exit', 'For', 'ForEach', 'ForEach-Object', + 'Get-Date', 'Get-Random', 'If', 'Param', 'Pause', 'Powershell', 'Process', 'Read-Host', 'Return', + 'Switch', 'While', 'Write-Host' }, true))) -- Comparison Operators. lex:add_rule('comparison', token(lexer.KEYWORD, '-' * word_match({ - 'and', 'as', 'band', 'bor', 'contains', 'eq', 'ge', 'gt', 'is', 'isnot', 'le', 'like', 'lt', - 'match', 'ne', 'nomatch', 'not', 'notcontains', 'notlike', 'or', 'replace' + 'and', 'as', 'band', 'bor', 'contains', 'eq', 'ge', 'gt', 'is', 'isnot', 'le', 'like', 'lt', + 'match', 'ne', 'nomatch', 'not', 'notcontains', 'notlike', 'or', 'replace' }, true))) -- Parameters. lex:add_rule('parameter', token(lexer.KEYWORD, '-' * - word_match('Confirm Debug ErrorAction ErrorVariable OutBuffer OutVariable Verbose WhatIf', true))) + word_match('Confirm Debug ErrorAction ErrorVariable OutBuffer OutVariable Verbose WhatIf', true))) -- Properties. lex:add_rule('property', token(lexer.KEYWORD, '.' * - word_match('day dayofweek dayofyear hour millisecond minute month second timeofday year', true))) + word_match('day dayofweek dayofyear hour millisecond minute month second timeofday year', true))) -- Types. lex:add_rule('type', token(lexer.KEYWORD, '[' * word_match({ - 'array', 'boolean', 'byte', 'char', 'datetime', 'decimal', 'double', 'hashtable', 'int', 'long', - 'single', 'string', 'xml' + 'array', 'boolean', 'byte', 'char', 'datetime', 'decimal', 'double', 'hashtable', 'int', 'long', + 'single', 'string', 'xml' }, true) * ']')) -- Variables. lex:add_rule('variable', token(lexer.VARIABLE, - '$' * (lexer.digit^1 + lexer.word + lexer.range('{', '}', true)))) + '$' * (lexer.digit^1 + lexer.word + lexer.range('{', '}', true)))) -- Strings. lex:add_rule('string', token(lexer.STRING, lexer.range('"', true))) |
