rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Inconsistency: token `dl` not use in most of the language but used in JS

Open BenSouchet opened this issue 3 years ago • 0 comments

A simple question I haven't found: Why the token dl (Literal String Delimiter) is used in JavaScript but not on others languages (Python, C, C++, PHP,....)

Diff

In JavaScript:

'Hello World!'
<span class="dl">'</span><span class="s1">Hello World!</span><span class="dl">'</span>

In PHP:

'Hello World!'
<span class="s1">'Hello World!'</span>

So is it a bug ? Or is there something I don't know ? Is the dl token deprecated ?

BenSouchet avatar Jan 22 '22 15:01 BenSouchet