fork of https://github.com/tree-sitter/tree-sitter-graph

Get quantifier from the query we matched

Changed files
+2 -1
src
+2 -1
src/execution.rs
··· 118 118 let index = file_query 119 119 .capture_index_for_name(name) 120 120 .expect("missing index for capture"); 121 - let quantifier = file_query.capture_quantifiers(0)[index as usize]; 121 + let quantifier = 122 + file_query.capture_quantifiers(mat.pattern_index)[index as usize]; 122 123 (name, quantifier, index) 123 124 }) 124 125 .filter(|c| c.2 != stanza.full_match_file_capture_index as u32)