mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Feat: ability to handle inline comment
This commit is contained in:
@@ -9,8 +9,9 @@ export default async function runAgainstSourceFile(
|
||||
/** Secret keyword collection, only use for special purpose */
|
||||
keywordSet?: Set<string> | null
|
||||
) {
|
||||
let l: string | null = '';
|
||||
for await (const line of readFileByLine(filePath)) {
|
||||
const l = processLine(line);
|
||||
l = processLine(line);
|
||||
if (!l) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user