jaredly / jaredly/reason-language-server

cppo / merlin -pp flag support for OCaml

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
649
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Merlin 3.3.0 introduced `-pp` flag that allows it correctly parse cppo's `#ifdef/#else/#endif` conditionals. Say, my `.merlin` file contains
```
FLG -pp "cppo -D DEBUG"
```
That was enough for https://github.com/hackwaly/vscode-ocaml. But now I'm trying to switch to `reason-language-server`. As it doesn't directly use `merlin`, do you plan to add similar functionality? `cppo` syntax highlighting would be also convenient.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the .merlin example and the reason-language-server entry points that invoke Merlin or provide syntax highlighting. Determine how support for `-pp "cppo -D DEBUG"` and cppo conditionals would fit, then verify that both preprocessing-aware parsing and the requested highlighting behavior work as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.