bathos / Ecmascript-Sublime

ECMAScript/JavaScript syntax (ES2015-ES2018, JSX, template highlighting, etc) with absurdly specific scopes
88 stars 8 forks source link

add logical assignment &&= and ??= #88

Closed bathos closed 3 years ago

bathos commented 3 years ago

This adds &&= and ??=. The ||= operator was already present with the historical mallet name from an older proposal. The naming pattern of the three (and their non-assignment counterparts) is made more consistent.

This still needs the nested syntax generation. I haven’t looked super deep into it but I think it doesn’t work for me due to emk expecting a unix / bash env and I’m on Windows. (There’s no error message — the script seems to run, but its only apparent effect is to open the emk.js file for editing).

blake-regalia commented 3 years ago

Was this superseded by #91 ?

bathos commented 3 years ago

yep. seems I'd just forgotten I'd (started) to do this previously!