mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add character literal parsing and validation
This commit is contained in:
parent
19c6cbd954
commit
9b5bbab104
6 changed files with 397 additions and 2 deletions
|
@ -39,11 +39,12 @@ mod grammar;
|
|||
mod parser_api;
|
||||
mod parser_impl;
|
||||
mod reparsing;
|
||||
|
||||
mod string_lexing;
|
||||
mod syntax_kinds;
|
||||
pub mod text_utils;
|
||||
/// Utilities for simple uses of the parser.
|
||||
pub mod utils;
|
||||
mod validation;
|
||||
mod yellow;
|
||||
|
||||
pub use crate::{
|
||||
|
@ -98,6 +99,8 @@ impl File {
|
|||
self.root.borrowed()
|
||||
}
|
||||
pub fn errors(&self) -> Vec<SyntaxError> {
|
||||
self.root.root_data().clone()
|
||||
let mut errors = self.root.root_data().clone();
|
||||
errors.extend(validation::validate(self));
|
||||
errors
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue