File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 33export PLAYGROUND=" playground"
44export HIGHLIGHTJS_RASCRIPT=" ${PLAYGROUND} /extra/highlightjs-rascript"
55export RASCRIPT_SYNTAX_VERSION=" v0.2.0"
6+ export HIGHLIGHTJS_VERSION=" 11.11.1"
67
78rm -rf ${PLAYGROUND}
89mkdir -p ${PLAYGROUND}
910git clone https://github.com/highlightjs/highlight.js ${PLAYGROUND}
1011cd ${PLAYGROUND}
11- git checkout tags/11.11.1
12+ git checkout tags/${HIGHLIGHTJS_VERSION}
1213cd ..
1314wget -O rascript-upstream.js " https://github.com/joshraphael/rascript-syntax/releases/download/${RASCRIPT_SYNTAX_VERSION} /rascript.js"
1415mkdir -p ${HIGHLIGHTJS_RASCRIPT}
Original file line number Diff line number Diff line change 1+ <span class="hljs-keyword">class</span> <span class="hljs-variable">Test</span>
2+ {
3+ <span class="hljs-variable">t_test</span> = <span class="hljs-number">0</span>
4+
5+ <span class="hljs-keyword">function</span> <span class="hljs-title function_ invoke__">DoSomething</span>(<span class="hljs-variable">arg1</span>, <span class="hljs-variable">arg2</span>) {
6+ <span class="hljs-variable language_">this</span>.<span class="hljs-variable">t_test</span> = <span class="hljs-variable">arg1</span> <span class="hljs-operator">+</span> <span class="hljs-variable">arg2</span>
7+ }
8+
9+ <span class="hljs-keyword">function</span> <span class="hljs-title function_ invoke__">GetSomething</span>() {
10+ <span class="hljs-keyword">return</span> <span class="hljs-variable language_">this</span>.<span class="hljs-variable">t_test</span>
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ class Test
2+ {
3+ t_test = 0
4+
5+ function DoSomething(arg1, arg2) {
6+ this.t_test = arg1 + arg2
7+ }
8+
9+ function GetSomething() {
10+ return this.t_test
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments