diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-11-01 10:16:24 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-11-01 10:16:24 +0000 |
commit | 3ec9f958b39b23b945dd60088843d19fe6cef2d7 (patch) | |
tree | d568d87091edbe86161889906e26b064e24820e6 /crates/ra_syntax/src/syntax_kinds | |
parent | 2050812cad7905c33870c36362593360f7216310 (diff) | |
parent | 61580f3cb82821c65dc93627d9b3ec9390cce281 (diff) |
Merge #179
179: Remove DOC_COMMENT r=matklad a=kjeremy
Closes #166
Co-authored-by: Jeremy A. Kolb <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds')
-rw-r--r-- | crates/ra_syntax/src/syntax_kinds/generated.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/syntax_kinds/mod.rs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs index 58e2e9e9c..6568f1a37 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs | |||
@@ -116,7 +116,6 @@ pub enum SyntaxKind { | |||
116 | BYTE_STRING, | 116 | BYTE_STRING, |
117 | RAW_BYTE_STRING, | 117 | RAW_BYTE_STRING, |
118 | COMMENT, | 118 | COMMENT, |
119 | DOC_COMMENT, | ||
120 | SHEBANG, | 119 | SHEBANG, |
121 | ROOT, | 120 | ROOT, |
122 | STRUCT_DEF, | 121 | STRUCT_DEF, |
@@ -378,7 +377,6 @@ impl SyntaxKind { | |||
378 | BYTE_STRING => &SyntaxInfo { name: "BYTE_STRING" }, | 377 | BYTE_STRING => &SyntaxInfo { name: "BYTE_STRING" }, |
379 | RAW_BYTE_STRING => &SyntaxInfo { name: "RAW_BYTE_STRING" }, | 378 | RAW_BYTE_STRING => &SyntaxInfo { name: "RAW_BYTE_STRING" }, |
380 | COMMENT => &SyntaxInfo { name: "COMMENT" }, | 379 | COMMENT => &SyntaxInfo { name: "COMMENT" }, |
381 | DOC_COMMENT => &SyntaxInfo { name: "DOC_COMMENT" }, | ||
382 | SHEBANG => &SyntaxInfo { name: "SHEBANG" }, | 380 | SHEBANG => &SyntaxInfo { name: "SHEBANG" }, |
383 | ROOT => &SyntaxInfo { name: "ROOT" }, | 381 | ROOT => &SyntaxInfo { name: "ROOT" }, |
384 | STRUCT_DEF => &SyntaxInfo { name: "STRUCT_DEF" }, | 382 | STRUCT_DEF => &SyntaxInfo { name: "STRUCT_DEF" }, |
diff --git a/crates/ra_syntax/src/syntax_kinds/mod.rs b/crates/ra_syntax/src/syntax_kinds/mod.rs index 0fcd07cbf..d53886676 100644 --- a/crates/ra_syntax/src/syntax_kinds/mod.rs +++ b/crates/ra_syntax/src/syntax_kinds/mod.rs | |||
@@ -19,7 +19,7 @@ pub(crate) struct SyntaxInfo { | |||
19 | impl SyntaxKind { | 19 | impl SyntaxKind { |
20 | pub fn is_trivia(self) -> bool { | 20 | pub fn is_trivia(self) -> bool { |
21 | match self { | 21 | match self { |
22 | WHITESPACE | COMMENT | DOC_COMMENT => true, | 22 | WHITESPACE | COMMENT => true, |
23 | _ => false, | 23 | _ => false, |
24 | } | 24 | } |
25 | } | 25 | } |