before_comment fix.

When two or more comments are followed by a node, use the closest
comment as the before_comment. Prior to the fix, this combination
left node unbefore_commented:
// comment1 \n // comment2 \n node
This commit is contained in:
Miguel Lechon
2021-03-04 15:18:42 +01:00
parent e7dfe525c5
commit b72890d44e
2 changed files with 5 additions and 2 deletions
-1
View File
@@ -11,7 +11,6 @@
// - Outputting anything to MD or C code ideally would do something
// smart with auto-indentation, since some people have wanted readable
// layout (if they aren't using 4coder with virtual whitespace basically)
// - Building with Clang
// - Split out C-related stuff into helper language layers
// - Helpers for parsing NodeFlags, figuring out which nodes in a set are
// separated by a semicolon, something like MD_SeekNodeWithFlags(node) -> node ?