Skip to content

Commit

Permalink
Add .hword and .octa to datadefs (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Dec 20, 2022
1 parent d0466f6 commit 0640b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/regexes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Regexes
static constexpr auto labelFindMips = ctre::match<R"re([$.A-Z_a-z][\w$.]*)re">;
static constexpr auto mipsLabelDefinition = ctre::match<R"re(^\$[\w$.]+:)re">;

static constexpr auto dataDefn = ctre::search<R"re(^\h*\.(string|asciz|ascii|[1248]?byte|short|half|[dx]?word|long|quad|value|zero))re">;
static constexpr auto dataDefn = ctre::search<R"re(^\h*\.(string|asciz|ascii|[1248]?byte|short|half|[dhx]?word|long|quad|octa|value|zero))re">;
static constexpr auto fileFind = ctre::match<R"re(^\h*\.file\h+(\d+)\h+"([^"]+)"(\h+"([^"]+)")?.*)re">;
static constexpr auto hasOpcodeRe = ctre::search<R"re(^\h*[A-Za-z])re">;
// todo: stop using this static constexpr auto instructionRe = make_matcher<R"re(^\h*[A-Za-z]+)re">;
Expand Down

0 comments on commit 0640b26

Please sign in to comment.