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 合併指標
 (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

貢獻者指南