\% in Latex marked as comment, but it's a percentage literal.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
Information
- Language: LaTeX
- Plugins: none
Description
The value is 25~\% above its limit.
should no be a comment. it's literally a percentage sign.
As workaround I added this to the LaTeX language definition.
'char': {
pattern: /\\%/,
greedy: true
},
Dunno what the correct type really should be.
Btw: \% should again be a comment. (preceded by a literal backslash) but nothing happening too likely in real world code.
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 with PrismJS's LaTeX language definition and reproduce the supplied example, including the escaped percentage cases. Determine how the definition distinguishes a literal % from a comment, then consider the issue complete when percentage literals are highlighted as content while actual comments remain comments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, latex
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100