SYNG Operators Reference
| selector | role |
|---|---|
| (:after) | select a value that appears after another |
| (:and) | select a value that matches multiple conditions (intersection) |
| (:at) | select a value at exactly the specified scope level |
| (:before) | select a value that appears before another |
| (:capture) | capture a value to use in (:replace) substitutions |
| (:has) | select a value that contains another |
| (:inside) | select a value that appears inside another |
| (:into) | refine the selection to an inner value |
| (:kind) | select a value by its grammatical kind |
| (:nearest) | refine the selection to the nearest enclosing value if available |
| (:not) | select a value that fails to meet a condition (complement) |
| (:or) | select a value that matches at least one condition (union) |
| (:outside) | select a value that appears outside another |
| (:ref) | select references to a value |
| (:ref+) | select a value AND its references |
| (:replace) | replace selection with literal text or captured values |
| (:replace-in) | replace region matched by a pattern |
| (:text) | select a value by source code (text-based search) |