From c1f4d3f68787fa2ae964c468d28a84df37319b28 Mon Sep 17 00:00:00 2001 From: orbitalquark <70453897+orbitalquark@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:30:49 -0400 Subject: lexers: switch to tabs for indentation --- lua/lexers/makefile.lua | 76 ++++++++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'lua/lexers/makefile.lua') diff --git a/lua/lexers/makefile.lua b/lua/lexers/makefile.lua index 3e7ae8b..ace71cd 100644 --- a/lua/lexers/makefile.lua +++ b/lua/lexers/makefile.lua @@ -12,7 +12,7 @@ local func_name = lex:tag(lexer.FUNCTION, word) local ws = lex:get_rule('whitespace') local eq = lex:tag(lexer.OPERATOR, '=') lex:add_rule('function_def', lex:tag(lexer.KEYWORD, lexer.word_match('define')) * ws * func_name * - ws^-1 * (eq + -1)) + ws^-1 * (eq + -1)) -- Keywords. lex:add_rule('keyword', lex:tag(lexer.KEYWORD, P('!')^-1 * lex:word_match(lexer.KEYWORD, true))) @@ -25,11 +25,11 @@ lex:add_rule('target', lexer.starts_line(target * ws^-1 * #(':' * lexer.space))) -- Variable and function assignments. local func_assign = func_name * ws^-1 * eq * - #P(function(input, index) return input:find('%$%(%d%)', index) end) + #P(function(input, index) return input:find('%$%(%d%)', index) end) local builtin_var = lex:tag(lexer.VARIABLE_BUILTIN, lex:word_match(lexer.VARIABLE_BUILTIN)) local var_name = lex:tag(lexer.VARIABLE, word) local var_assign = (builtin_var + var_name) * ws^-1 * - lex:tag(lexer.OPERATOR, S(':+?!')^-1 * '=' + '::=') + lex:tag(lexer.OPERATOR, S(':+?!')^-1 * '=' + '::=') lex:add_rule('assign', lexer.starts_line(func_assign + var_assign, true) + B(': ') * var_assign) -- Operators. @@ -49,7 +49,7 @@ lex:add_rule('function', func) -- Variables. local auto_var = lex:tag(lexer.OPERATOR, '$') * lex:tag(lexer.VARIABLE_BUILTIN, S('@%