highlightjs/highlight.js

(Crystal) formats integer divison incorrectly

已关闭

#3,730 创建于 2023年3月3日

 (4 条评论) (0 个反应) (0 位负责人)JavaScript (3,497 个派生)batch import
buggood first issuehelp welcomelanguage

仓库指标

星标
 (22,960 个星标)
PR 合并指标
 (平均合并 6分钟) (30 天内合并 2 个 PR)

描述

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

image

Which language seems to have the issue? Crystal

Are you using highlight or highlightAuto? highlight

Sample Code to Reproduce

def something()
    something // 4
end

image

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

Additional context Nope

贡献者指南