commit | 7f078bb45e184f1eaf299b0314ab25790440598c | [log] [tgz] |
---|---|---|
author | Josh Tynjala <joshtynjala@apache.org> | Thu Nov 07 14:22:15 2024 -0800 |
committer | Josh Tynjala <joshtynjala@apache.org> | Mon Dec 09 13:28:26 2024 -0800 |
tree | a3ae5683afc37f8b977a90edd4aa0396ecc2cac3 | |
parent | 064ac9c64bd51bfbd9a9cfb933fcbdbb6cff0b79 [diff] |
StreamingASTokenizer: more cases where comment tokens should be ignored and the previous token before the comment should be checked instead. Mainly applies to the formatter, since comment tokens are usually omitted by the compiler before parsing. However, asdoc comments still need to be ignored sometimes. This differentiates between the last token that isn't a regular comment and the last token that isn't a regular comment or an asdoc comment.