pygments / pygments/pygments

__asm{} block in C is not highlighted properly

Open
#2,942 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.2k
Forks
885
PR merge metrics
No merged PRs in 30d

Description

I am using minted( a code highlighting package in LaTeX) and I noticed that the assembly inside the __asm{} block is not highlighted at all. Is there a way to run the NASM highlighter within the __asm{} block? A quick hack would be appreciated for now.

NOTE: The __asm{} block is unique to the MSVC compiler.

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

No file or test is identified in the issue. Start by locating Pygments' C lexer and comparing its handling of __asm{} with the NASM lexer used by minted; done means assembly inside the MSVC-specific block receives NASM-style highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, latex, python
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.