Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Add an initial ditto language pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Mackie committed Feb 12, 2023
1 parent a92802e commit a6bdbf2
Show file tree
Hide file tree
Showing 14 changed files with 2,716 additions and 65 deletions.
2 changes: 2 additions & 0 deletions lezer-ditto/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package-lock.json
types
3 changes: 3 additions & 0 deletions lezer-ditto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```
npx lezer-import-tree-sitter ./node_modules/tree-sitter-ditto/src/grammar.json > src/ditto.grammar
```
26 changes: 26 additions & 0 deletions lezer-ditto/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "lezer-ditto",
"version": "1.0.0",
"type": "module",
"main": "./src/index.js",
"types": "./types/index.d.ts",
"scripts": {
"build": "lezer-generator src/ditto.grammar --names -o src/parser",
"gen-types": "tsc --allowJs -d --emitDeclarationOnly src/index.js --outDir types",
"test": "mocha test.js"
},
"dependencies": {
"@lezer/highlight": "^1.1.3",
"@lezer/lr": "^1.3.3"
},
"devDependencies": {
"@lezer/generator": "^1.2.2",
"mocha": "^10.2.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5"
},
"optionalDependencies": {
"lezer-import-tree-sitter": "github:lezer-parser/import-tree-sitter",
"tree-sitter-ditto": "github:ditto-lang/tree-sitter-ditto"
}
}
Loading

0 comments on commit a6bdbf2

Please sign in to comment.