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/ledger.lua | |
| parent | cc18cea14d1f836abcebb84a96f5029431474255 (diff) | |
| download | vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.gz vis-c1f4d3f68787fa2ae964c468d28a84df37319b28.tar.xz | |
lexers: switch to tabs for indentation
Diffstat (limited to 'lua/lexers/ledger.lua')
| -rw-r--r-- | lua/lexers/ledger.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lexers/ledger.lua b/lua/lexers/ledger.lua index d33ac76..334518f 100644 --- a/lua/lexers/ledger.lua +++ b/lua/lexers/ledger.lua @@ -35,8 +35,8 @@ lex:add_rule('auto_tx', token(lexer.PREPROCESSOR, lexer.to_eol(lexer.starts_line -- Directives. local directive_word = word_match{ - ' account', 'alias', 'assert', 'bucket', 'capture', 'check', 'comment', 'commodity', 'define', - 'end', 'fixed', 'endfixed', 'include', 'payee', 'apply', 'tag', 'test', 'year' + ' account', 'alias', 'assert', 'bucket', 'capture', 'check', 'comment', 'commodity', 'define', + 'end', 'fixed', 'endfixed', 'include', 'payee', 'apply', 'tag', 'test', 'year' } + S('AYNDCIiOobh') lex:add_rule('directive', token(lexer.KEYWORD, lexer.starts_line(S('!@')^-1 * directive_word))) |
