tree-sitter-python
Advanced tools
Comparing version 0.21.0 to 0.23.2
@@ -59,2 +59,3 @@ /** | ||
[$.type_alias_statement, $.primary_expression], | ||
[$.match_statement, $.primary_expression], | ||
], | ||
@@ -810,2 +811,6 @@ | ||
_not_in: _ => seq('not', 'in'), | ||
_is_not: _ => seq('is', 'not'), | ||
comparison_operator: $ => prec.left(PREC.compare, seq( | ||
@@ -824,5 +829,5 @@ $.primary_expression, | ||
'in', | ||
alias(seq('not', 'in'), 'not in'), | ||
alias($._not_in, 'not in'), | ||
'is', | ||
alias(seq('is', 'not'), 'is not'), | ||
alias($._is_not, 'is not'), | ||
)), | ||
@@ -1110,3 +1115,3 @@ $.primary_expression, | ||
/x[a-fA-F\d]{2}/, | ||
/\d{3}/, | ||
/\d{1,3}/, | ||
/\r?\n/, | ||
@@ -1178,7 +1183,9 @@ /['"abfrntv\\]/, | ||
'await', | ||
'match', | ||
), | ||
$.identifier, | ||
)), | ||
alias('type', $.identifier), | ||
alias( | ||
choice('type', 'match'), | ||
$.identifier, | ||
), | ||
), | ||
@@ -1185,0 +1192,0 @@ |
{ | ||
"name": "tree-sitter-python", | ||
"version": "0.21.0", | ||
"version": "0.23.2", | ||
"description": "Python grammar for tree-sitter", | ||
"repository": "github:tree-sitter/tree-sitter-python", | ||
"license": "MIT", | ||
"author": "Max Brunsfeld", | ||
"author": "Max Brunsfeld <maxbrunsfeld@gmail.com>", | ||
"contributors": [ | ||
"Amaan Qureshi" | ||
"Amaan Qureshi <amaanq12@gmail.com>" | ||
], | ||
@@ -28,4 +28,4 @@ "main": "bindings/node", | ||
"dependencies": { | ||
"node-addon-api": "^7.1.0", | ||
"node-gyp-build": "^4.8.0" | ||
"node-addon-api": "^8.1.0", | ||
"node-gyp-build": "^4.8.2" | ||
}, | ||
@@ -35,4 +35,4 @@ "devDependencies": { | ||
"eslint-config-google": "^0.14.0", | ||
"tree-sitter-cli": "^0.21.0", | ||
"prebuildify": "^6.0.0" | ||
"tree-sitter-cli": "^0.23.0", | ||
"prebuildify": "^6.0.1" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"peerDependenciesMeta": { | ||
"tree_sitter": { | ||
"tree-sitter": { | ||
"optional": true | ||
@@ -49,8 +49,9 @@ } | ||
"scripts": { | ||
"build": "tree-sitter generate --no-bindings", | ||
"lint": "eslint grammar.js", | ||
"parse": "tree-sitter parse", | ||
"test": "tree-sitter test", | ||
"install": "node-gyp-build", | ||
"prebuildify": "prebuildify --napi --strip" | ||
"prebuildify": "prebuildify --napi --strip", | ||
"prestart": "tree-sitter build --wasm", | ||
"start": "tree-sitter playground", | ||
"test": "node --test bindings/node/*_test.js" | ||
}, | ||
@@ -67,3 +68,45 @@ "tree-sitter": [ | ||
} | ||
] | ||
], | ||
"eslintConfig": { | ||
"env": { | ||
"commonjs": true, | ||
"es2021": true | ||
}, | ||
"extends": "google", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"arrow-parens": "off", | ||
"camel-case": "off", | ||
"indent": [ | ||
"error", | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 160, | ||
"ignoreComments": true, | ||
"ignoreUrls": true, | ||
"ignoreStrings": true | ||
} | ||
], | ||
"spaced-comment": [ | ||
"warn", | ||
"always", | ||
{ | ||
"line": { | ||
"markers": [ | ||
"/" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 4 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22
11150
5792937
5
- Removednode-addon-api@7.1.1(transitive)
Updatednode-addon-api@^8.1.0
Updatednode-gyp-build@^4.8.2