-
Notifications
You must be signed in to change notification settings - Fork 18
Integrate open PRs and update instructions #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c85307e
b83d7eb
b50f638
3dfdf8a
c454e09
5ca149c
c379199
c03220f
309fd25
9af3e1f
6651fae
e0bc632
e39df74
857272e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
((comment) @injection.content (#set! injection.language "comment")) | ||
|
||
; %re | ||
(extension_expression | ||
(extension_identifier) @_name | ||
(#eq? @_name "re") | ||
(expression_statement (_) @injection.content (#set! injection.language "regex"))) | ||
|
||
; %raw | ||
(extension_expression | ||
(extension_identifier) @_name | ||
(#eq? @_name "raw") | ||
(expression_statement | ||
(_ (_) @injection.content (#set! injection.language "javascript")))) | ||
|
||
; %graphql | ||
(extension_expression | ||
(extension_identifier) @_name | ||
(#eq? @_name "graphql") | ||
(expression_statement | ||
(_ (_) @injection.content (#set! injection.language "graphql")))) | ||
|
||
; %relay | ||
(extension_expression | ||
(extension_identifier) @_name | ||
(#eq? @_name "relay") | ||
(expression_statement | ||
(_ (_) @injection.content (#set! injection.language "graphql") ))) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,3 +310,20 @@ Spread props | |
(value_identifier)))) | ||
(jsx_closing_element | ||
(jsx_identifier))))) | ||
|
||
================================================================================ | ||
Elements in pipes | ||
================================================================================ | ||
|
||
<Comp />->Some | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A similar snippet was failing in the wild tests (but I forgot to add it to the list in the description.) The problem was that pipe expressions only accept |
||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(source_file | ||
(expression_statement | ||
(pipe_expression | ||
(jsx_self_closing_element | ||
(jsx_identifier)) | ||
(variant | ||
(variant_identifier))))) | ||
|