@@ -114,9 +114,9 @@ pub struct HighlightConfig<'a> {
114114// |-----------|--------------------------------|
115115// |operator| Emitted for general operators.|
116116// |arithmetic| Emitted for the arithmetic operators `+`, `-`, `*`, `/`, `+=`, `-=`, `*=`, `/=`.|
117- // |bitwise| Emitted for the bitwise operators `|`, `&`, `!`, `^`, `|=`, `&=`, `^=`.|
117+ // |bitwise| Emitted for the bitwise operators `\ |`, `&`, `!`, `^`, `\ |=`, `&=`, `^=`.|
118118// |comparison| Emitted for the comparison oerators `>`, `<`, `==`, `>=`, `<=`, `!=`.|
119- // |logical| Emitted for the logical operators `| |`, `&&`, `!`.|
119+ // |logical| Emitted for the logical operators `\|\ |`, `&&`, `!`.|
120120//
121121// - For punctuation:
122122//
@@ -172,20 +172,20 @@ pub struct HighlightConfig<'a> {
172172// |constant| Emitted for const.|
173173// |consuming| Emitted for locals that are being consumed when use in a function call.|
174174// |controlFlow| Emitted for control-flow related tokens, this includes th `?` operator.|
175- // |crateRoot| Emitted for crate names, like `serde` and `crate.|
175+ // |crateRoot| Emitted for crate names, like `serde` and `crate` .|
176176// |declaration| Emitted for names of definitions, like `foo` in `fn foo(){}`.|
177- // |defaultLibrary| Emitted for items from built-in crates (std, core, allc , test and proc_macro).|
177+ // |defaultLibrary| Emitted for items from built-in crates (std, core, alloc , test and proc_macro).|
178178// |documentation| Emitted for documentation comment.|
179179// |injected| Emitted for doc-string injected highlighting like rust source blocks in documentation.|
180180// |intraDocLink| Emitted for intra doc links in doc-string.|
181- // |library| Emitted for items that are defined outside of the current crae .|
181+ // |library| Emitted for items that are defined outside of the current crate .|
182182// |macro| Emitted for tokens inside macro call.|
183183// |mutable| Emitted for mutable locals and statics as well as functions taking `&mut self`.|
184- // |public| Emitted for items that are from the current crate and are `pub.|
185- // |reference| Emitted for locals behind a reference and functions taking self` by reference.|
186- // |static| Emitted for "static" functions, also known as functions that d not take a `self` param, as well as statics and consts.|
184+ // |public| Emitted for items that are from the current crate and are `pub` .|
185+ // |reference| Emitted for locals behind a reference and functions taking ` self` by reference.|
186+ // |static| Emitted for "static" functions, also known as functions that do not take a `self` param, as well as statics and consts.|
187187// |trait| Emitted for associated trait item.|
188- // |unsafe| Emitted for unsafe operations, like unsafe function calls, as ell as the `unsafe` token.|
188+ // |unsafe| Emitted for unsafe operations, like unsafe function calls, as well as the `unsafe` token.|
189189//
190190// 
191191// 
0 commit comments