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/latex.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/lexers/latex.lua') diff --git a/lua/lexers/latex.lua b/lua/lexers/latex.lua index c7e63be..f629407 100644 --- a/lua/lexers/latex.lua +++ b/lua/lexers/latex.lua @@ -12,7 +12,7 @@ local lex = lexer.new(...) -- Comments. local line_comment = lexer.to_eol('%') local block_comment = lexer.range('\\begin' * P(' ')^0 * '{comment}', - '\\end' * P(' ')^0 * '{comment}') + '\\end' * P(' ')^0 * '{comment}') lex:add_rule('comment', lex:tag(lexer.COMMENT, line_comment + block_comment)) -- Math environments. @@ -22,11 +22,11 @@ lex:add_rule('math', lex:tag('environment.math', '$' + '\\' * (S('[]()') + math_ -- LaTeX environments. lex:add_rule('environment', lex:tag('environment', '\\' * (P('begin') + 'end') * P(' ')^0 * '{' * - lexer.word * P('*')^-1 * '}')) + lexer.word * P('*')^-1 * '}')) -- Sections. lex:add_rule('section', lex:tag('command.section', '\\' * - word_match('part chapter section subsection subsubsection paragraph subparagraph') * P('*')^-1)) + word_match('part chapter section subsection subsubsection paragraph subparagraph') * P('*')^-1)) -- Commands. lex:add_rule('command', lex:tag('command', '\\' * (lexer.alpha^1 + S('#$&~_^%{}\\')))) -- cgit v1.2.3