summaryrefslogtreecommitdiff
path: root/rc/filetype/rust.kak
AgeCommit message (Collapse)Author
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?
2024-04-16rust: Highlight char and byte literals as valuesMichaƂ Kruszewski
Char and byte literals are values. There is no point in using fixed colors for them.
2022-11-01Add "union" as a keyword for Rust syntaxJames Wainwright
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-05-02add TODO comment highlightingSkyler Hawthorne
2021-05-01fix rust pub highlightSkyler Hawthorne
2021-04-28improve colors for rust/solarizedSkyler Hawthorne
* bring colors more aligned with upstream solarized implementations (e.g. vim, emacs) * tweak rust syntax * add more details, like operators, highlighting certain traits and types from std, etc * remove certain highlighters, like user types. This has the effect of just highlighting almost the whole code base one color, and wasn't really correct either. CamelCase for types is only convention
2021-03-07Support rust visibility for enum and othersIvan Tham
2021-03-07Support dedent with rust fn qualifiersIvan Tham
2021-02-17Dedent rust await function with ?Ivan Tham
2021-02-17Dedent rust empty matchIvan Tham
2020-12-17Rust dedent after .awaitIvan Tham
2020-12-17Rust handle [ indent like { and (Ivan Tham
2020-10-12Fix rust highlighting after regions highlighter behaviour changeMaxime Coste
2020-10-04Rust always indent after {Ivan Tham
2020-10-04Add missing rust indent after function {Ivan Tham
2020-09-30Rust not to indent on hashIvan Tham
2020-09-28Rust indent keyword check boundaryIvan Tham
2020-09-28Rust reindent where to match blockIvan Tham
2020-09-27Add rust test for empty line indentIvan Tham
2020-09-27Rust improve align after partial statementIvan Tham
2020-09-27Rust align open paren for if and forIvan Tham
2020-07-31Merge remote-tracking branch 'pickfire/rust-highlight'Maxime Coste
2020-07-29Clean up my previous updatesJohn Isom
2020-07-28Update deindenting in rust.kakJohn Isom
2020-07-27Update rust brace deindenting to handle bad indentation edge caseJohn Isom
2020-07-26Update comment wording for deindentationJohn Isom
2020-07-26Fix indentation rule for rust.kakJohn Isom
2020-07-09Improve rust comment closing handlingIvan Tham
/// foo ///%( ) /// foo /// %( ) With `c<ret>bar<esc>`, /// foo bar /// foo /// /// bar Based on c-family block comment handling, this patch also add rust block comment indentation. This affects `o` behavior on empty comment but it allows a way more efficient way to clear comments.
2020-07-09Fix rust character highlightIvan Tham
2020-07-09Fix rust comment endIvan Tham
2020-07-09Fix rust doctest non-hidden macro highlightIvan Tham
2020-07-09Add default keyword for rustIvan Tham
2020-07-09Update rust rc commentIvan Tham
2020-06-02Merge remote-tracking branch 'pickfire/rust-doctests'Maxime Coste
2020-06-02Rust dedent { after where clauseIvan Tham
2020-05-31Rust indent after standalone whereIvan Tham
2020-05-31Rust indent block commentIvan Tham
2020-05-31Highlight rust default keyword (specialization)Ivan Tham
2020-05-31Highlight doc tests in rustIvan Tham
Feels a big laggy when system overloaded
2020-05-30Fix rust reference urlIvan Tham
2020-05-30Rust take indentation before comment to next lineIvan Tham
2020-05-30Handle dedent in rust syntaxIvan Tham
Naively handle dedent after , and ; which works most of the cases but does not work with multi level dedent.
2020-02-24Make rust auto-indenter ignore most things inside comments.Joe Neeman
Fixes #3352.
2020-01-29rc: Highlight embedded documentationFrank LENORMAND
This commit adds a `documentation` face to the builtin themes, used to highlight common documentation syntaxes: /** * JavaDoc */ /*! * QtDoc */ /// Inline documentation ## Inline documentation The face is only an alias to the `comment` one for now. Closes #1944
2019-11-11rc rust: Don't set an arbitrary formatterFrank LENORMAND
Users who want to use a formatter are free to pick a tool of their choosing and set `formatcmd` in their user configuration.
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-08-07support raw strings withing the meta attributesAndrey Orst
2019-08-06fix #3043Andrey Orst