micro-editor / micro-editor/micro

C syntax highlighting.

Open
#3,930 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug syntax
Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

If you write #include <float.h>.
It weirdly highlights the float part in blue, even though we are referring to the library not declaring a variable.

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 reproducing the highlighting for #include <float.h> in micro with a small C source file, then locate the C syntax-highlighting definition used by the editor. Compare this directive with ordinary declarations and update the relevant behavior so the header name is not highlighted as a variable type; verify the result in the editor.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.