Skip to content

Commit 47a4b6c

Browse files
committed
Merge branch 'code-string-literals' of github.com:Diggsey/rfcs into code-string-literals
2 parents f889c3e + a48ef56 commit 47a4b6c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

text/0000-code-literals.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ into multi-line string literals.
7171
was being embedded, then the indentation would be lost.
7272
Finally, although `rustfmt` could in principle reformat
7373
these strings, in practice doing so in a reasonable way
74-
is complicated and so this has never been enabled.
74+
is complicated and so this has never been enabled by default.
7575

7676
3. Raw string literals, eg. `r#"I can use "s!"#`
7777

@@ -251,7 +251,7 @@ problems with this (as demonstrated in this document).
251251

252252
### Quote style
253253

254-
- **3+N backticks**
254+
- :heavy_check_mark: **3+N backticks**
255255
```rust
256256
let _ = ```
257257
some code
@@ -289,7 +289,7 @@ problems with this (as demonstrated in this document).
289289

290290
### Indentation rules
291291

292-
- **Relative to closing quote + retain final newline**
292+
- :heavy_check_mark: **Relative to closing quote + retain final newline**
293293

294294
Benefits:
295295
- Allows every possible indentation to be represented.
@@ -331,9 +331,9 @@ problems with this (as demonstrated in this document).
331331
Drawbacks:
332332
- Some indentations cannot be represented.
333333

334-
### Miscellaneous
334+
### Modifications
335335

336-
- **Language hint directly following opening quote**
336+
- :heavy_check_mark: **Language hint directly following opening quote**
337337

338338
This is intended to allow extra information (eg. language) to be
339339
conveyed by the programmer to macros and/or their IDE. For example:
@@ -345,7 +345,8 @@ problems with this (as demonstrated in this document).
345345
Here, an intelligent IDE could apply syntax highlighting to the nested
346346
code block, knowing that the code is SQL.
347347

348-
- **Annotation on closing quote to remove trailing newline**
348+
- :heavy_check_mark: **Annotation on closing quote to remove trailing
349+
newline**
349350

350351
For indentation rules where the final quote must appear on
351352
its own line and there is no way to represent a string without

0 commit comments

Comments
 (0)