2
2
3
3
# @codemirror/lang-python [ ![ NPM version] ( https://img.shields.io/npm/v/@codemirror/lang-python.svg )] ( https://www.npmjs.org/package/@codemirror/lang-python )
4
4
5
- [ [ ** WEBSITE** ] ( https://codemirror.net/ ) | [ ** ISSUES** ] ( https://github.com/codemirror/dev/issues ) | [ ** FORUM** ] ( https://discuss.codemirror.net/c/next/ ) | [ ** CHANGELOG** ] ( https://github.com/codemirror/lang-python/blob/main/CHANGELOG.md ) ]
5
+ [ [ ** WEBSITE** ] ( https://codemirror.net/6/ ) | [ ** ISSUES** ] ( https://github.com/codemirror/dev/issues ) | [ ** FORUM** ] ( https://discuss.codemirror.net/c/next/ ) | [ ** CHANGELOG** ] ( https://github.com/codemirror/lang-python/blob/main/CHANGELOG.md ) ]
6
6
7
7
This package implements Python language support for the
8
- [ CodeMirror] ( https://codemirror.net/ ) code editor.
8
+ [ CodeMirror] ( https://codemirror.net/6/ ) code editor.
9
9
10
- The [ project page] ( https://codemirror.net/ ) has more information, a
11
- number of [ examples] ( https://codemirror.net/examples/ ) and the
12
- [ documentation] ( https://codemirror.net/docs/ ) .
10
+ The [ project page] ( https://codemirror.net/6/ ) has more information, a
11
+ number of [ examples] ( https://codemirror.net/6/ examples/ ) and the
12
+ [ documentation] ( https://codemirror.net/6/ docs/ ) .
13
13
14
14
This code is released under an
15
15
[ MIT license] ( https://github.com/codemirror/lang-python/tree/main/LICENSE ) .
@@ -20,17 +20,29 @@ conduct](http://contributor-covenant.org/version/1/1/0/) that applies
20
20
to communication around the project.
21
21
22
22
# API Reference
23
+
23
24
<dl >
24
- <dt id =" user-content-python " >
25
- <code ><strong ><a href =" #user-content-python " >python </a ></strong >() → <a href =" https://codemirror.net/docs/ref#language.LanguageSupport " >LanguageSupport </a ></code ></dt >
25
+ <dt id =" user-content-globalcompletion " >
26
+ <code ><strong ><a href =" #user-content-globalcompletion " >globalCompletion </a ></strong >: <a href =" https://codemirror.net/docs/ref#autocomplete.CompletionSource " >CompletionSource </a ></code ></dt >
26
27
27
- <dd ><p >Python language support.</p >
28
+ <dd ><p >Autocompletion for built-in Python globals and keywords.</p >
29
+ </dd >
30
+ <dt id =" user-content-localcompletionsource " >
31
+ <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 >
32
+
33
+ <dd ><p >Completion source that looks up locally defined names in
34
+ Python code.</p >
28
35
</dd >
29
36
<dt id =" user-content-pythonlanguage " >
30
- <code ><strong ><a href =" #user-content-pythonlanguage " >pythonLanguage</a ></strong >: <a href =" https://codemirror.net/docs/ref#language.LezerLanguage " >LezerLanguage </a ></code ></dt >
37
+ <code ><strong ><a href =" #user-content-pythonlanguage " >pythonLanguage</a ></strong >: <a href =" https://codemirror.net/docs/ref#language.LRLanguage " >LRLanguage </a ></code ></dt >
31
38
32
39
<dd ><p >A language provider based on the <a href =" https://github.com/lezer-parser/python " >Lezer Python
33
40
parser</a >, extended with
34
41
highlighting and indentation information.</p >
35
42
</dd >
36
- </dl >
43
+ <dt id =" user-content-python " >
44
+ <code ><strong ><a href =" #user-content-python " >python</a ></strong >() → <a href =" https://codemirror.net/docs/ref#language.LanguageSupport " >LanguageSupport</a ></code ></dt >
45
+
46
+ <dd ><p >Python language support.</p >
47
+ </dd >
48
+ </dl >
0 commit comments