VIRA-283: Syntax for code highlighting

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
vim
Domain
tooling

Research direction

Start by locating gv.vim's syntax-definition entry point and review the supplied viraGVCode region for backtick-delimited code. Test the highlighting in Vim commit messages containing inline backticks, and consider the work done when such code is highlighted without breaking other message syntax.

Written by the indexing model from the issue text.

Description

Hello @junegunn,

https://github.com/n0v1c3/vira/tree/VIRA-282 is the branch currently in process and will only make it to dev or master from there. This is currently an issue just for the syntax.

Bellow I just wrote before looking at your code but there should still be some useful lines in it for you.

The viraGVCode bellow is the example that will capture the code inside the "Message". I am sure I am not the only person that has `` in their messages and GitHub definitely supports it as well. We cannot fall behind there.

syntax region viraGVCode start="`" end="`" contained

UPDATE: Found my own bug to deal with so left only the line that mattered.

Dominant language
Vim Script
Stars
1.4k
Forks
55
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from junegunn/gv.vim

All issues in junegunn/gv.vim

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.