aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/ruby.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lexlua/ruby.lua')
-rw-r--r--lexlua/ruby.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlua/ruby.lua b/lexlua/ruby.lua
index e25ca6000..c05747c75 100644
--- a/lexlua/ruby.lua
+++ b/lexlua/ruby.lua
@@ -101,7 +101,7 @@ lex:add_rule('variable', token(lexer.VARIABLE, global_var + class_var +
lex:add_rule('symbol', token('symbol', ':' * P(function(input, index)
if input:sub(index - 2, index - 2) ~= ':' then return index end
end) * (word_char^1 + sq_str + dq_str)))
-lex:add_style('symbol', lexer.STYLE_CONSTANT)
+lex:add_style('symbol', lexer.styles.constant)
-- Operators.
lex:add_rule('operator', token(lexer.OPERATOR, S('!%^&*()[]{}-=+/|:;.,?<>~')))