Skip to content

Commit 19cb6df

Browse files
committed
Move parser information to tree-sitter.json
1 parent a78952c commit 19cb6df

File tree

2 files changed

+41
-10
lines changed

2 files changed

+41
-10
lines changed

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,5 @@
4343
},
4444
"peerDependencies": {
4545
"tree-sitter": "^0.21.0"
46-
},
47-
"tree-sitter": [
48-
{
49-
"scope": "source.elixir",
50-
"file-types": ["ex", "exs"],
51-
"highlights": ["queries/highlights.scm"],
52-
"tags": ["queries/tags.scm"],
53-
"injection-regex": "^(ex|elixir)$"
54-
}
55-
]
46+
}
5647
}

tree-sitter.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"grammars": [
3+
{
4+
"name": "elixir",
5+
"camelcase": "Elixir",
6+
"scope": "source.elixir",
7+
"path": ".",
8+
"file-types": ["ex", "exs"],
9+
"highlights": "queries/highlights.scm",
10+
"tags": "queries/tags.scm",
11+
"injection-regex": "^(ex|elixir)$"
12+
}
13+
],
14+
"metadata": {
15+
"version": "0.3.2",
16+
"license": "Apache-2.0",
17+
"description": "Elixir grammar for the tree-sitter parsing library",
18+
"authors": [
19+
{
20+
"name": "Jonatan Kłosko",
21+
"email": "[email protected]"
22+
},
23+
{
24+
"name": "Michael Davis",
25+
"email": "[email protected]"
26+
}
27+
],
28+
"links": {
29+
"repository": "https://github.com/elixir-lang/tree-sitter-elixir"
30+
}
31+
},
32+
"bindings": {
33+
"c": true,
34+
"go": true,
35+
"node": true,
36+
"python": true,
37+
"rust": true,
38+
"swift": true
39+
}
40+
}

0 commit comments

Comments
 (0)