Skip to content

Commit

Permalink
Fixed regex exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKoval committed Oct 21, 2022
1 parent afb91fa commit 53cd086
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
50 changes: 25 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ pub struct ParseEngine {

lazy_static! {
static ref GLOBL_REGEX: Regex = Regex::new(r"^\s*\.globl\s+(:?[\w.]+)").unwrap();
static ref INTERNAL_REGEX: Regex = Regex::new(r"^\s*\.internal\s+(:\w+)").unwrap();
static ref INTERNAL_REGEX: Regex = Regex::new(r"^\s*\.internal\s+(:?\w+)").unwrap();
static ref LABEL_REGEX: Regex = Regex::new(r"^:?[.\w]+:").unwrap();
static ref ALIAS_REGEX: Regex = Regex::new(r"^\s*\.internal-alias (:\w+),\s+(-?\d+)").unwrap();
static ref ALIAS_REGEX: Regex = Regex::new(r"^\s*\.internal-alias (:?\w+),\s+(-?\d+)").unwrap();
static ref TYPE_REGEX: Regex = Regex::new(r"^\s*\.type\s+(:?[\w.]+),\s*@([a-zA-Z]+)").unwrap();
static ref SIZE_REGEX: Regex = Regex::new(r"^\s*\.size\s+([\w.]+),\s*([.\w]+)").unwrap();
static ref BASE_GLBL_REGEX: Regex = Regex::new(r"^\s*\.global-base\s+(\d+)").unwrap();
Expand Down

0 comments on commit 53cd086

Please sign in to comment.