carp-lang / carp-lang/Carp

Something is rotten in the state of Pattern parsing

Open
#804 3 comments 0 reactions 1 assignee Claimed by @hellerve View on GitHub
bug core-libs
Dominant language
Haskell
Stars
6k
Forks
187
Avg merge
8d 22h
Merged PRs (30d)
4

Description

The parser for patterns seems not quite right; specifically there seems to be a problem with backlashes. Consider this example:

```clojure
(Pattern.substitute #"\b" "w\b" "\\\\b" -1) ; => throws an error about an unexpected quote
(Pattern.substitute &(Pattern.init "\b") "w\b" "\\\\b" -1) ; => works fine
```

(This is courtesy of the famous, revered, and all around great guy @TimDeve)

I volunteer to look into this.

Cheers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.