mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
basic highlighting flow using MarkupNodes
This commit is contained in:
parent
853badf777
commit
37704323b1
16 changed files with 269 additions and 301 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{syntax_highlight::HighlightStyle};
|
||||
use crate::{syntax_highlight::HighlightStyle, slow_pool::MarkNodeId};
|
||||
|
||||
use super::{attribute::Attributes, nodes, nodes::MarkupNode};
|
||||
|
||||
|
@ -138,3 +138,11 @@ pub fn new_comments_mn(
|
|||
newlines_at_end,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn assign_mn(val_name_mn_id: MarkNodeId, equals_mn_id: MarkNodeId, expr_mark_node_id: MarkNodeId) -> MarkupNode {
|
||||
MarkupNode::Nested {
|
||||
children_ids: vec![val_name_mn_id, equals_mn_id, expr_mark_node_id],
|
||||
parent_id_opt: None,
|
||||
newlines_at_end: 3,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue