diff options
author | Aleksey Kladov <[email protected]> | 2019-01-26 08:51:36 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-26 08:51:36 +0000 |
commit | 9457b1f0e64d38e7dc24d8c66a52ffef759d4dbf (patch) | |
tree | a9703f8d4338d3b0be55b170ae4fff3d8441ab9d /crates/ra_ide_api/src/syntax_highlighting.rs | |
parent | ac757e114e9dcbc70600803dd4adc4f99ecde78e (diff) |
rename source_file -> parse
Diffstat (limited to 'crates/ra_ide_api/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide_api/src/syntax_highlighting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/syntax_highlighting.rs b/crates/ra_ide_api/src/syntax_highlighting.rs index 16d23e140..26bde495b 100644 --- a/crates/ra_ide_api/src/syntax_highlighting.rs +++ b/crates/ra_ide_api/src/syntax_highlighting.rs | |||
@@ -7,7 +7,7 @@ use crate::{ | |||
7 | }; | 7 | }; |
8 | 8 | ||
9 | pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRange> { | 9 | pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRange> { |
10 | let source_file = db.source_file(file_id); | 10 | let source_file = db.parse(file_id); |
11 | let mut res = ra_ide_api_light::highlight(source_file.syntax()); | 11 | let mut res = ra_ide_api_light::highlight(source_file.syntax()); |
12 | for macro_call in source_file | 12 | for macro_call in source_file |
13 | .syntax() | 13 | .syntax() |