Skip to content

Commit

Permalink
fix label regex
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Sep 30, 2023
1 parent 986f30e commit 5cce1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rs/mapfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl MapFile {
let regex_file_data_entry = Regex::new(r"^\s+(?P<section>\.[^\s]+)\s+(?P<vram>0x[^\s]+)\s+(?P<size>0x[^\s]+)\s+(?P<name>[^\s]+)$").unwrap();
let regex_function_entry = Regex::new(r"^\s+(?P<vram>0x[^\s]+)\s+(?P<name>[^\s]+)$").unwrap();
// regex_function_entry = re.compile(r"^\s+(?P<vram>0x[^\s]+)\s+(?P<name>[^\s]+)((\s*=\s*(?P<expression>.+))?)$")
let regex_label = Regex::new(r"^(?P<name>\.?L[0-9A-F]{8})$").unwrap();
let regex_label = Regex::new(r"(?P<name>\.?L[0-9A-F]{8})$").unwrap();
let regex_fill = Regex::new(r"^\s+(?P<fill>\*[^\s\*]+\*)\s+(?P<vram>0x[^\s]+)\s+(?P<size>0x[^\s]+)\s*$").unwrap();
let regex_segment_entry = Regex::new(r"(?P<name>([^\s]+)?)\s+(?P<vram>0x[^\s]+)\s+(?P<size>0x[^\s]+)\s+(?P<loadaddress>(load address)?)\s+(?P<vrom>0x[^\s]+)$").unwrap();

Expand Down

0 comments on commit 5cce1be

Please sign in to comment.