rust-analyzer/crates
Chayim Refael Friedman f92be7eaab Escape characters in doc comments in macros correctly
Previously they were escaped twice, both by `.escape_default()` and the debug view of strings (`{:?}`). This leads to things like newlines or tabs in documentation comments being `\\n`, but we unescape literals only once, ending up with `\n`.

This was hard to spot because CMark unescaped them (at least for `'` and `"`), but it did not do so in code blocks.

This also was the root cause of #7781. This issue was solved by using `.escape_debug()` instead of `.escape_default()`, but the real issue remained.
We can bring the `.escape_default()` back by now, however I didn't do it because it is probably slower than `.escape_debug()` (more work to do), and also in order to change the code the least.
2021-04-18 03:16:38 +03:00
..
base_db Improve readability 2021-03-23 13:04:43 +03:00
cfg a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Unleash macro 2.0 in hightlight and more 2021-03-27 14:42:49 +08:00
hir_def Remove unused test fixtures 2021-03-28 10:41:18 +08:00
hir_expand Basic Support Macro 2.0 2021-03-27 13:44:54 +08:00
hir_ty Basic Support Macro 2.0 2021-03-27 13:44:54 +08:00
ide Merge #8212 2021-03-28 15:43:11 +00:00
ide_assists Merge #8213 2021-03-27 10:00:37 +00:00
ide_completion completion relevance distinguish between exact type match and could unify 2021-03-26 09:18:18 -07:00
ide_db Merge #8212 2021-03-28 15:43:11 +00:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Escape characters in doc comments in macros correctly 2021-04-18 03:16:38 +03:00
parser Parse extended_key_value_attributes 2021-03-19 02:13:46 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Trim down IPC json size 2021-03-24 15:01:37 +08:00
proc_macro_srv Improve message usage in proc-macro 2021-03-24 03:51:06 +08:00
proc_macro_test
profile add more counts 2021-01-27 12:39:19 +03:00
project_model clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
rust-analyzer completion relevance distinguish between exact type match and could unify 2021-03-26 09:18:18 -07:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Add support for doc on hover for macro 2.0 2021-03-27 14:57:11 +08:00
test_utils Add new_source_root meta to test fixtures 2021-03-16 15:28:02 +01:00
text_edit
toolchain
tt a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00