Skip to content

Commit ae9a668

Browse files
nik-revtraviscross
andcommitted
Remove note about injected language into string
Co-authored-by: Travis Cross <[email protected]>
1 parent 7f9417c commit ae9a668

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

text/3830-dedented-string-literals.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,18 +1087,12 @@ Differences:
10871087
```
10881088

10891089
With the `sql` not affecting the output, but can aid in syntax highlighting and such.
1090-
1091-
1. This is not necessary, as at the moment you can add a block comment next to the string, which syntax highlighters can use *today* to inject whatever language is specified.
1092-
1093-
```rs
1094-
let sql = /* sql */ "SELECT * FROM table;";
1095-
```
10961090

1097-
2. Is considered out of scope for this RFC to consider.
1091+
1. Is considered out of scope for this RFC to consider.
10981092

10991093
It would be a backward-compatible change to make for a future RFC, if it's desired.
11001094

1101-
3. [Expression attributes](https://github.com/rust-lang/rust/issues/15701) are likely to be more suitable for this purpose. (not part of this RFC)
1095+
1. [Expression attributes](https://github.com/rust-lang/rust/issues/15701) are likely to be more suitable for this purpose. (not part of this RFC)
11021096

11031097
```rs
11041098
let sql = #[editor::language("sql")] "SELECT * FROM table;";

0 commit comments

Comments
 (0)