code block syntax highlighting changes when reloading buffer

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

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the reported behavior in vim-journal using a buffer containing the shown SQL code block, then open another buffer and return to it. Trace the code-block syntax-highlighting entry point and compare initial loading with buffer reloading; done means the highlighting remains correct after switching buffers.

Written by the indexing model from the issue text.

Description

Hi there, great plugin. I'm trying to add some code blocks to my notes, e.g.

--sql
SELECT *
FROM mytable
--

It works fine when I first type it out or when I initially load the file. However, when I open another buffer the highlighting disappears and changes to one solid color. Any idea what's going on?

Dominant language
Vim Script
Stars
261
Forks
8
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.

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.