Skip to content

Commit 2eb0008

Browse files
authored
Merge pull request #20945 from jhpratt/master
Fix typos, backtick errors/omissions
2 parents f7de8ae + ea9a188 commit 2eb0008

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/ide/src/syntax_highlighting.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
// ![Semantic Syntax Highlighting](https://user-images.githubusercontent.com/48062697/113164457-06cfb980-9239-11eb-819b-0f93e646acf8.png)
191191
// ![Semantic Syntax Highlighting](https://user-images.githubusercontent.com/48062697/113187625-f7f50100-9250-11eb-825e-91c58f236071.png)

0 commit comments

Comments
 (0)