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/asm.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlua/asm.lua') diff --git a/lexlua/asm.lua b/lexlua/asm.lua index 12ebdf3cf..f2e80a3d0 100644 --- a/lexlua/asm.lua +++ b/lexlua/asm.lua @@ -280,7 +280,7 @@ lex:add_rule('instruction', token('instruction', word_match[[ hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63 ]])) -lex:add_style('instruction', lexer.STYLE_FUNCTION) +lex:add_style('instruction', lexer.styles['function']) -- Registers. lex:add_rule('register', token('register', word_match[[ @@ -294,7 +294,7 @@ lex:add_rule('register', token('register', word_match[[ xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ]])) -lex:add_style('register', lexer.STYLE_CONSTANT) +lex:add_style('register', lexer.styles.constant) -- Types. local sizes = word_match[[ -- cgit v1.2.3