Skip to content

Commit

Permalink
Add .hword and .octa to datadef regex (#4460)
Browse files Browse the repository at this point in the history
Closes #4434
  • Loading branch information
RubenRBS authored and mattgodbolt committed Jan 24, 2023
1 parent 02a40ee commit ffba6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parsers/asm-parser.ts
Expand Up @@ -85,7 +85,7 @@ export class AsmParser extends AsmRegex implements IAsmParser {
// 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|half|[dx]?word|long|quad|value|zero)/;
this.dataDefn = /^\s*\.(string|asciz|ascii|[1248]?byte|short|half|[dhx]?word|long|quad|octa|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 ffba6b6

Please sign in to comment.