NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PhpED IDE and ECMAScript6


Joined: 26 Dec 2016
Posts: 2
Reply with quote
I upgraded the PhpED 18, and it seems to me, the new syntax and features in JavaScript is not implemented.

For example let keyword.

http:// es6-features.org/#BlockScopedVariables

Is there a way to fix it myself? Possibly the expansion of the library?
View user's profileFind all posts by tgabor1Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Sorry, ECMAScript 6 is not supported. Adding support for such things requires a lot of work. There is nothing you can do.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Dec 2016
Posts: 2
Reply with quote
OK., i understand.

Any plans in the future, or in following version for this support? Including better CSS3 syntax check?
View user's profileFind all posts by tgabor1Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
yes, sure. We revisit all the features and tight them up

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
That's clear, it's a must have, but we can't afford developing ES[6,8] parsers from scratches -- it would take tremendous time with very marginal benefit -- although it lies very close, support for JS is not our primary goal.
Tried to find a grammar (something like yacc, lemon or bison would work great for us), but didn't find anything suitable. Would highly appreciate if you find anything suitable.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Thanks, I'll check that. This file https://bitbucket.org/skoppe/es6-grammar/src/57e0c27267a644f83184a8e38780d37d77299fdd/source/es6/grammar-generator.d?at=master&fileviewer=file-view-default looks like tokenizer (lexer) and parser.
What's about ES8?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 May 2014
Posts: 64
Reply with quote
I actually agree with dmitri.

I'd much rather see NuSphere fix existing bugs and annoyances than worry about JS syntax highlighting.

But will you, dmitri, ever fix those?
View user's profileFind all posts by temuri416Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
I'm not sure what "bugs" you encounter. If you have something you can reproduce, please report to support and make sure that they reproduced it too. In this case we'll fix the problem fast.

As of ES6/ES8, my understanding is that this is more about detected syntax errors.
They can be turned off. Open View->Tabs->Problems window, right click -> Filter -> add *.js to Hide Files input.
That's a temporary solution, of course and it won't hide red underscores and red balloons on the right. That's temporary until we get ES6/8 supported.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 Aug 2011
Posts: 3
Reply with quote
I am not sure how intertwined the code collapsing is with the JavaScript parser, but making it work in ES6 cases would make it's support much more usable.

Some examples:

Code:
 class A {
    myFunction () {
        // Collapse functions does not collapse me
    }
}


Code:
var a = { // Collapsing manually this bracket (+ in gutter) messes up on the default 'c' object parameter
    b: function (c = {}) {
       
    }
}
View user's profileFind all posts by BlakeHancockSend private message
PhpED IDE and ECMAScript6
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic