Conversation
|
and an empty string is a valid property name? hah |
|
possibly adding basic computed properties also |
|
@amadeus is there a way to get a specific syntax group like jsblock but for objects only? |
|
@bounceme soooo, that's an update I am planning to do, and we will need it, especially for many ES6 features. Perhaps I can find some time tomorrow to look into it. |
|
thanks, all the new shorthand syntaxes are dependent on that, otherwise my giant regex matches basically every object literal property definition in es5 |
|
i'll finish this with the es6/7 pr in mind. @amadeus i don't think the jsfuncargs group works across lines, is that something you would be able to fix? |
|
var func = function(
x,
y
){
return x + y;
};If you are referring however to The TL;DR is that No other syntax file that I have found actually supports a multiline |
|
oh sorry, I mean is there an 'invoked function arguments' syntax pattern? |
|
@bounceme ahh, at this point no, although we could potentially chain something to the |
|
it isn't necessary really, jsparen is enough for now at least |
|
this pr was waiting on #466, and is a relatively minor update but the additions are helpful for objects handling |
|
going to merge this as it goes along with @amadeus 's update |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_Accessors#Dot_notation