diff options
| author | orbitalquark <70453897+orbitalquark@users.noreply.github.com> | 2024-09-18 14:30:49 -0400 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-04 12:29:07 -0700 |
| commit | c1f4d3f68787fa2ae964c468d28a84df37319b28 (patch) | |
| tree | dcd62bd74f8f9fd786cba6a0c248fb388d5244a8 /lua/lexers/context.lua | |
| parent | cc18cea14d1f836abcebb84a96f5029431474255 (diff) | |
| download | vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz | |
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/context.lua')
| -rw-r--r-- | lua/lexers/context.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lexers/context.lua b/lua/lexers/context.lua index 8ba2efc..e60f8c4 100644 --- a/lua/lexers/context.lua +++ b/lua/lexers/context.lua @@ -19,8 +19,8 @@ lex:add_rule('comment', token(lexer.COMMENT, lexer.to_eol('%'))) -- Sections. local wm_section = word_match{ - 'chapter', 'part', 'section', 'subject', 'subsection', 'subsubject', 'subsubsection', - 'subsubsubject', 'subsubsubsection', 'subsubsubsubject', 'title' + 'chapter', 'part', 'section', 'subject', 'subsection', 'subsubject', 'subsubsection', + 'subsubsubject', 'subsubsubsection', 'subsubsubsubject', 'title' } local section = token(lexer.CLASS, '\\' * startstop^-1 * wm_section) lex:add_rule('section', section) @@ -31,7 +31,7 @@ lex:add_rule('environment', environment) -- Commands. local command = token(lexer.KEYWORD, '\\' * - (lexer.alpha^1 * P('\\') * lexer.space^1 + lexer.alpha^1 + S('!"#$%&\',./;=[\\]_{|}~`^-'))) + (lexer.alpha^1 * P('\\') * lexer.space^1 + lexer.alpha^1 + S('!"#$%&\',./;=[\\]_{|}~`^-'))) lex:add_rule('command', command) -- Operators. |
