debugging inline comment bug

This commit is contained in:
Anton-4 2021-12-01 16:57:28 +01:00
parent 30c1d218a7
commit 5bd776f972
17 changed files with 206 additions and 30 deletions

View file

@ -1,4 +1,4 @@
use roc_ast::lang::core::{ast::ASTNodeId, expr::expr2::ExprId};
use roc_ast::{lang::core::{ast::ASTNodeId, expr::expr2::ExprId}};
use crate::{slow_pool::MarkNodeId, syntax_highlight::HighlightStyle};
@ -147,3 +147,14 @@ pub fn new_arrow_mn(ast_node_id: ASTNodeId, newlines_at_end: usize) -> MarkupNod
newlines_at_end,
}
}
pub fn new_comments_mn(comments: String, ast_node_id: ASTNodeId, newlines_at_end: usize) -> MarkupNode {
MarkupNode::Text {
content: comments,
ast_node_id,
syn_high_style: HighlightStyle::Comment,
attributes: Attributes::default(),
parent_id_opt: None,
newlines_at_end,
}
}