Michał Kruszewski
8870c7e1f0
rust: Highlight char and byte literals as values
...
Char and byte literals are values.
There is no point in using fixed colors for them.
2024-04-16 19:19:12 +02:00
James Wainwright
078e5900a4
Add "union" as a keyword for Rust syntax
2022-11-01 21:29:07 +00:00
Maxime Coste
ef8a11b3db
Make x
just select the full lines
...
`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-07-05 08:43:40 +10:00
Skyler Hawthorne
fb04102fe3
add TODO comment highlighting
2021-05-02 20:38:42 -04:00
Skyler Hawthorne
a25ef2bd6d
fix rust pub highlight
2021-05-01 00:35:56 -04:00
Skyler Hawthorne
488798d977
improve colors for rust/solarized
...
* 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-04-28 21:27:43 -04:00
Ivan Tham
ebe7f82bb2
Support rust visibility for enum and others
2021-03-07 14:22:43 +08:00
Ivan Tham
8df5621334
Support dedent with rust fn qualifiers
2021-03-07 14:12:01 +08:00
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