Skip to content

Commit

Permalink
Add missing data definition directives (fixes #4275) (#4277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bueddl committed Nov 12, 2022
1 parent 5c00d6c commit fef60ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion lib/parsers/asm-parser.ts
Expand Up @@ -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]/;
Expand Down

0 comments on commit fef60ac

Please sign in to comment.