@codemirror/lang-python
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -0,1 +1,7 @@ | ||
## 6.0.3 (2022-10-19) | ||
### Bug fixes | ||
Add proper indentation handling of `else` clauses in `try` statements. | ||
## 6.0.2 (2022-09-22) | ||
@@ -2,0 +8,0 @@ |
@@ -32,3 +32,3 @@ import { parser } from '@lezer/python'; | ||
IfStatement: cx => /^\s*(else:|elif )/.test(cx.textAfter) ? cx.baseIndent : cx.continue(), | ||
TryStatement: cx => /^\s*(except |finally:)/.test(cx.textAfter) ? cx.baseIndent : cx.continue(), | ||
TryStatement: cx => /^\s*(except |finally:|else:)/.test(cx.textAfter) ? cx.baseIndent : cx.continue(), | ||
"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression": /*@__PURE__*/delimitedIndent({ closing: ")" }), | ||
@@ -35,0 +35,0 @@ "DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression": /*@__PURE__*/delimitedIndent({ closing: "}" }), |
{ | ||
"name": "@codemirror/lang-python", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "Python language support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
13981