Skip to content

Commit 2c052b8

Browse files
committed
chore: rename files
1 parent 2eb48b1 commit 2c052b8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Check out the [examples](https://wenyan-lang.github.io/highlight)
66

77
| Format | File |
88
| --- | --- |
9-
| [CodeMirror](https://codemirror.net/mode/) | [codemirror.js](./codemirror.json) |
10-
| [Prism](https://prismjs.com/extending.html) | [prism.js](./prism.js) |
11-
| [TextMate Grammar](https://macromates.com/manual/en/language_grammars) | [tmGrammar.json](./tmGrammar.json) |
9+
| [CodeMirror](https://codemirror.net/mode/) | [wenyan.codemirror.js](./wenyan.codemirror.json) |
10+
| [Prism](https://prismjs.com/extending.html) | [wenyan.prism.js](./wenyan.prism.js) |
11+
| [TextMate Grammar](https://macromates.com/manual/en/language_grammars) | [wenyan.tmLanguage.json](./wenyan.tmLanguage.json) |
1212

1313
### Highlight Themes
1414

@@ -27,7 +27,7 @@ Check out the [examples](https://wenyan-lang.github.io/highlight)
2727

2828
```html
2929
<!--Highlighter-->
30-
<script src='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/codemirror.js'></script>
30+
<script src='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/wenyan.codemirror.js'></script>
3131
<!--Theme-->
3232
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/wenyan-light.codemirror.css'>
3333
```
@@ -39,11 +39,11 @@ npm i @wenyan/highlight
3939
```
4040

4141
```js
42-
require('@wenyan/highlight/codemirror')
42+
require('@wenyan/highlight/wenyan.codemirror')
4343

4444
// or
4545

46-
import '@wenyan/highlight/codemirror'
46+
import '@wenyan/highlight/wenyan.codemirror'
4747
```
4848

4949
### Build
@@ -52,4 +52,4 @@ The syntax highlighter are generated from the language syntax definition. Rebuil
5252

5353
```bash
5454
npm run build
55-
```
55+
```
File renamed without changes.
File renamed without changes.

tmGrammar.json renamed to wenyan.tmGrammar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
33
"scopeName": "source.wenyan",
4+
"name": "wenyan",
45
"patterns": [
56
{
67
"include": "#keywords"

0 commit comments

Comments
 (0)