Skip to content

Commit

Permalink
allow comment syntax in require rules; tag 0.8.13
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Nov 28, 2023
1 parent 6548c28 commit 3cd04d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "calcit"
version = "0.8.12"
version = "0.8.13"
authors = ["jiyinyiyong <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@calcit/procs",
"version": "0.8.12",
"version": "0.8.13",
"main": "./lib/calcit.procs.mjs",
"devDependencies": {
"@types/node": "^20.9.4",
"@types/node": "^20.10.0",
"typescript": "^5.3.2"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ fn extract_import_rule(nodes: &Cirru) -> Result<Vec<ImportMapPair>, String> {
match xs.first() {
// strip leading `[]` symbols
Some(Cirru::Leaf(s)) if &**s == "[]" => xs = xs[1..4].to_vec(),
// allow using comment
Some(Cirru::Leaf(s)) if &**s == ";" => return Ok(vec![]),
_ => (),
}
match (&xs[0], &xs[1], &xs[2]) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock

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

0 comments on commit 3cd04d2

Please sign in to comment.