summaryrefslogtreecommitdiff
path: root/rc/filetype/php.kak
AgeCommit message (Collapse)Author
2024-07-17php: improve heredocWillow Barraco
Support nowdoc, and make ';' optional
2022-07-05Make `x` just select the full linesMaxime Coste
`x` is often criticized as hard to predict due to its slightly complex behaviour of selecting next line if the current one is fully selected. Change `x` to use the previous `<a-x>` behaviour, and change `<a-x>` to trim to fully selected lines as `<a-X>` did. Adapt existing indentation script to the new behaviour
2022-05-26rc filetype: fix double space in trim-indent hooksJohannes Altmanninger
2022-01-24Review: remove a commentSidharth Kshatriya
2022-01-13.phpt (PHP Test) files should also receive PHP syntax highlightingSidharth Kshatriya
2022-01-13Add support for PHP heredoc in syntax highlightingSidharth Kshatriya
2021-09-02Fix unterminated string in rc/filetype/php.kakioh
2021-04-17rc: use a separate *-insert hook to auto-insert commentsJohannes Altmanninger
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.
2021-04-17rc: remove spurious tabsJohannes Altmanninger
This makes it easier to be consistent. Also replace "<<-EOF" by "<<EOF", since the former only does trims tabs, not spaces.
2020-07-29Clean up my previous updatesJohn Isom
2020-07-28Fix already-existing error in php.kakJohn Isom
2020-07-28Update deindenting in php.kakJohn Isom
2020-07-28Update deindenting in php.kakJohn Isom
2020-07-28Fix indentation rule for php.kakJohn Isom
2019-10-22src: Create a <semicolon> named keyFrank LENORMAND
This commit allows using the <semicolon> expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using <a-;> without escaping the semicolon.
2019-10-16Replace ModeChange hooks by ModePush and ModePopMaxime Coste
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
2019-06-10Consider */ closing comment on PHP automatic indentation prefixFelix Freeman
2019-06-10Fix PHP comments indentationhacktivista
2019-04-09Fixed many of the filetype support modules to not use `BufSetOption` to loadJustin Frank
2019-04-08Added modules to extra filesJustin Frank
2019-03-21Add categories in rc/Alex Leferry 2
Closes #2783