```rust
macro_rules! foo {
- ($a:ident : $b:ty) => {
+ ($a: ident : $b: ty) => {
$a(42): $b;
};
- ($a:ident $b:ident $c:ident) => {
+ ($a: ident $b: ident $c: ident) => {
$a = $b + $c;
};
}
```rust
macro_rules! foo {
- ($a:ident : $b:ty) => { $a(42): $b; };
- ($a:ident $b:ident $c:ident) => { $a=$b+$c; };
+ ($a: ident : $b: ty) => { $a(42): $b; };
+ ($a: ident $b: ident $c: ident) => { $a=$b+$c; };
}
```
Unix or Windows line endings
-- **Default value**: `"Native"`
-- **Possible values**: `"Native"`, `"Unix"`, `"Windows"`
+- **Default value**: `"Auto"`
+- **Possible values**: `"Auto"`, `"Native"`, `"Unix"`, `"Windows"`
- **Stable**: Yes
+#### `Auto` (default):
+
+The newline style is detected automatically on a per-file basis. Files
+with mixed line endings will be converted to the first detected line
+ending style.
+
+#### `Native`
+
+Line endings will be converted to `\r\n` on Windows and `\n` on all
+other platforms.
+
+#### `Unix`
+
+Line endings will be converted to `\n`.
+
+#### `Windows`
+
+Line endings will be converted to `\r\n`.
+
## `normalize_comments`
Convert /* */ comments to // comments where possible