Skip to content

SYNG Operators Reference

selectorrole
(:#across) undefined
(:after) selects values that appear after an anchor in source order
(:and) logical AND - matches when all nested selectors match (intersection)
(:at) undefined
(:before) selects values that appear before an anchor in source order
(:capture) captures a matched value to reference in (:replace) substitutions
(:inside) selects values that appear inside a specific scope (lexically contained)
(:into) refinement - narrows selection from a container to its children
(:kind) TreeSitter node kind matching
(:not) logical NOT - matches when the nested selector does NOT match (complement)
(:or) logical OR - matches when any nested selector matches (union)
(:outside) selects values that appear outside a specific scope (lexically excluded)
(:ref) matches references to a value (dereferencing - finds where a value is used, not where it's defined)
(:ref+) matches both a value AND its references (union of referent and all dereferenced usages)
(:replace) marks a selection for replacement with literal text or captured values
(:text) text-based matching for source code literals

Copyright © 2022-present Semantic Works, Inc.