From be2b4322cbb398b33ee9641d04463b663c781e1a Mon Sep 17 00:00:00 2001 From: mitchell Date: Wed, 8 Jul 2020 10:18:42 -0400 Subject: lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`. --- lexlua/chuck.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexlua/chuck.lua') diff --git a/lexlua/chuck.lua b/lexlua/chuck.lua index d3dfd2417..3726a1440 100644 --- a/lexlua/chuck.lua +++ b/lexlua/chuck.lua @@ -38,17 +38,17 @@ lex:add_rule('class', token(lexer.CLASS, word_match[[ -- Global ugens. lex:add_rule('ugen', token('ugen', word_match[[dac adc blackhole]])) -lex:add_style('ugen', lexer.STYLE_CONSTANT) +lex:add_style('ugen', lexer.styles.constant) -- Times. lex:add_rule('time', token('time', word_match[[ samp ms second minute hour day week ]])) -lex:add_style('time', lexer.STYLE_NUMBER) +lex:add_style('time', lexer.styles.number) -- Special special value. lex:add_rule('now', token('now', P('now'))) -lex:add_style('now', lexer.STYLE_CONSTANT .. {bold = true}) +lex:add_style('now', lexer.styles.constant .. {bold = true}) -- Strings. local sq_str = P('L')^-1 * lexer.range("'", true) -- cgit v1.2.3