Skip to content

Commit a44c2ae

Browse files
committed
lintfix
1 parent 5fe6f14 commit a44c2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/asm-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class AsmParser extends AsmRegex {
268268
// Lines matching the following pattern are considered comments:
269269
// - starts with '#', '@', '//' or a single ';' (non repeated)
270270
// - starts with ';;' and the first non-whitespace before end of line is not #
271-
const commentOnly = /^\s*(((#|@|\/\/).*)|(\/\*.*\*\/)|(;\s*)|(;[^;].*)|(;;\s*[^#\s].*))$/;
271+
const commentOnly = /^\s*(((#|@|\/\/).*)|(\/\*.*\*\/)|(;\s*)|(;[^;].*)|(;;\s*[^\s#].*))$/;
272272

273273
const commentOnlyNvcc = /^\s*(((#|;|\/\/).*)|(\/\*.*\*\/))$/;
274274
const sourceTag = /^\s*\.loc\s+(\d+)\s+(\d+)\s+(.*)/;

0 commit comments

Comments
 (0)