2021-07-17 06:31:34 +00:00
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
|
|
use crate::{Block, Expr, Expression, ParserState, ParserWorkingSet, Statement};
|
|
|
|
|
2021-07-22 07:33:38 +00:00
|
|
|
fn syntax_highlight<'a, 'b>(parser_state: &'a ParserState, input: &'b [u8]) {
|
|
|
|
// let mut working_set = ParserWorkingSet::new(parser_state);
|
2021-07-17 06:31:34 +00:00
|
|
|
|
2021-07-22 07:33:38 +00:00
|
|
|
// let (block, _) = working_set.parse_source(input, false);
|
2021-07-17 06:31:34 +00:00
|
|
|
|
|
|
|
// for stmt in &block.stmts {
|
|
|
|
// match stmt {
|
|
|
|
// Statement::Expression(expr) => {
|
|
|
|
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// No merge at the end because this parse is speculative
|
|
|
|
}
|
|
|
|
|
|
|
|
fn highlight_expression(expression: &Expression) {
|
|
|
|
// match &expression.expr {
|
|
|
|
// Expr::BinaryOp()
|
|
|
|
// }
|
|
|
|
}
|