Add comments to the tree #24

Merged
probablycorey merged 5 commits from comments-in-tree into main 2025-11-06 00:19:35 +00:00
  1. Makes it so we can see the comments in the parse tree
  2. Requires that comments start with # instead of just #. Why? So we can create words with # in them. Is this a good idea? No clue, I don't feel strong about it, but I've been trying to let words be as weird as they want to be.
1. Makes it so we can see the comments in the parse tree 2. Requires that comments start with `# ` instead of just `#`. Why? So we can create words with # in them. Is this a good idea? No clue, I don't feel strong about it, but I've been trying to let words be as weird as they want to be.
probablycorey added 1 commit 2025-11-05 18:31:32 +00:00
probablycorey added 1 commit 2025-11-05 20:40:35 +00:00
defunkt reviewed 2025-11-05 21:10:38 +00:00
@ -637,3 +658,3 @@
case terms.Array: {
const children = getAllChildren(node)
const children = getAllChildren(node).filter((n) => n.type.id !== terms.Comment)
Owner

Maybe put the filter in getAllChildren() so we won't have to worry about it?

Maybe put the filter in getAllChildren() so we won't have to worry about it?
Author
Owner

YES

YES
probablycorey added 1 commit 2025-11-06 00:18:39 +00:00
probablycorey added 2 commits 2025-11-06 00:19:25 +00:00
probablycorey merged commit 7229f4afd0 into main 2025-11-06 00:19:35 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: probablycorey/shrimp#24
No description provided.