summaryrefslogtreecommitdiff
path: root/rc/filetype
AgeCommit message (Collapse)Author
2025-07-11Fix uses of non-standard == in shell testsHEADmasterMaxime Coste
Fixes #5357
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-06-27Fix julia module unbalanced separatorsMaxime Coste
Fixes #5349
2025-06-09Add indentation for JuliaIntricate
2025-05-23Fixed latex highlighting the rest of the wayEric Toombs
I forgot to handle escaped backslashes in \[ and \( blocks.
2025-05-16latex: highlight $ $$ \[ and \( math modes properly.Eric Toombs
These math modes were being split apart by control sequence regions. To avoid this, they must be their own regions. Fixes https://github.com/mawww/kakoune/issues/5249 . Also, I got rid of an errant / in the control sequence ending regex that couldn't be right.
2025-04-29Merge remote-tracking branch 'thacuber2a03/master'Maxime Coste
2025-04-29Merge remote-tracking branch 'svmhdvn/push-onupwmqqpspt'Maxime Coste
2025-04-29Merge remote-tracking branch 'arrufat/go-new-line-comment'Maxime Coste
2025-04-29Merge branch 'fix-rust-return' of https://github.com/vbauerster/kakouneMaxime Coste
2025-04-29Merge remote-tracking branch 'nojhan/feat-filetype-ttl'Maxime Coste
2025-04-27rc/filetype/moon.kak: more small changesthacuber2a03
2025-04-27rc/filetype/moon.kak: extra adjustmentsthacuber2a03
2025-04-27rc/filetype/moon.kak: overhaulthacuber2a03
2025-04-16filetype/prolog: fix comment highlightersSiva Mahadevan
2025-04-15improve inserting comments on new lines for goAdrià Arrufat
Now it matches the behavior from c-family, python, and zig
2025-04-11rc filetype rust: hl return as keywordVladimir Bauer
That line makes return keyword to highlight same color as macro plus bold which makes it look like a macro. I'm not sure if it was done on purpose but it's wrong. Return is the same keyword like any other so why make it look apart?
2025-04-10feat(filetype): ttl syntax highlighternojhan
2025-04-09Fixed latex highlighter escaping math modeEric
Previously, using any macro in math mode (e.g. `$x \in X$`) causes the whole thing to fail to be recognized as math because the macro (`\in`) would be captured by the "cs" region.
2025-04-05Merge remote-tracking branch 'eraserhd/Rmd-is-markdown'Maxime Coste
2025-04-03update zig builtinsAdrià Arrufat
2025-03-31Handle RmdJason Felice
2025-03-18Add syntax highlighting for PRQLJonathan
PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement. https://prql-lang.org/ https://github.com/PRQL/prql
2025-02-28Merge remote-tracking branch 'velrest/gjs' into HEADMaxime Coste
2025-02-05rc/filetype/lua.kak: fix some highlighter issuesthacuber2a03
2025-02-04Merge remote-tracking branch 'mu-suwi/fix-fennel-highlight'Maxime Coste
2025-01-26rc/filetype: add forth.kakSiva Mahadevan
2025-01-24Fix highlighting regex for operators and values in Fennelmu suwi
2025-01-03rc/filetype: add wren.kakThaCuber
2024-11-13Add filetype for ember js .gjs and .gts filesJonas Cosandey
2024-09-16Merge remote-tracking branch 'sjjf/sql_filetype_misdetection'Maxime Coste
2024-09-16rc git: teach "git apply" to work on content, not just diffsJohannes Altmanninger
Staging/unstaging/reverting (parts of) the current buffer's file can be a common use case. Today "git apply" can do that based on a selection within a diff. When the selection is on uncommitted content, we can probably assume that the intent is to use the part of the selection that overlaps with the +-side of "git diff" (or "git diff --cached" for "git apply --cached"). Make "git apply" treat selections as content if the buffile is tracked by Git. This differentiator is not perfect but I don't know why anyone would want to use the existing "git apply" semantics on a tracked file. Maybe we should pick a different name. This feature couples well with "git show-diff", which shows all lines with unstaged changes (in future it should probably show staged changes as well). Whereas on diffs, "git apply" stages the entire hunk if the selection contains no newline, this does not happen when operating on content. I didn't yet try implementing that. I guess the hunks are not as explicit here. Closes #5225
2024-09-16diff-parse.pl: don't force error message into registerJohannes Altmanninger
A following patch wants to use this script without wrapping it in an "evaluate-commands -save-regs e %{ ... }", so simply print the raw error message and set the register to the caller. This interface is a bit weird because the error is printed quoted but for now that just makes things a bit more convenient.
2024-09-16rc filetype diff: diff-jump to use location at main selection, not the last oneJohannes Altmanninger
The jump command does the same.
2024-09-06Add new Zig builtinsAdrià Arrufat
2024-08-31Match against .sql extension, not sql suffix.Simon Fowler
The SQL filetype detection currently matches against a 'sql' suffix on the filename, which incorrectly matches a filename like 'run-psql'. Instead, explicitly match against a '.sql' suffix.
2024-08-09Fixed highlighter marking everything as ruby string in ERB filesEric
2024-08-06Add gleam language supportThomas Teixeira
2024-07-17php: improve heredocWillow Barraco
Support nowdoc, and make ';' optional
2024-07-09rc: filetype: sh.kak: add some more zsh files for auto coloring on openchelovechishko
2024-06-23Merge remote-tracking branch 'stacyharper/elixir-heex'Maxime Coste
2024-06-19elixir: detect heex additionaly to leexWillow Barraco
2024-06-15Add perf-annotate highlighting to perf.kakMaxime Coste
2024-06-11Tweak python block command test location and remove wall of textMaxime Coste
We do not typically go into lengthy explanation of the code in the support scripts. This would have a performance impact (as comments are not trimmed in advance) and feels out of place.
2024-06-07Support paragraph breaks in python block comments.Simon Fowler
The current python filetype module treats a single empty comment line (typically created by hitting enter twice while in a block comment) as the end of a block comment, deleting the empty comment and ending comment prefix copying. This runs contrary to PEP8, which explicitly allows for paragraphs in block comments, with an empty comment as the paragraph separator. This change implements support for using a single empty comment as a paragraph separator, with two consecutive empty comments being treated as the end of the block comment; both empty comment lines are deleted and comment prefix copying is ended.
2024-06-06Add rc/filetype/perf.kak for perf-report highlightMaxime Coste
2024-05-29Merge remote-tracking branch 'm-kru/typst'Maxime Coste
2024-05-26tcl: Highlight variables as variables, not as valuesMichał Kruszewski
2024-05-23typst: Add typst.kak for typst markup highlightingMichał Kruszewski