Initial commit: Tree-sitter grammar for XML language

This commit is contained in:
2025-09-10 23:50:46 -04:00
commit 1e86bc6d16
9 changed files with 1931 additions and 0 deletions

37
tree-sitter.json Normal file
View File

@@ -0,0 +1,37 @@
{
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/config.schema.json",
"grammars": [
{
"name": "xml",
"camelcase": "Xml",
"title": "XML",
"scope": "source.xml",
"file-types": ["xml"],
"injection-regex": "^xml$",
"class-name": "TreeSitterXml"
}
],
"metadata": {
"version": "1.0.0",
"license": "MIT",
"description": "A Tree-sitter grammar for parsing XML files (nand2tetris compiler output)",
"authors": [
{
"name": "Sean O'Connor",
"email": "sean@soconnor.dev"
}
],
"links": {
"repository": "https://github.com/soconnor0919/nand2tetris-zed"
}
},
"bindings": {
"c": true,
"go": false,
"node": true,
"python": false,
"rust": true,
"swift": false,
"zig": false
}
}