mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
debugging inline comment bug
This commit is contained in:
parent
30c1d218a7
commit
5bd776f972
17 changed files with 206 additions and 30 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue