Open sloganking opened 2 years ago
To find all comments in code, using a scanner
.filter()
out all tokens of non comment type.It appears syntect
could be (ab)used to support this. It divides lines into tokens based on their syntax. These tokens are formed in a way that can distinguish between what's a string and what's an actual comment. However it's not ideal.
This is preventing the creation of tests. Though I guess I could create tests of runs on a language that didn't have //
comment starters like rust.
This issue also causes multi-line comments to have the same problem.
This is preventing the creation of tests. Though I guess I could create tests of runs on a language that didn't have
//
comment starters like rust.
Affected tests are being done from loading strings to tests from files
The
//>
and//<
in the above multi-line string will currently be treated as structured comments. This should not happen.