Skip to content

Commit

Permalink
Added attribution to klothoplatform & Removed .idea file
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-ulrich1 committed Jul 19, 2023
1 parent fba87dc commit 46e4b04
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/go-tree-sitter.iml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

3 changes: 3 additions & 0 deletions bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ func NewQuery(pattern []byte, lang *Language) (*Query, error) {

q := &Query{c: c}

// Copied from: https://github.com/klothoplatform/go-tree-sitter/commit/e351b20167b26d515627a4a1a884528ede5fef79
// this is just used for syntax validation - it does not actually filter anything
for i := uint32(0); i < q.PatternCount(); i++ {
predicates := q.PredicatesForPattern(i)
Expand Down Expand Up @@ -1062,6 +1063,8 @@ func (qc *QueryCursor) NextCapture() (*QueryMatch, uint32, bool) {
return qm, uint32(captureIndex), true
}

// Copied From: https://github.com/klothoplatform/go-tree-sitter/commit/e351b20167b26d515627a4a1a884528ede5fef79

func splitPredicates(steps []QueryPredicateStep) [][]QueryPredicateStep {
var predicateSteps [][]QueryPredicateStep
var currentSteps []QueryPredicateStep
Expand Down

0 comments on commit 46e4b04

Please sign in to comment.