Sublime Forum

JavaScript - Division again formatted like a regex

#1

Recently I’ve posted a question about wrongly formatted function call (it was formatted like a regex). But, the reason for that was because my JavaScript syntax file was corrupted. Now I downloaded brand new Sublime Text 3 and completelly uninstalled old version and installed the latest version, but I found new bug.

While I’ve been working with CuDNN recurent neural networks, I’ve fed a few thousad javascript files to neural net and trained it to generate it’s own code from examples. This is one of resulting codes:

This is completelly correct ES7 JavaScript syntax, but it is formatted wrongly, as you can see. The division is formatted like a regex and extended to second line. Is it a bug, or am I again using deprecated package syntax files?

This is the actual code, so you can check it yourself:

((undefined), ("U"), 0x1), (787493414121438 | `` == undefined << undefined, (-0), "nU", (undefined, (undefined) - undefined <= (((NaN), (NaN) >= (undefined / ((NaN == '' && '' <= 0x2) | ''), ('k', (-280432449), (('6JbƒF' >= undefined, ("\t" * 0o0, ('' >= undefined - (-1)), undefined, (undefined), ('' == "D"))), undefined + '54X'), undefined, (NaN !== ``) << ((undefined <= `ID\n`), '8' / "", (undefined >= 'X'), "")), '', ((-0x1), 0o1, (((-0), '') - 150309361286908), 0o0 >> 'nO' == 0x0 !== "Pm" !== undefined), (''), ``), '') - NaN), ("" != '', '' << (undefined + ((-593564706) * 0x1) + 0x269536a4 && '0\r' === 'O' << `\x323`, ('2E' >> undefined || undefined), undefined, ("9Oy"), 'N8\x533J', NaN, (undefined) == "", (-0o1))), (undefined, (undefined), ``)));
('' && undefined), undefined, `3Z`, ((-0o1) & '' ^ ("" + 0)), ((undefined * ('58' / 0o0 >> (`p`), (8.983437642880375e+218))), (((NaN, (undefined) <= (-0x2cb06c11)) ^ 0x2 !== undefined) > 0 + undefined, undefined > 624451316853928));

Edit

Actually, there are hundreds of examples:

0 Likes

JavaScript - Highlight stops at 61th nested level
#2

looks the same for me on build 3125 - ES7 features haven’t made it into ST’s official JS syntax definition yet though, so that could be why

0 Likes

#3

Well, all of the above examples are compatible even with ES6 and ES5.

0 Likes

#4

oh okay, maybe you will want to report it here then:

0 Likes

#5

Thank you. I reported it.

0 Likes