Skip to content

Commit

Permalink
fix lexing regex that ends with hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 22, 2024
1 parent 1e1d027 commit f958f92
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* fix `let-values` to allow binding to list [#281](https://github.com/jcubic/lips/issues/281)
* fix wrong strings in `string-fill!`
* fix `string-set!` to mutate the string and work on any expression
* fix tokenizing regex that ends with hash

## 1.0.0-beta.18
### Breaking
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.18-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
![1.0.0 Complete](https://img.shields.io/github/milestones/progress-percent/jcubic/lips/1?label=1.0.0%20Complete)
[![Build and test](https://github.com/jcubic/lips/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/lips/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&7951433cc9ff158c3701ffea07e0f004)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&230cb872febbd9573dfcbb562a8972cc)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Join Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jcubic/lips)
![NPM Download Count](https://img.shields.io/npm/dm/@jcubic/lips)
![JSDelivr Download count](https://img.shields.io/jsdelivr/npm/hm/@jcubic/lips)
Expand Down
10 changes: 5 additions & 5 deletions dist/lips.cjs

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

10 changes: 5 additions & 5 deletions dist/lips.esm.js

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

4 changes: 2 additions & 2 deletions dist/lips.esm.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/lips.js

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

4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ Lexer._rules = [
[/\]/, /[^\\]/, null, Lexer.regex_class, Lexer.regex],
[/[()[\]]/, null, null, Lexer.regex, Lexer.regex],
[/\//, /\\/, null, Lexer.regex, Lexer.regex],
[/\//, /[^#]/, Lexer.boundary, Lexer.regex, null],
[/\//, null, Lexer.boundary, Lexer.regex, null],
[/[gimyus]/, /\//, Lexer.boundary, Lexer.regex, null],
[/[gimyus]/, /\//, /[gimyus]/, Lexer.regex, Lexer.regex],
[/[gimyus]/, /[gimyus]/, Lexer.boundary, Lexer.regex, null],
Expand Down

0 comments on commit f958f92

Please sign in to comment.