mirror of https://github.com/Wilfred/difftastic/
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"name": "tree-sitter-cpp",
|
|
"version": "0.20.1",
|
|
"description": "C++ grammar for tree-sitter",
|
|
"main": "bindings/node",
|
|
"keywords": [
|
|
"parser",
|
|
"c++"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tree-sitter/tree-sitter-cpp.git"
|
|
},
|
|
"author": "Max Brunsfeld",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"nan": "^2.14.0"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.43.0",
|
|
"eslint-config-google": "^0.14.0",
|
|
"tree-sitter-c": "github:tree-sitter/tree-sitter-c",
|
|
"tree-sitter-cli": "^0.20.8"
|
|
},
|
|
"scripts": {
|
|
"build": "tree-sitter generate && node-gyp build",
|
|
"lint": "eslint grammar.js",
|
|
"test": "tree-sitter test && tree-sitter parse examples/* --quiet --time",
|
|
"test-windows": "tree-sitter test"
|
|
},
|
|
"tree-sitter": [
|
|
{
|
|
"scope": "source.cpp",
|
|
"file-types": [
|
|
"cc",
|
|
"cpp",
|
|
"hpp",
|
|
"h"
|
|
],
|
|
"highlights": [
|
|
"queries/highlights.scm",
|
|
"node_modules/tree-sitter-c/queries/highlights.scm"
|
|
],
|
|
"injections": "queries/injections.scm",
|
|
"injection-regex": "^(cc|cpp)$"
|
|
}
|
|
]
|
|
}
|