Sheetal Nandi
2a56f0b582
Remove the illegal ampersand escape from the react entity
2022-08-16 16:42:05 -07:00
Sheetal Nandi
2db6bba612
Fix multiline arrow with destructuring parameters
...
Fixes #780
2019-10-30 14:08:21 -07:00
Matt Bierner
4f1991e11c
Use 'contentName' instead of 'name' to mark embedded jsx expressions
...
Jsx expressions currently use `name` to mark the entire expresion (including the opening and closing braces) as `meta.embedded.expression`. This causes VS Code to treat the entire expresssion as JavaScript for basic language commands such as highlighting.
This fix instead changes jsx expressions to only mark the expression itself (and not the braces) as `meta.embedded.expression`. This lets VS Code correctly handle commenting in a few edge cases
2019-10-11 08:52:04 -07:00
Sheetal Nandi
11b1a4f8dc
When detecting arrow '<T extends' is not guaranteed to be type parameter of arrow as it could be type assertion with conditional type
...
Fixes #748
2019-07-17 15:47:32 -07:00
Sheetal Nandi
145270e577
Fix incorrect highlighting of jsx expression following comment
...
Fixes #754
2019-07-17 15:03:03 -07:00
Matt Bierner
4407e8d570
Allow _ in jsx attribute names
...
Fixes #648
2018-08-23 10:27:19 +02:00
Sheetal Nandi
2b5291c36d
Handle accent character in the jsx attribute name
...
Fixes #640
2018-07-26 13:04:41 -07:00
Sheetal Nandi
27425437b2
Support < followed by new line as possibly arrow start
...
Fixes #637
2018-07-20 12:52:00 -07:00
Sheetal Nandi
95bce1d124
Handle jsx expression after yield
...
Fixes #636
2018-07-12 11:12:03 -07:00
Sheetal Nandi
88217b1c7d
Fix the tag with type argument detectioon when type arguments span over multiple lines
...
Fixes #632
2018-07-03 13:19:52 -07:00
Sheetal Nandi
9426f0c12e
Fix the type argument detection in tag without attributes
...
Fixes #606
2018-04-27 12:53:15 -07:00
Sheetal Nandi
fefa94101e
Support arrows with multiline destructuring parameters
2018-04-20 12:21:30 -07:00
Sheetal Nandi
078c5ff26f
Merge branch 'master' into multiLineArrowParameters
2018-03-23 16:08:30 -07:00
Sheetal Nandi
ae2c847720
Handle comments in jsx
...
Fixes #585
2018-03-23 15:36:04 -07:00
Sheetal Nandi
8610134389
Sync to atom/language-javascript@e85477e
...
Fixes #587
2018-03-23 14:59:12 -07:00
Sheetal Nandi
ee94bd5f87
Merge branch 'master' into multiLineArrowParameters
2018-03-13 13:45:03 -07:00
Sheetal Nandi
874564b73c
Handle jsx attribute scope correctly to not include type arguments
2018-03-13 13:35:25 -07:00
Sheetal Nandi
cd961ac97a
Some restructuring in react grammar
2018-03-13 13:17:19 -07:00
Sheetal Nandi
aef7be5c6d
Support the JSX Opening or self closing tag's type arguments
...
This handles support for Microsoft/TypeScript#22415
2018-03-13 13:09:00 -07:00
Sheetal Nandi
30a2e6b760
Update the build to use variables in react as well
2018-03-13 12:53:29 -07:00
Sheetal Nandi
a7fa5b585a
Add type parameters to multiline arrow detection
2018-03-09 16:23:13 -08:00
Mtpc
0e7a5b2712
support namespaced tsx
2018-03-02 12:41:49 +00:00
Sheetal Nandi
53d555baa1
Fix the incorrect look behinds of cast expression when property name is yield
...
Fixes #562
2018-01-25 12:55:16 -08:00
Sheetal Nandi
1d2625adfc
Fix the handling of extends/implements clause
...
Fixes #551
2017-12-14 09:30:49 -08:00
uniqueiniquity
d7589e2b0d
Refactor JSX fragment
2017-10-18 16:39:27 -07:00
uniqueiniquity
52d132cf64
Add highlighting for JSX fragment
2017-10-18 11:30:33 -07:00
Matt Bierner
8104f556fd
Add new meta scope to specifically mark attributes in tags
...
Fix #532
2017-10-12 17:30:38 -07:00
Sheetal Nandi
deae81035e
Restructuring for easy maintainence and finding syntaxes
2017-09-28 11:45:29 -07:00
Sheetal Nandi
137e54244a
Add the context test for jsx tag without attributes when matching in expression
...
Handles #478
2017-06-26 16:36:21 -07:00
Matt Bierner
cb1af7953d
Reduce number of capture groups
2017-05-04 16:55:39 -07:00
Matt Bierner
76c512ce9a
Mark TSX Class Tags Differently from Normal Elements
...
Fixes #415
Adds an extra marker for tsx tags that are likly a javascript/typescript class instead of a standard html element
2017-05-03 20:30:50 -07:00
Sheetal Nandi
ad574256a1
Fixes the yaml to fix #363
2016-11-18 15:29:38 -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
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
cf0b91dbbd
Removed unnecessary scope name
2016-10-04 11:19:27 -07:00
Sheetal Nandi
e8c613f1d4
Distinguish between jsx-tag start from expression vs from jsx children,
...
since inspection of context is not needed to distinguish relational operation when already in jsx context
Fixes #283
2016-10-04 11:13:52 -07:00
Sheetal Nandi
67954e4ba0
Rename the scope of jsx evaluated code to meta.embedded.expression
...
Handles #280
2016-10-03 11:06:29 -07:00
Sheetal Nandi
71d0430870
Make tags accomodate spaces
...
Fixes #264
2016-09-21 16:48:43 -07:00
Sheetal Nandi
c0fe7270de
Jsx tag start depends on surrounding context
...
Fixes #268
2016-09-21 15:46:47 -07:00
Sheetal Nandi
5cae3192ed
Jsx are available in expression context not in statement context
2016-09-21 14:34:02 -07:00
Sheetal Nandi
dfdd2cb6f6
Generate TypeScriptReact grammar
2016-09-20 13:58:52 -07:00
Sheetal Nandi
e6b8e961b3
Rename the function references from entity.name.function to variable.function
2016-09-16 10:48:24 -07:00
Sheetal Nandi
84a4e42928
Scope '.' accessor
2016-09-15 16:27:02 -07:00
Sheetal Nandi
8170e063be
Scope ';'
2016-09-15 16:16:35 -07:00
Sheetal Nandi
87aa92a02d
Scope function names from function calls and add scoping for ,
2016-09-15 16:03:59 -07:00
Sheetal Nandi
a63a0fb403
Support arrow type parameters
2016-09-13 15:19:24 -07:00
Sheetal Nandi
1c5a0d1d8c
Scope object literal keys
...
Addresses #23
2016-09-13 13:44:36 -07:00
Sheetal Nandi
fed816067f
new operator can end at another new operator
...
Fixes #139
2016-09-13 12:04:08 -07:00
Sheetal Nandi
7dbf74c46f
Simplify class meta scoping and use meta.class.ts instead of meta.declaration.object.ts
2016-09-13 11:37:38 -07:00