Skip to content

Commit

Permalink
Add half and dword to dataDef RE (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Nov 12, 2022
1 parent b4add94 commit d0466f6
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|x?word|long|quad|value|zero))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 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 d0466f6

Please sign in to comment.