Skip to content

Fix JavaScript func_start regex to support Flow return types (#1755) - #1788

Merged
squid-protocol merged 1 commit into
mainfrom
fix-javascript-flow-types
Aug 17, 2026
Merged

Fix JavaScript func_start regex to support Flow return types (#1755)#1788
squid-protocol merged 1 commit into
mainfrom
fix-javascript-flow-types

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #1755.

This PR updates the JavaScript func_start regex to properly support optional Flow-style return types (e.g. : void) before the => in arrow functions and before the { in class/object-literal methods. This prevents valid Flow-typed functions from being silently ignored.

It also updates why_we_are_better_than_tree_sitter.md to document GitGalaxy's superiority regarding tree-sitter error recovery hallucinations on React/Flow code (where tree-sitter incorrectly identifies import and let nodes as function declarations, while GitGalaxy gracefully handles them without parsing panic).

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e650de2 into main Aug 17, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the fix-javascript-flow-types branch August 17, 2026 02:20
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.

JavaScript func_recall_pct: Missing Flow typed functions and Tree-Sitter Hallucinations

1 participant