summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2021-04-17 10:17:01 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2021-04-17 20:56:23 +0200
commit0a9c90fecf21b69c9f9e5205799ec22a6ae215b3 (patch)
treecadd11b3089c0c403b5804ecab5e90dea658fde6 /rc/tools/python
parent0264c847420394b5f47b7fb8286f0fb0611fe24d (diff)
rc: use a separate *-insert hook to auto-insert comments
This should cover all filetypes that already auto-insert comments, except for rust.kak, which is left for a follow-up. Most of these are straightforward, some explanation for special cases: rc/filetype/zig.kak rc/filetype/cue.kak These indent hooks used their own logic to indent after "{" only if no comment was inserted. Replace this logic by checking if a comment was inserted. This works because these "*-insert" hooks are run before their respective "*-indent" hooks. rc/filetype/php.kak This also has some logic to insert "*" after "/*" lines. Basic usage seems to work still. In future this should borrow from the c-family one, which works a bit better.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions