tree-sitter-python
Advanced tools
Comparing version 0.13.4 to 0.13.5
@@ -67,2 +67,3 @@ const PREC = { | ||
_simple_statement: $ => choice( | ||
$.future_import_statement, | ||
$.import_statement, | ||
@@ -96,2 +97,9 @@ $.import_from_statement, | ||
future_import_statement: $ => seq( | ||
'from', | ||
'__future__', | ||
'import', | ||
$._import_list | ||
), | ||
import_from_statement: $ => seq( | ||
@@ -784,3 +792,3 @@ 'from', | ||
identifier: $ => /[a-zA-Z_]\w*/, | ||
identifier: $ => /[a-zA-Zα-ωΑ-Ω_][a-zA-Zα-ωΑ-Ω_0-9]*/, | ||
@@ -787,0 +795,0 @@ keyword_identifier: $ => alias(choice('print', 'exec'), $.identifier), |
{ | ||
"name": "tree-sitter-python", | ||
"version": "0.13.4", | ||
"version": "0.13.5", | ||
"description": "Python grammar for tree-sitter", | ||
@@ -20,5 +20,6 @@ "main": "index.js", | ||
"build": "tree-sitter generate && node-gyp build", | ||
"test": "tree-sitter test && tree-sitter parse examples --quiet --time" | ||
"test": "tree-sitter test && script/parse-examples", | ||
"test-windows": "tree-sitter test" | ||
}, | ||
"repository": "https://github.com/tree-sitter/tree-sitter-python" | ||
} |
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 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
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
2596477
4755