Skip to content

Commit

Permalink
Update unicode to 15.1.0 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed May 29, 2024
1 parent 6664113 commit 046b23d
Show file tree
Hide file tree
Showing 5 changed files with 365 additions and 84 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "regress"
version = "0.9.1"
version = "0.10.0"
authors = ["ridiculousfish <corydoras@ridiculousfish.com>"]
description = "A regular expression engine targeting EcmaScript syntax"
license = "MIT OR Apache-2.0"
Expand Down
10 changes: 5 additions & 5 deletions gen-unicode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ This crate generates unicode tables and code specific for regress.
1. Download the needed unicode source files:

```sh
mkdir /tmp/ucd-15.0.0
cd /tmp/ucd-15.0.0
curl -LO https://www.unicode.org/Public/zipped/15.0.0/UCD.zip
mkdir /tmp/ucd-15.1.0
cd /tmp/ucd-15.1.0
curl -LO https://www.unicode.org/Public/zipped/15.1.0/UCD.zip
unzip UCD.zip
curl -LO https://www.unicode.org/Public/emoji/15.0/emoji-sequences.txt
curl -LO https://www.unicode.org/Public/emoji/15.0/emoji-zwj-sequences.txt
curl -LO https://www.unicode.org/Public/emoji/15.1/emoji-sequences.txt
curl -LO https://www.unicode.org/Public/emoji/15.1/emoji-zwj-sequences.txt
```

2. Run this crate and redirect the output in the specific rs file in the regress crate:
Expand Down
2 changes: 1 addition & 1 deletion gen-unicode/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const LENGTH_BITS: u32 = 32 - CODE_POINT_BITS;
// Our length is stored with a bias of -1, so no need to subtract 1.
const MAX_LENGTH: u32 = 1 << LENGTH_BITS;

const UCD_PATH: &str = "/tmp/ucd-15.0.0";
const UCD_PATH: &str = "/tmp/ucd-15.1.0";

pub(crate) struct GenUnicode {
pub(crate) scope: Scope,
Expand Down
Loading

0 comments on commit 046b23d

Please sign in to comment.