NixOS / NixOS/nix-mode

Support fenced code blocks via multiple modes

Open
#175 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Emacs Lisp
Stars
338
Forks
79
PR merge metrics
No merged PRs in 30d

Description

In https://github.com/LnL7/vim-nix/pull/28, there is support for highlighting code within nix lines, using inline comments before the opening '', like

{
  foo = /* sh */ ''
    mkdir -p $out/share
  '';
}

I would love to have this. The two should be compatible, as @LnL7 mentions in https://github.com/LnL7/vim-nix/pull/28#issuecomment-647683536, so we should coördinate.

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 reading PR #28 and its linked comment, then inspect the existing syntax-highlighting entry points in nix-mode. Confirm how inline-comment modes and fenced code blocks should coexist, and coordinate the behavior so both forms remain compatible; done means both examples highlight correctly without regressing existing modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs-lisp
Domain
tooling
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.