highlightjs/highlight.js
(Crystal) formats integer divison incorrectly
Fermée
#3 730 ouverte le 3 mars 2023
buggood first issuehelp welcomelanguage
Métriques du dépôt
- Stars
- (22 960 étoiles)
- Métriques de merge PR
- (Merge moyen 6m) (2 PRs mergées en 30 j)
Description
Describe the issue
Using // in crystal will make the highlighter mark the rest of the file.
In crystal is // used for integer division.
Code:
def something()
something // 4
end

Which language seems to have the issue? Crystal
Are you using highlight or highlightAuto?
highlight
Sample Code to Reproduce
def something()
something // 4
end

Expected behavior The expected behavior is to not mark the rest of the code with the color green.
Additional context Nope