Граф коммитов

220 Коммитов

Автор SHA1 Сообщение Дата
Sheetal Nandi 9b0d80d1b8 Arrow lookup is ok if it is not followed by "]" because then it has to be function call
Fixes #402
2017-01-09 11:25:34 -08:00
Sheetal Nandi 6c5694a6c2 Update the return type end regex
Fixes #398
2017-01-09 11:18:22 -08:00
Sheetal Nandi d128c369d5 Scope the complete function call instead of just method/function call to make sure they dont get confused with arrows
Fixes #397
2017-01-04 09:49:27 -08:00
Sheetal Nandi 603284f358 Match yield while matching expression operators instead of during control statements
Fixes #396
2017-01-03 15:21:16 -08:00
Sheetal Nandi 5128433da8 Fix the precedence of literal matching so as to not mix up arrow and function call detection
Fixes #393
2017-01-03 15:09:54 -08:00
Sheetal Nandi 12aee9ec3c Fix the interface/class declaration detection
Fixes #391
2017-01-03 15:02:31 -08:00
Sheetal Nandi 4299f47624 Do not allow function expression to end with line break
Fixes #389
2017-01-03 14:56:59 -08:00
Sheetal Nandi c5e57fafc4 End arrow return type matching after we encounter arrow
Fixes #388
2017-01-03 14:32:57 -08:00
Sheetal Nandi 0af62abeb5 Remove the incorrect identification of function type
Fixes #387
2017-01-03 14:24:17 -08:00
Sheetal Nandi f97fcdbb2f Treat the end of line as end of function declaration
Fixes #384
2016-12-19 12:01:55 -08:00
Sheetal Nandi cd82eb66ad Fix arrow function determination logic to accomodate => present on next line
Fixes #383
2016-12-14 12:42:12 -08:00
Sheetal Nandi fcbd5708d9 Fix the variable initializer such that new lines are handled better.
If the expression starts on same line use end of line to end the scope
Otherwise do not use end of line as end of scope unless its complete blank line
2016-12-12 15:23:57 -08:00
Sheetal Nandi 0ed9d4e597 Treat the { in the class body as decl block.
Fixes #379 and #382
But this results in incorrect picking up of object literal in field initializer where object literal starts on new line
2016-12-12 15:13:15 -08:00
Sheetal Nandi 98ab3ba5cc Handle the end of the new expression as look ahead of } as it can be possible in case of template expressions
Fixes #381
2016-12-12 11:46:42 -08:00
Sheetal Nandi 9e5c4c2934 Do not treat namespace as namespace declaration if it doesnt follow with the name
Fixes #380
2016-12-12 11:42:57 -08:00
Sheetal Nandi 3ee427b152 / followed by parenthesized expression is arithmetic division instead of start of regexp
Fixes #377
2016-12-08 11:38:20 -08:00
Ron Buckton e7aa4da575 Merge pull request #372 from Microsoft/forAwaitOf
Adds for-await-of
2016-12-07 18:41:15 -08:00
Sheetal Nandi 7e9a0ce51e Change the constant's scope from constant.other to variable.other.constant
Fixes #368
2016-12-06 14:42:30 -08:00
Sheetal Nandi 61d482acde Include type in object member syntax of object type to pick left over type annotations on new line
Fixes #376
2016-12-06 12:53:18 -08:00
Sheetal Nandi 9a6129b08f Treat the < at the begining of the line as cast operator as it is most likely to be cast rather than relational operator
Fixes #375
2016-12-06 12:53:14 -08:00
Ron Buckton dc1022908e Adds for-await-of 2016-11-30 13:20:28 -08:00
Sheetal Nandi 55e9f737b7 Support @property and @prop in jsdoc
Fixes #353
2016-11-22 15:44:46 -08:00
Sheetal Nandi 9a4fc46106 Fix the nested ternary operator
Fixes #366
2016-11-22 09:51:21 -08:00
Sheetal Nandi be88474bad Update jsdoc syntax to atom/language-javascript#d59666c 2016-11-21 16:57:23 -08:00
Sheetal Nandi e6ba96fa4a Match multiple modifiers in the parameter name
Fixes #365
2016-11-21 11:58:03 -08:00
Sheetal Nandi 6fe1b659ad Fix the computerd property name regex when there is template string containing []
Fixes #359
2016-11-18 15:44:17 -08:00
Sheetal Nandi ad574256a1 Fixes the yaml to fix #363 2016-11-18 15:29:38 -08:00
Sheetal Nandi 1e6da3079b Pull out object literal method separately so that constructor and new syntax doesnt play into it.
Fixes #361
2016-11-18 15:14:21 -08:00
Sheetal Nandi b5ce6b5632 Fix the regex lookup to fix #356 2016-11-17 16:27:28 -08:00
Sheetal Nandi 0951762b59 Mapped type support that gets added by Microsoft/TypeScript#12114 2016-11-11 12:27:48 -08:00
Sheetal Nandi 4d0bdebb93 Consume support functions during function call scoping so that in tsx the typeparameters are not assumed to be tags
Fixes #344 and #351
2016-11-08 10:52:24 -08:00
Sheetal Nandi 53936e20c9 Add support for the directives highlighting
Fixes #348
2016-11-07 15:59:05 -08:00
Sheetal Nandi cea95d36a8 Stop consuming spaces when determining function type and parenthesized type
Fixes #347
2016-11-07 11:44:25 -08:00
Sheetal Nandi ca47120adf Fix the regexp determination lookup 2016-11-07 11:30:10 -08:00
Sheetal Nandi 9e936d218c Capture the arithmetic sign after the variable so that it isnt captured as regex
Fixes #343
2016-11-07 10:50:59 -08:00
Sheetal Nandi 25fe7b2393 Add support for keyof 2016-11-02 11:33:09 -07:00
Sheetal Nandi 28cde3c733 Merge pull request #330 from Microsoft/varDecls
Declarations of Variables, fields and parameters are scoped as function if they are assigned function expression or of function type
2016-11-01 15:51:14 -07:00
Sheetal Nandi 56597356c9 Merge pull request #340 from Microsoft/classExprInNewExpr
Allow class expression as part of new expression target
2016-11-01 15:49:03 -07:00
Sheetal Nandi 1c10d18812 Merge pull request #332 from Microsoft/allowExpressionInClassInheritance
Allow expression in class inheritance
2016-11-01 15:48:28 -07:00
Sheetal Nandi 9dc74a5bf0 Added support for property names that are not identifier in object binding element 2016-11-01 15:31:25 -07:00
Sheetal Nandi ed8118027f Merge branch 'master' into varDecls 2016-11-01 14:33:20 -07:00
Sheetal Nandi 9a9895400d Allow class expression as part of new expression target
Fixes #339
2016-11-01 13:23:06 -07:00
Sheetal Nandi ca507d55bf Allow Array literals inside the computed property name
Fixes #338
2016-11-01 13:15:01 -07:00
Sheetal Nandi a733ed4c65 Parse comment line shebang
Fixes #337
2016-10-27 10:11:15 -07:00
Sheetal Nandi 75538dc213 Merge branch 'master' into varDecls 2016-10-26 11:00:30 -07:00
Sheetal Nandi 5f17434b8f Handle function() case in look ahead 2016-10-26 11:00:15 -07:00
Sheetal Nandi 578dd5db70 When looking ahead for probable function assignment handle the case function(
Fixes #334
2016-10-26 10:55:20 -07:00
Sheetal Nandi 5d94572a03 Allow expression in class inheritance
Fixes #326
2016-10-25 16:38:24 -07:00
Sheetal Nandi a14e341be4 Parameters are scoped as function if assigned from function or have function type annotation 2016-10-24 14:58:21 -07:00
Sheetal Nandi f1d347c326 Property declarations are scoped as methods if they are assigned function expression or are annotated with function type 2016-10-24 14:47:54 -07:00