aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/props.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers/props.lua')
-rw-r--r--lua/lexers/props.lua8
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'] = '#'