mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Feat: ability to handle inline comment
This commit is contained in:
@@ -63,6 +63,7 @@ function processFile(span: Span, sourcePath: string) {
|
||||
let sgmodulePathname: string | null = null;
|
||||
|
||||
try {
|
||||
let l: string | null = '';
|
||||
for await (const line of readFileByLine(sourcePath)) {
|
||||
if (line.startsWith(MAGIC_COMMAND_SKIP)) {
|
||||
return $skip;
|
||||
@@ -83,7 +84,7 @@ function processFile(span: Span, sourcePath: string) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const l = processLine(line);
|
||||
l = processLine(line);
|
||||
if (l) {
|
||||
lines.push(l);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user