Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Dec 20, 2018
1 parent b8983f9 commit 18bf4cf
Show file tree
Hide file tree
Showing 6 changed files with 11,397 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/asm-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ class AsmParser extends AsmRegex {
const endBlock = /\.(cfi_endproc|data|text|section)/;
let source = null;
let mayRemovePreviousLabel = true;
let keepInlineCode = false;

let inNvccDef = false;
let inNvccCode = false;
Expand Down Expand Up @@ -274,10 +275,14 @@ class AsmParser extends AsmRegex {
const lastLine = result[result.length - 1];
if (lastLine.text && lastLine.text.match(this.labelDef)) {
result.pop();
keepInlineCode = false;
} else {
keepInlineCode = true;
}
mayRemovePreviousLabel = false;
}
return;

if (!keepInlineCode) return;
} else {
mayRemovePreviousLabel = true;
}
Expand Down
Loading

0 comments on commit 18bf4cf

Please sign in to comment.