Skip to content

Commit a1cb7b7

Browse files
committed
organize code
1 parent 2ae3f7e commit a1cb7b7

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

js/colorMap.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
const keywordPrefix = '<div class="keyword">';
2+
const keywordSuffix = '</div>';
3+
4+
const valuePrefix = '<div class="value">';
5+
const valueSuffix = '</div>';
6+
17
const colorMap = {
28
'abstract': { prefix: keywordPrefix, suffix: keywordSuffix },
39
'assert': { prefix: keywordPrefix, suffix: keywordSuffix },

js/var.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
const characterPrefix = '<div class="character">';
22
const characterSuffix = '</div>';
33

4-
const keywordPrefix = '<div class="keyword">';
5-
const keywordSuffix = '</div>';
6-
7-
const valuePrefix = '<div class="value">';
8-
const valueSuffix = '</div>';
9-
10-
var lineRef = [];
114
const defaultCaret = new Caret(0,1,1);
125
const shiftKey = new Key(16, '');
136
const ctrlKey = new Key(17, '');
147
const altKey = new Key(18, '');
158
const capsLockKey = new Key(20, '');
16-
var ignoreKeyList = [16, 17, 18];
17-
var tabSize = 4;
9+
const ignoreKeyList = [16, 17, 18];
10+
11+
var tabSize = 4;
12+
var lineRef = [];

0 commit comments

Comments
 (0)