File tree 3 files changed +11
-17
lines changed
3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 9
9
- https://github.com/tree-sitter/tree-sitter.github.io/blob/7371e63/tree-sitter.wasm
10
10
- Or download those files from https://github.com/tree-sitter/tree-sitter/releases/
11
11
-->
12
+
12
13
< head >
13
14
< meta charset ="utf-8 ">
14
15
< title > Grammar for comment tags like TODO - tree-sitter-comment</ title >
45
46
</ div >
46
47
47
48
< select id ="language-select " style ="display: none; ">
48
- < option value ="comment " selected > Parser</ option >
49
+ < option value ="parser " selected > Parser</ option >
49
50
</ select >
50
51
</ header >
51
52
66
67
</ main >
67
68
</ div >
68
69
69
- < script
70
- src ="https://code.jquery.com/jquery-3.3.1.min.js "
71
- crossorigin ="anonymous ">
72
- </ script >
70
+ < script src ="https://code.jquery.com/jquery-3.3.1.min.js " crossorigin ="anonymous "> </ script >
73
71
74
72
< script src ="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.js "> </ script >
75
73
< script src ="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.min.js "> </ script >
84
82
const $codeEditor = document . querySelector ( '.CodeMirror' ) ;
85
83
if ( $codeEditor ) {
86
84
$codeEditor . CodeMirror . setValue ( codeExample ) ;
87
- // The selected language gets cached from other
88
- // playgrounds for some reason, force it to update.
89
- let languageSelect = document . getElementById ( 'language-select' ) ;
90
- languageSelect . value = 'comment' ;
91
- let changeEvent = new Event ( 'change' ) ;
92
- languageSelect . dispatchEvent ( changeEvent ) ;
93
85
clearInterval ( handle ) ;
94
86
}
95
87
} , 500 ) ;
108
100
</ script >
109
101
110
102
< style >
111
- body {
112
- margin : 0 ;
113
- padding : 0 ;
114
- }
103
+ body {
104
+ margin : 0 ;
105
+ padding : 0 ;
106
+ }
115
107
116
108
# playground-container {
117
109
width : 100% ;
143
135
flex-direction : column;
144
136
}
145
137
146
- # code-container , # query-container {
138
+ # code-container ,
139
+ # query-container {
147
140
flex : 1 ;
148
141
position : relative;
149
142
overflow : hidden;
210
203
211
204
.query-error {
212
205
text-decoration : underline red dashed;
206
+ -webkit-text-decoration : underline red dashed;
213
207
}
214
208
</ style >
215
209
</ body >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments