Skip to content

feat: add regex literal highlighting and outline support#1

Merged
sigurthor merged 1 commit intomainfrom
regex-and-outline
Feb 17, 2026
Merged

feat: add regex literal highlighting and outline support#1
sigurthor merged 1 commit intomainfrom
regex-and-outline

Conversation

@sigurthor
Copy link
Owner

ReScript 12 uses native JS-style regex literals instead of %re(). The tree-sitter grammar fork adds proper regex parsing with / disambiguation (regex vs division vs comment) via external scanner sentinel pattern.

Closes rescript-lang#13

- Add outline.scm for symbol outline panel (from PR rescript-lang#20)
- Add regex literal syntax highlighting (regex_pattern, regex_flags)
- Add regex language injection for native /pattern/flags literals
- Point grammar at sigurthor/tree-sitter-rescript with regex support
- Bump version to 0.5.0

ReScript 12 uses native JS-style regex literals instead of %re().
The tree-sitter grammar fork adds proper regex parsing with /
disambiguation (regex vs division vs comment) via external scanner
sentinel pattern.

Closes rescript-lang#13
@sigurthor sigurthor merged commit 473d773 into main Feb 17, 2026
@nojaf
Copy link

nojaf commented Feb 18, 2026

Hi @sigurthor, are you planning to send a PR to https://github.com/rescript-lang/rescript-zed as well for this?

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.

Outline panel / Symbol

2 participants