forked from tree-sitter/tree-sitter-ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
103 lines (103 loc) · 3.04 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "tree-sitter-ocaml",
"version": "0.22.0",
"description": "OCaml grammar for tree-sitter",
"repository": "github:tree-sitter/tree-sitter-ocaml",
"license": "MIT",
"main": "bindings/node",
"types": "bindings/node",
"keywords": [
"incremental",
"parsing",
"tree-sitter",
"ocaml"
],
"files": [
"binding.gyp",
"bindings/node/*",
"common/**",
"grammars/ocaml/src/**",
"grammars/interface/src/**",
"grammars/type/src/**",
"prebuilds/**",
"queries/*",
"*.wasm"
],
"dependencies": {
"node-addon-api": "^8.0.0",
"node-gyp-build": "^4.8.1"
},
"devDependencies": {
"prebuildify": "^6.0.1",
"tree-sitter-cli": "^0.22.6"
},
"peerDependencies": {
"tree-sitter": "^0.21.1"
},
"peerDependenciesMeta": {
"tree-sitter": {
"optional": true
}
},
"scripts": {
"install": "node-gyp-build",
"build": "npm run build-ocaml && npm run build-interface && npm run build-type",
"build-ocaml": "cd grammars/ocaml && tree-sitter generate --no-bindings",
"build-interface": "cd grammars/interface && tree-sitter generate --no-bindings",
"build-type": "cd grammars/type && tree-sitter generate --no-bindings",
"build-wasm": "npm run build-wasm-ocaml && npm run build-wasm-interface && npm run build-wasm-type",
"build-wasm-ocaml": "cd grammars/ocaml && tree-sitter build --wasm",
"build-wasm-interface": "cd grammars/interface && tree-sitter build --wasm",
"build-wasm-type": "cd grammars/type && tree-sitter build --wasm",
"test": "npm run test-ocaml && npm run test-interface && npm run test-type && npm run test-highlight && npm run test-binding",
"test-ocaml": "cd grammars/ocaml && tree-sitter test",
"test-interface": "cd grammars/interface && tree-sitter test",
"test-type": "cd grammars/type && tree-sitter test",
"test-highlight": "tree-sitter test",
"test-binding": "node --test bindings/node/*_test.js",
"parse": "tree-sitter parse",
"parse-examples": "test/parse-examples.sh"
},
"tree-sitter": [
{
"scope": "source.ocaml",
"path": "grammars/ocaml",
"external-files": [
"common/scanner.h"
],
"file-types": [
"ml"
],
"injection-regex": "^(ocaml|ml)$",
"highlights": "queries/highlights.scm",
"locals": "queries/locals.scm",
"tags": "queries/tags.scm"
},
{
"scope": "source.ocaml.interface",
"path": "grammars/interface",
"external-files": [
"common/scanner.h"
],
"file-types": [
"mli"
],
"injection-regex": "^ocaml_interface$",
"highlights": "queries/highlights.scm",
"locals": "queries/locals.scm",
"tags": "queries/tags.scm"
},
{
"scope": "source.ocaml.type",
"path": "grammars/type",
"external-files": [
"common/scanner.h"
],
"file-types": [],
"injection-regex": "^ocaml_type$",
"highlights": "queries/highlights.scm",
"locals": "queries/locals.scm",
"tags": "queries/tags.scm"
}
]
}