Ticket #3793 (closed enhancement: fixed)

Opened 2 months ago

Last modified 2 months ago

Add EcmaScript 2015 support for JavaScript syntax highlighter

Reported by: mortiy Owned by: zaytsev
Priority: minor Milestone: 4.8.20
Component: mcedit Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master

Description

Javascript has lots of new stuff, which is currently not processed by JS highlighter:

  • Arrow functions — (a, b) => a * b
  • Template Strings — My name is ${name}!
  • Bunch of new built-in objects: Promise, Map, WeakSet, etc
  • New keywords let, const, yield, import, export

https://github.com/MidnightCommander/mc/pull/121

Attachments

0001-EcmaScript-2015-support-for-JavaScript-highlighter.patch (2.5 KB) - added by mortiy 2 months ago.
ES2015 Patch

Change History

Changed 2 months ago by mortiy

ES2015 Patch

comment:1 Changed 2 months ago by mortiy

  • Component changed from mc-core to mcedit

comment:2 Changed 2 months ago by zaytsev

  • Status changed from new to accepted
  • Owner set to zaytsev
  • Milestone changed from Future Releases to 4.8.20
  • Priority changed from major to minor

comment:3 Changed 2 months ago by zaytsev

  • Status changed from accepted to testing
  • Votes for changeset set to committed-master
  • Resolution set to fixed
  • Branch state changed from no branch to merged

Committed to master: 834e07fd5716f1d5da72a0558eef772b35cc06ae

Thank you for your contribution!

comment:4 Changed 2 months ago by zaytsev

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.