From a3b968fe37200ed6f07a3695da5943c77d8fb5ec Mon Sep 17 00:00:00 2001 From: James Owen Date: Wed, 8 Nov 2023 11:55:25 +0000 Subject: [PATCH] Add missing scanner.c to README and Package.swift Prior to this change, a new scanner.c source file had been added to the repository. The Makefile had been updated, but the command in the README was missing the new file. This change adds the new file to the command in the README, and also updates the Package.swift file to declare it as a source. --- Package.swift | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 3cae9629..3abc28b4 100644 --- a/Package.swift +++ b/Package.swift @@ -26,6 +26,7 @@ let package = Package( ], sources: [ "src/parser.c", + "src/scanner.c", ], publicHeadersPath: "bindings/swift", cSettings: [.headerSearchPath("src")]) diff --git a/README.md b/README.md index 3f19a42a..161c892f 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Tree-sitter parsers need to be compiled as a shared-object / dynamic-library, yo `-shared` & `-fPIC` flags to your compiler. ```bash -cc -shared -fPIC -I./src src/parser.c -o sql.so +cc -shared -fPIC -I./src src/parser.c src/scanner.c -o sql.so ``` ## Features