Ivan Tham
4e594e034a
Dedent rust await function with ?
2021-02-17 01:17:17 +08:00
Ivan Tham
049591f6b4
Dedent rust empty match
2021-02-17 01:17:14 +08:00
Ivan Tham
1965b909e1
Rust dedent after .await
2020-12-17 20:07:44 +08:00
Ivan Tham
ffbdcaa95c
Rust handle [ indent like { and (
2020-12-17 11:19:23 +08:00
Maxime Coste
1de058cdf8
Fix rust highlighting after regions highlighter behaviour change
2020-10-12 13:04:08 +11:00
Ivan Tham
c148fdbe9a
Rust always indent after {
2020-10-04 23:40:49 +08:00
Ivan Tham
b0ae30a443
Add missing rust indent after function {
2020-10-04 14:19:33 +08:00
Ivan Tham
bfca07da4d
Rust not to indent on hash
2020-09-30 00:37:35 +08:00
Ivan Tham
56e12013c8
Rust indent keyword check boundary
2020-09-28 00:09:12 +08:00
Ivan Tham
df68a77ed2
Rust reindent where to match block
2020-09-28 00:03:53 +08:00
Ivan Tham
785cbaeaed
Add rust test for empty line indent
2020-09-27 23:34:08 +08:00
Ivan Tham
5c8dfcdfa9
Rust improve align after partial statement
2020-09-27 15:53:15 +08:00
Ivan Tham
11d98a07dc
Rust align open paren for if and for
2020-09-27 15:52:42 +08:00
Maxime Coste
8d51a99a3b
Merge remote-tracking branch 'pickfire/rust-highlight'
2020-07-31 07:50:14 +10:00
John Isom
9d4e33c775
Clean up my previous updates
2020-07-29 09:40:58 -06:00
John Isom
2de803ee17
Update deindenting in rust.kak
2020-07-28 20:48:57 -06:00
John Isom
de214d262c
Update rust brace deindenting to handle bad indentation edge case
2020-07-27 12:15:11 -06:00
John Isom
565e3bef1d
Update comment wording for deindentation
2020-07-26 20:46:47 -06:00
John Isom
194cb17aae
Fix indentation rule for rust.kak
2020-07-26 20:04:18 -06:00
Ivan Tham
974684aa68
Improve rust comment closing handling
...
/// 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-09 23:02:50 +08:00
Ivan Tham
21c38f37cd
Fix rust character highlight
2020-07-09 00:21:11 +08:00
Ivan Tham
7bd459f774
Fix rust comment end
2020-07-09 00:21:11 +08:00
Ivan Tham
eac5986323
Fix rust doctest non-hidden macro highlight
2020-07-09 00:21:11 +08:00
Ivan Tham
e14cc26f1b
Add default keyword for rust
2020-07-09 00:21:11 +08:00
Ivan Tham
7e09e7fcd5
Update rust rc comment
2020-07-09 00:21:11 +08:00
Maxime Coste
d32d185d48
Merge remote-tracking branch 'pickfire/rust-doctests'
2020-06-02 18:44:53 +10:00
Ivan Tham
12cafe3ed4
Rust dedent { after where clause
2020-06-02 00:26:47 +08:00
Ivan Tham
b1beea8638
Rust indent after standalone where
2020-05-31 18:13:04 +08:00
Ivan Tham
de4b7f3864
Rust indent block comment
2020-05-31 18:07:17 +08:00
Ivan Tham
97c4cb243b
Highlight rust default keyword (specialization)
2020-05-31 17:49:43 +08:00
Ivan Tham
4ccb5fd315
Highlight doc tests in rust
...
Feels a big laggy when system overloaded
2020-05-31 11:47:47 +08:00
Ivan Tham
479790633b
Fix rust reference url
2020-05-30 19:23:55 +08:00
Ivan Tham
dd3257e3f2
Rust take indentation before comment to next line
2020-05-30 10:54:55 +08:00
Ivan Tham
7c791f130c
Handle dedent in rust syntax
...
Naively handle dedent after , and ; which works most of the cases but
does not work with multi level dedent.
2020-05-30 10:54:55 +08:00
Joe Neeman
5024fe17f6
Make rust auto-indenter ignore most things inside comments.
...
Fixes #3352 .
2020-02-24 12:51:03 -06:00
Frank LENORMAND
0c4c744362
rc: Highlight embedded documentation
...
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
2020-01-29 20:03:21 +01:00
Frank LENORMAND
fa6396405e
rc rust: Don't set an arbitrary formatter
...
Users who want to use a formatter are free to pick a tool of their
choosing and set `formatcmd` in their user configuration.
2019-11-11 14:20:26 +01:00
Frank LENORMAND
21614cb06e
src: Create a <semicolon> named key
...
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-22 11:02:06 +02:00
Maxime Coste
e4fb70ebec
Replace ModeChange hooks by ModePush and ModePop
...
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd
hooks.
Closes #2545
2019-10-16 20:45:53 +11:00
Andrey Orst
396236f728
support raw strings withing the meta attributes
2019-08-07 11:37:02 +03:00
Andrey Orst
3156ecacc3
fix #3043
2019-08-06 17:02:51 +03:00
Andrey Orst
677d1efb23
move regex highlighters to the top, add method, field and function hl
2019-07-22 22:32:26 +03:00
Andrey Orst
3c0a350079
require module the old way
2019-07-22 18:22:44 +03:00
Andrey Orst
a81eb158be
extend Rust highlighting
2019-07-22 15:56:29 +03:00
Dawid Ciężarkiewicz
d4b57b5b00
rust: Highlight async/await keywords
2019-05-17 20:26:30 -07:00
Justin Frank
48abc3cbf3
Changed ' 🦀 ' to '§' for complex module quoting
2019-04-13 12:57:57 -07:00
Justin Frank
80ac46e09d
Fixed many of the filetype support modules to not use BufSetOption
to load
2019-04-09 20:54:19 -07:00
Justin Frank
c3f694a28f
Modified base files to use modules
2019-04-08 17:02:44 -07:00
Grant Moyer
71c5077bec
Block indent on newline when previous line is '(stuff' and move 'stuff' to own line
...
Also, align closing paren on own line with opening paren
2019-03-28 13:17:57 -04:00
Ivan Tham
ac4ad861ab
Fix hook
2019-03-23 15:48:12 +00:00