micro-editor / micro-editor/micro
Crashes on lauch if syntax includes itself
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
I tied to create my own python3 syntax highlight. In that I created some rules for python f-string. This is basically what I tried:
filetype: python3
...
rules:
- constant.string:
start: "f\""
end: "\""
rules:
- formatstr:
start: "{"
end: "}"
rules:
- include: "python3"
This lead to micro failing to launch next time I started it.
Specifications
You can use micro -version to get the commit hash.
Commit hash: 2c219ba
OS: Windows 10
Terminal: xterm-256color (WSL Ubuntu)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash with the provided Python 3 syntax definition, especially the nested include of "python3", and inspect how micro loads syntax rules during launch. Done means micro can start normally even when a syntax definition includes itself, with the behavior covered by an appropriate regression test if the existing test structure supports it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, python, yaml
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100