chore(deps): tree-sitter-cli@0.15.9

This commit is contained in:
Ika 2019-09-20 08:49:41 +08:00
parent cf7ab22b99
commit 2ee479d3d0
8 changed files with 20538 additions and 20587 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
/build /build
/node_modules /node_modules
/tree-sitter

View file

@ -1,13 +1,10 @@
language: rust language: node_js
rust: node_js:
- stable - "12"
script: script:
- if [ ! -d "./tree-sitter/target/release" ]; then bash ./scripts/setup-tree-sitter.sh; fi - yarn test
- ./tree-sitter/target/release/tree-sitter test
cache: cache:
cargo: true yarn: true
directories:
- ./tree-sitter

View file

@ -16,17 +16,17 @@
}, },
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "yarn tree-sitter test", "test": "tree-sitter test",
"prepack": "yarn tree-sitter generate", "prepack": "tree-sitter generate",
"release": "standard-version", "release": "standard-version"
"tree-sitter": "./tree-sitter/target/release/tree-sitter"
}, },
"dependencies": { "dependencies": {
"nan": "^2.14.0" "nan": "^2.14.0"
}, },
"devDependencies": { "devDependencies": {
"natural-orderby": "2.0.3", "natural-orderby": "2.0.3",
"standard-version": "7.0.0" "standard-version": "7.0.0",
"tree-sitter-cli": "0.15.9"
}, },
"files": [ "files": [
"/src/", "/src/",

View file

@ -1,6 +0,0 @@
git clone https://github.com/tree-sitter/tree-sitter --branch 0.15.7 --depth 1
cd tree-sitter
git submodule update --init
git apply ../scripts/tree-sitter.diff
./script/build-wasm
cargo build --release

View file

@ -1,13 +0,0 @@
diff --git a/cli/src/test.rs b/cli/src/test.rs
index bc05f29..3578a0b 100644
--- a/cli/src/test.rs
+++ b/cli/src/test.rs
@@ -17,7 +17,7 @@ lazy_static! {
.multi_line(true)
.build()
.unwrap();
- static ref DIVIDER_REGEX: ByteRegex = ByteRegexBuilder::new(r"\r?\n---+\r?\n")
+ static ref DIVIDER_REGEX: ByteRegex = ByteRegexBuilder::new(r"\r?\n------+\r?\n")
.multi_line(true)
.build()
.unwrap();

View file

@ -17,10 +17,7 @@ function updateTestOutputs(dirname) {
let stdout; let stdout;
try { try {
child_process.execFileSync( child_process.execFileSync("./node_modules/.bin/tree-sitter", ["test"]);
"./tree-sitter/target/release/tree-sitter",
["test"],
);
} catch (error) { } catch (error) {
stdout = error.stdout.toString(); stdout = error.stdout.toString();
} }

41072
src/parser.c generated

File diff suppressed because it is too large Load diff

View file

@ -1224,6 +1224,11 @@ through@2, "through@>=2.2.7 <3":
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
tree-sitter-cli@0.15.9:
version "0.15.9"
resolved "https://registry.yarnpkg.com/tree-sitter-cli/-/tree-sitter-cli-0.15.9.tgz#3e9509282f1a589172cf8a59e92350f7c6b5ae88"
integrity sha512-jqeuo78srjRgYu4QjoPfLiYxBKSUGiv3/pZEaZZT2bB1fTQzaBS9mVtQvgAYTOC/fwY/K894Hb/LHqshmdopKw==
trim-newlines@^1.0.0: trim-newlines@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"