diff options
author | Lukas Wirth <[email protected]> | 2020-10-14 21:21:58 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-10-14 21:50:26 +0100 |
commit | bab29e65eb87f4765fb22d58bff723780980eeb6 (patch) | |
tree | de74eb9ddc59fd542c6aa5c14e778e1f3560cccf /crates/ide/src/syntax_highlighting/format.rs | |
parent | 8c6dc5f28a5550acffbbb063335833304dac266d (diff) |
Default::default the highlighters
Diffstat (limited to 'crates/ide/src/syntax_highlighting/format.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/format.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ide/src/syntax_highlighting/format.rs b/crates/ide/src/syntax_highlighting/format.rs index 3ab01295a..71bde24f0 100644 --- a/crates/ide/src/syntax_highlighting/format.rs +++ b/crates/ide/src/syntax_highlighting/format.rs | |||
@@ -12,10 +12,6 @@ pub(super) struct FormatStringHighlighter { | |||
12 | } | 12 | } |
13 | 13 | ||
14 | impl FormatStringHighlighter { | 14 | impl FormatStringHighlighter { |
15 | pub(super) fn reset(&mut self) { | ||
16 | self.format_string = None; | ||
17 | } | ||
18 | |||
19 | pub(super) fn check_for_format_string(&mut self, parent: &SyntaxNode) { | 15 | pub(super) fn check_for_format_string(&mut self, parent: &SyntaxNode) { |
20 | // Check if macro takes a format string and remember it for highlighting later. | 16 | // Check if macro takes a format string and remember it for highlighting later. |
21 | // The macros that accept a format string expand to a compiler builtin macros | 17 | // The macros that accept a format string expand to a compiler builtin macros |