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

342 Коммитов

Автор SHA1 Сообщение Дата
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 55dd8aceb8 Merge pull request #378 from Microsoft/castAndObjectTypeFixes
Cast and object type fixes
2016-12-06 12:54:06 -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 ea59fd12e8 Fix the regex for tag detection to handle ternary operator
Fixes #357
2016-11-18 14:32:27 -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 5e50d11621 Fix the theme files for attribute value colorization 2016-11-07 17:13:54 -08:00
Sheetal Nandi 53936e20c9 Add support for the directives highlighting
Fixes #348
2016-11-07 15:59:05 -08:00
Sheetal Nandi addce3c614 Simplify jsx entities usage in the jsx string 2016-11-07 15:33:52 -08:00
Sheetal Nandi c5815556db Remove unnecessary scope name 2016-11-07 15:19:06 -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 97db53518a Add test case for #346 2016-11-07 11:27:46 -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
Sheetal Nandi 642dea665e Enable the variable declarations to be scoped as function if they have possibly function type or assignment looks like arrow function 2016-10-24 14:40:44 -07:00
Andy 6342bac951 Merge pull request #328 from Microsoft/typo
Fix typos
2016-10-24 11:20:45 -07:00
Andy Hanson 5eed88707e Fix typos 2016-10-24 07:03:46 -07:00
Sheetal Nandi a87cde2f4d Renaming the scope name of object-literal to objectliteral
This is to make sure vscode injection scope selection doesnt fail.
2016-10-21 15:05:21 -07:00
Sheetal Nandi c5c0e6e146 Merge pull request #325 from Microsoft/definitionScope
Add scope meta.definition to varible, function, method and field declarations
2016-10-21 14:50:10 -07:00