Skip to content

Commit c1fb055

Browse files
committed
Add a readme with generated API docs
1 parent 85d69b4 commit c1fb055

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- NOTE: README.md is generated from src/README.md -->
2+
13
# @codemirror/lang-cpp [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-cpp.svg)](https://www.npmjs.org/package/@codemirror/lang-cpp)
24

35
[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-cpp/blob/main/CHANGELOG.md) ]
@@ -16,3 +18,20 @@ We aim to be an inclusive, welcoming community. To make that explicit,
1618
we have a [code of
1719
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
1820
to communication around the project.
21+
22+
## API Reference
23+
<dl>
24+
<dt id="user-content-cpp">
25+
<code><strong><a href="#user-content-cpp">cpp</a></strong>() → <a href="https://codemirror.net/6/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt>
26+
27+
<dd><p>Language support for C++.</p>
28+
</dd>
29+
<dt id="user-content-cpplanguage">
30+
<code><strong><a href="#user-content-cpplanguage">cppLanguage</a></strong>: <a href="https://codemirror.net/6/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt>
31+
32+
<dd><p>A language provider based on the <a href="https://github.com/lezer-parser/cpp">Lezer C++
33+
parser</a>, extended with
34+
highlighting and indentation information.</p>
35+
</dd>
36+
</dl>
37+

src/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!-- NOTE: README.md is generated from src/README.md -->
2+
3+
# @codemirror/lang-cpp [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-cpp.svg)](https://www.npmjs.org/package/@codemirror/lang-cpp)
4+
5+
[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-cpp/blob/main/CHANGELOG.md) ]
6+
7+
This package implements C++ language support for the
8+
[CodeMirror](https://codemirror.net/6/) code editor.
9+
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+
14+
This code is released under an
15+
[MIT license](https://github.com/codemirror/lang-cpp/tree/main/LICENSE).
16+
17+
We aim to be an inclusive, welcoming community. To make that explicit,
18+
we have a [code of
19+
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
20+
to communication around the project.
21+
22+
## API Reference
23+
24+
@cpp
25+
26+
@cppLanguage

0 commit comments

Comments
 (0)