Extract libeditor
This commit is contained in:
parent
b9189ed2db
commit
966e9db2b8
15 changed files with 138 additions and 50 deletions
|
|
@ -45,7 +45,7 @@ pub use {
|
|||
yellow::{SyntaxNode, SyntaxNodeRef, SyntaxRoot, TreeRoot},
|
||||
};
|
||||
|
||||
pub fn parse(text: String) -> SyntaxNode {
|
||||
pub fn parse(text: &str) -> SyntaxNode {
|
||||
let tokens = tokenize(&text);
|
||||
parser_impl::parse::<yellow::GreenBuilder>(text, &tokens)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue