diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9b50d1110b1..d13c0727875 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -125,3 +125,4 @@ From oldest to newest contributor, we would like to thank: - [Fábio S. V. Medeiros](https://github.com/fabiosvm) - [Jackson Machado](https://github.com/jacksjm) - [Cordell Bloor](https://github.com/cgmb) +- [Sebastian Büttner](https://github.com/bueddl) diff --git a/lib/parsers/asm-parser.ts b/lib/parsers/asm-parser.ts index 168c3813c82..ca08c3fd4a3 100644 --- a/lib/parsers/asm-parser.ts +++ b/lib/parsers/asm-parser.ts @@ -83,7 +83,7 @@ export class AsmParser extends AsmRegex { // MIPS labels can start with a $ sign, but other assemblers use $ to mean literal. this.labelFindMips = /[$.A-Z_a-z][\w$.]*/g; this.mipsLabelDefinition = /^\$[\w$.]+:/; - this.dataDefn = /^\s*\.(string|asciz|ascii|[1248]?byte|short|x?word|long|quad|value|zero)/; + this.dataDefn = /^\s*\.(string|asciz|ascii|[1248]?byte|short|half|[dx]?word|long|quad|value|zero)/; this.fileFind = /^\s*\.(?:cv_)?file\s+(\d+)\s+"([^"]+)"(\s+"([^"]+)")?.*/; // Opcode expression here matches LLVM-style opcodes of the form `%blah = opcode` this.hasOpcodeRe = /^\s*(%[$.A-Z_a-z][\w$.]*\s*=\s*)?[A-Za-z]/;