@codemirror/lang-python
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -0,1 +1,7 @@ | ||
## 6.1.2 (2023-03-01) | ||
### Bug fixes | ||
Don't indent lines after a dedented comment line. | ||
## 6.1.1 (2022-12-24) | ||
@@ -2,0 +8,0 @@ |
@@ -200,3 +200,3 @@ import { parser } from '@lezer/python'; | ||
// block part of the block | ||
if (!/\S/.test(line.text) && | ||
if (/^\s*($|#)/.test(line.text) && | ||
context.node.to < to + 100 && | ||
@@ -203,0 +203,0 @@ !/\S/.test(context.state.sliceDoc(to, context.node.to)) && |
{ | ||
"name": "@codemirror/lang-python", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Python language support for the CodeMirror code editor", | ||
@@ -15,3 +15,3 @@ "scripts": { | ||
"name": "Marijn Haverbeke", | ||
"email": "marijnh@gmail.com", | ||
"email": "marijn@haverbeke.berlin", | ||
"url": "http://marijnhaverbeke.nl" | ||
@@ -18,0 +18,0 @@ }, |
@@ -23,10 +23,17 @@ <!-- NOTE: README.md is generated from src/README.md --> | ||
# API Reference | ||
<dl> | ||
<dt id="user-content-python"> | ||
<code><strong><a href="#user-content-python">python</a></strong>() → <a href="https://codemirror.net/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
<dt id="user-content-globalcompletion"> | ||
<code><strong><a href="#user-content-globalcompletion">globalCompletion</a></strong>: <a href="https://codemirror.net/docs/ref#autocomplete.CompletionSource">CompletionSource</a></code></dt> | ||
<dd><p>Python language support.</p> | ||
<dd><p>Autocompletion for built-in Python globals and keywords.</p> | ||
</dd> | ||
<dt id="user-content-localcompletionsource"> | ||
<code><strong><a href="#user-content-localcompletionsource">localCompletionSource</a></strong>(<a id="user-content-localcompletionsource^context" href="#user-content-localcompletionsource^context">context</a>: <a href="https://codemirror.net/docs/ref#autocomplete.CompletionContext">CompletionContext</a>) → <a href="https://codemirror.net/docs/ref#autocomplete.CompletionResult">CompletionResult</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></code></dt> | ||
<dd><p>Completion source that looks up locally defined names in | ||
Python code.</p> | ||
</dd> | ||
<dt id="user-content-pythonlanguage"> | ||
<code><strong><a href="#user-content-pythonlanguage">pythonLanguage</a></strong>: <a href="https://codemirror.net/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt> | ||
<code><strong><a href="#user-content-pythonlanguage">pythonLanguage</a></strong>: <a href="https://codemirror.net/docs/ref#language.LRLanguage">LRLanguage</a></code></dt> | ||
@@ -37,2 +44,7 @@ <dd><p>A language provider based on the <a href="https://github.com/lezer-parser/python">Lezer Python | ||
</dd> | ||
</dl> | ||
<dt id="user-content-python"> | ||
<code><strong><a href="#user-content-python">python</a></strong>() → <a href="https://codemirror.net/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt> | ||
<dd><p>Python language support.</p> | ||
</dd> | ||
</dl> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32525
48