Skip to content

Commit

Permalink
Add scanner.c to bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd authored Jul 29, 2024
1 parent 7f6b436 commit 73a7377
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let package = Package(
],
sources: [
"src/parser.c",
// NOTE: if your language has an external scanner, add it here.
"src/scanner.c",
],
resources: [
.copy("queries")
Expand Down
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"sources": [
"bindings/node/binding.cc",
"src/parser.c",
# NOTE: if your language has an external scanner, add it here.
"src/scanner.c"
],
"conditions": [
["OS!='win'", {
Expand Down
1 change: 1 addition & 0 deletions bindings/go/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tree_sitter_kotlin

// #cgo CFLAGS: -std=c11 -fPIC
// #include "../../src/parser.c"
// #include "../../src/scanner.c"
// // NOTE: if your language has an external scanner, add it here.
import "C"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_tag(self):
sources=[
"bindings/python/tree_sitter_kotlin/binding.c",
"src/parser.c",
# NOTE: if your language uses an external scanner, add it here.
"src/scanner.c",
],
extra_compile_args=[
"-std=c11",
Expand Down

0 comments on commit 73a7377

Please sign in to comment.