Skip to content

Commit

Permalink
Merge pull request #842 from tonlabs/IgorKoval/onCodeUpgrade
Browse files Browse the repository at this point in the history
Fix reg exprs
  • Loading branch information
IgorKoval authored Oct 21, 2022
2 parents afb91fa + 172d75c commit 4e97449
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 56 deletions.
123 changes: 73 additions & 50 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license-file = 'LICENSE.md'
name = 'tvm_linker'
readme = 'README.md'
repository = 'https://github.com/tonlabs/TVM-linker'
version = '0.18.3'
version = '0.18.4'

[[bin]]
name = 'tvm_linker'
Expand All @@ -27,7 +27,7 @@ lazy_static = '1.4'
log = '0.4.6'
num = '0.4'
num-traits = '0.2'
rand = '0.7.3'
rand = '0.8.5'
regex = '1'
serde_json = '1.0.41'
sha2 = '0.10'
Expand All @@ -40,8 +40,8 @@ ton_types = { git = 'https://github.com/tonlabs/ton-labs-types.git', tag = '1.11
ton_vm = { features = [ 'gosh' ], git = 'https://github.com/tonlabs/ton-labs-vm.git', tag = '1.8.44' }

[dev-dependencies]
assert_cmd = '0.11'
predicates = '1'
assert_cmd = '2.0.5'
predicates = '2.1.1'
rayon = '1.5.3'
similar = '2.2.0'

Expand Down
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 4e97449

Please sign in to comment.