Skip to content

Fix lex -equiv#795

Merged
jeaye merged 2 commits into
jank-lang:mainfrom
djblue:lex-equiv
May 25, 2026
Merged

Fix lex -equiv#795
jeaye merged 2 commits into
jank-lang:mainfrom
djblue:lex-equiv

Conversation

@djblue

@djblue djblue commented May 25, 2026

Copy link
Copy Markdown
Contributor

In portal, I have cljc files with code that contain deftypes with -equiv protocol methods. Even though they are part of :cljs reader conditional branches, they still need to be lexed and parsed.

Before

% jank repl
user=> '-equiv
─ lex/invalid-number ───────────────────────────────────────────────────────────────────────────────
error: Extraneous 'e' found in number.                                                              
                                                                                                    
─────┬──────────────────────────────────────────────────────────────────────────────────────────────
     │ /tmp/jank-repl-ZWd35c                                                                        
─────┼──────────────────────────────────────────────────────────────────────────────────────────────
  1  │ '-equiv                                                                                      
     │   ^ Found 'e' here.                                                                          
─────┴──────────────────────────────────────────────────────────────────────────────────────────────

After

% jank repl    
user=> '-equiv
-equiv
user=> (type '-equiv)
"symbol"

@djblue djblue requested a review from jeaye May 25, 2026 06:50
@jeaye jeaye merged commit 1573114 into jank-lang:main May 25, 2026
15 checks passed
@jeaye

jeaye commented May 25, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants