summaryrefslogtreecommitdiff
path: root/rc/filetype/zig.kak
AgeCommit message (Collapse)Author
2025-07-10fix(zig): remove empty alternatives from regexAdrià Arrufat
2025-07-08Update zig keywords and builtinsAdrià Arrufat
- keywords removed: `async`, `noasync`, and `usingnamespace` - builtins added: `memmove`
2025-04-03update zig builtinsAdrià Arrufat
2024-09-06Add new Zig builtinsAdrià Arrufat
2023-11-02rc/filetype/zig: remove align builtin and add f80 typeAdrià Arrufat
In commit https://github.com/mawww/kakoune/commit/ca36d0d2282dd304effe6326393751827c269210 the align function was added as a builtin accidentally. Also, f80 type was added in Zig 0.10.0: https://ziglang.org/download/0.10.0/release-notes.html#f80
2023-07-29Merge remote-tracking branch 'arrufat/zig-builtin-functions'Maxime Coste
2023-07-26zig: add c_char typeAdrià Arrufat
2023-07-26zig: update builtin functions for v0.11.0Adrià Arrufat
2023-07-25Set filetype to Zig for zon files.Adrià Arrufat
2023-07-04Auto-remove empty comments in Zig like in the C-family.Adrià Arrufat
This makes Kakoune behave more consistently when using it for Zig. Empty comments are already auto-removed from the C-family and Python. In this PR, string literals that start with \\ are not removed in purpose.
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
2021-12-31rc/filetype/zig: update for zig 0.9.0 releaseIsaac Freund
- c_void has been renamed to anyopaque - a few new builtins have been added.
2021-06-12rc zig: auto-insert multiline string prefix on newlinec piapiac
2021-06-12rc zig: 0.8.0 language changesc piapiac
* adds nosuspend keyword * adds @extern builtin * removes @TagType builtin
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-01-18zig.kak: fix highlighting of empty doc commentIsaac Freund
If a line contains three slashes directly followed by a new line, the next line is also erroneously highlighted as a doc comment currently. Using a lookahead instead fixes this.
2020-11-23zig: highlight escapes in strings, update to 0.7.0Isaac Freund
2020-07-29Fix deindentation in zig.kakJohn Isom
2020-05-22Add underscore highlighting as visual separator inside Zig integersDmitry Matveyev
2020-03-22Fix indentation of auto-extended commentsIsaac Freund
2020-03-22Encapsulate zig highlighting and commands in a moduleIsaac Freund
2020-03-22Add indent rulesIsaac Freund
2020-03-22Use attribute face where appropriateIsaac Freund
2020-03-21Add syntax highlighting for zigIsaac Freund