Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
docs: Add simple queries for TSX
Browse files Browse the repository at this point in the history
  • Loading branch information
ziontee113 committed Feb 19, 2023
1 parent 71d7ba7 commit af49476
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@ return {
```

## Queries

<details><summary>TypeScript React</summary>

```lua
local tsx_query = [[
;; query
((identifier) @cap)
((string_fragment) @cap)
((property_identifier) @cap)
]]
```
</details>

<details><summary>Rust</summary>

```lua
Expand Down Expand Up @@ -228,6 +241,7 @@ local cpp_query = [[
((namespace_identifier) @cap)
]] .. c_query
```
</details>

## Feedback is always appreciated

Expand Down

0 comments on commit af49476

Please sign in to comment.