Skip to content

Add outline.scm file to enable search buffer symbols#20

Open
lungarella-raffaele wants to merge 1 commit intorescript-lang:mainfrom
lungarella-raffaele:outline-queries
Open

Add outline.scm file to enable search buffer symbols#20
lungarella-raffaele wants to merge 1 commit intorescript-lang:mainfrom
lungarella-raffaele:outline-queries

Conversation

@lungarella-raffaele
Copy link

Fixes #13

As my understanding of the docs the outline.scm file was missing from the project thus not enabling the outline.

I have a limited knowledge of treesitter and ReScript, so I would love some feedback on this. I tested it on my local machine and every query works fine.

Here is example of what is looks like:
Screenshot 2026-02-07 at 19 20 24

sigurthor added a commit to sigurthor/rescript-zed that referenced this pull request Feb 17, 2026
- 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
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

1 participant