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/props.lua | |
| parent | cc18cea14d1f836abcebb84a96f5029431474255 (diff) | |
| download | vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz | |
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/props.lua')
| -rw-r--r-- | lua/lexers/props.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/lexers/props.lua b/lua/lexers/props.lua index b926f96..32e7389 100644 --- a/lua/lexers/props.lua +++ b/lua/lexers/props.lua @@ -8,12 +8,12 @@ local lex = lexer.new(..., {lex_by_line = true}) -- Identifiers. lex:add_rule('identifier', - lex:tag(lexer.IDENTIFIER, (lexer.alpha + S('.-_')) * (lexer.alnum + S('.-_')^0))) + lex:tag(lexer.IDENTIFIER, (lexer.alpha + S('.-_')) * (lexer.alnum + S('.-_')^0))) -- Colors. local xdigit = lexer.xdigit lex:add_rule('color', - lex:tag(lexer.NUMBER, '#' * xdigit * xdigit * xdigit * xdigit * xdigit * xdigit)) + lex:tag(lexer.NUMBER, '#' * xdigit * xdigit * xdigit * xdigit * xdigit * xdigit)) -- Comments. lex:add_rule('comment', lex:tag(lexer.COMMENT, lexer.to_eol('#'))) @@ -28,8 +28,8 @@ lex:add_rule('string', lex:tag(lexer.STRING, sq_str + dq_str)) -- Variables. lex:add_rule('variable', - lex:tag(lexer.OPERATOR, '$(') * lex:tag(lexer.VARIABLE, (lexer.nonnewline - lexer.space - ')')^0) * - lex:tag(lexer.OPERATOR, ')')) + lex:tag(lexer.OPERATOR, '$(') * lex:tag(lexer.VARIABLE, (lexer.nonnewline - lexer.space - ')')^0) * + lex:tag(lexer.OPERATOR, ')')) lexer.property['scintillua.comment'] = '#' |
