Best JavaScript code snippet using testcafe
prettify_test.js
Source:prettify_test.js
1/**2 * maps ids of rewritten code to the expected output.3 * For brevity, <span class="foo"> has been changed to `FOO4 * and < /span> has been changed to `END.5 */6var goldens = {7 bash: (8 '`COM#!/bin/bash`END`PLN\n' +9 '\n' +10 '`END`COM# Fibonacci numbers`END`PLN\n' +11 '`END`COM# Writes an infinite series to stdout, one entry per line`END' +12 '`PLN\n' +13 '`END`KWDfunction`END`PLN fib`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +14 ' `END`KWDlocal`END`PLN a`END`PUN=`END`LIT1`END`PLN\n' +15 ' `END`KWDlocal`END`PLN b`END`PUN=`END`LIT1`END`PLN\n' +16 ' `END`KWDwhile`END`PLN `END`KWDtrue`END`PLN `END`PUN;`END' +17 '`PLN `END`KWDdo`END`PLN\n' +18 ' echo $a\n' +19 ' `END`KWDlocal`END`PLN tmp`END`PUN=`END`PLN$a\n' +20 ' a`END`PUN=`END`PLN$`END`PUN((`END`PLN $a `END`PUN+`END' +21 '`PLN $b `END`PUN))`END`PLN\n' +22 ' b`END`PUN=`END`PLN$tmp\n' +23 ' `END`KWDdone`END`PLN\n' +24 '`END`PUN}`END`PLN\n' +25 '\n' +26 '`END`COM# output the 10th element of the series and halt`END`PLN\n' +27 'fib `END`PUN|`END`PLN head `END`PUN-`END`LIT10`END`PLN `END`PUN|`END' +28 '`PLN tail `END`PUN-`END`LIT1`END'29 ),30 bash_lang: (31 '<ol class="linenums">`#`COM#!/bin/bash`END' +32 '`#1`PLN `END' +33 '`#2`COM# Fibonacci numbers`END' +34 '`#3`COM# Writes an infinite series to stdout, one entry per line`END' +35 '`#4`KWDfunction`END`PLN fib`END`PUN()`END`PLN `END`PUN{`END' +36 '`#5`PLN `END`KWDlocal`END`PLN a`END`PUN=`END`LIT1`END' +37 '`#6`PLN `END`KWDlocal`END`PLN b`END`PUN=`END`LIT1`END' +38 '`#7`PLN `END`KWDwhile`END`PLN true `END`PUN;`END' +39 '`PLN `END`KWDdo`END' +40 '`#8`PLN echo $a`END' +41 '`#9`PLN `END`KWDlocal`END`PLN tmp`END`PUN=`END`PLN$a`END' +42 '`#0`PLN a`END`PUN=`END`PLN$`END`PUN((`END`PLN $a `END`PUN+`END' +43 '`PLN $b `END`PUN))`END' +44 '`#1`PLN b`END`PUN=`END`PLN$tmp`END' +45 '`#2`PLN `END`KWDdone`END' +46 '`#3`PUN}`END' +47 '`#4`PLN `END' +48 '`#5`COM# output the 10th element of the series and halt`END' +49 '`#6`PLNfib `END`PUN|`END`PLN `END`PUN/`END`PLNusr`END`PUN/`END`PLNbin`END' +50 '`PUN/*`END`PLNhead `END`PUN-`END`LIT10`END`PLN `END`PUN|`END' +51 '`PLN tail `END`PUN-`END`LIT1`END</li></ol>'52 ),53 issue_165: (54 '`COM# Comment`END`PLN\n' +55 '`END`KWDlocal`END`PLN $x `END`PUN=`END`PLN $`END`PUN{#`END`PLNx`END`PUN[@]}`END`PLN `END' +56 '`COM# Previous is not a comment`END`PLN\n' +57 '`END`COM# A comment`END'58 ),59 c: (60 '`COM#include`END`PLN `END`STR<stdio.h>`END`PLN\n' +61 '\n' +62 '`END`COM/* the n-th fibonacci number.\n' +63 ' *\/`END`PLN\n' +64 '`END`KWDunsigned`END`PLN `END`KWDint`END`PLN fib`END`PUN(`END' +65 '`KWDunsigned`END`PLN `END`KWDint`END`PLN n`END`PUN)`END`PLN `END' +66 '`PUN{`END`PLN\n' +67 ' `END`KWDunsigned`END`PLN `END`KWDint`END`PLN a `END`PUN=`END' +68 '`PLN `END`LIT1`END`PUN,`END`PLN b `END`PUN=`END`PLN `END`LIT1`END' +69 '`PUN;`END`PLN\n' +70 ' `END`KWDunsigned`END`PLN `END`KWDint`END`PLN tmp`END`PUN;`END' +71 '`PLN\n' +72 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +73 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +74 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +75 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +76 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +77 ' `END`PUN}`END`PLN\n' +78 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +79 '`END`PUN}`END`PLN\n' +80 '\n' +81 'main`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +82 ' printf`END`PUN(`END`STR"%u"`END`PUN,`END`PLN fib`END`PUN(`END' +83 '`LIT10`END`PUN));`END`PLN\n' +84 '`END`PUN}`END'85 ),86 c_lang: (87 '`COM#include`END`PLN `END`STR<stdio.h>`END`PLN\n' +88 '\n' +89 '`END`COM/* the n`END<sup>`COMth`END<\/sup>`COM fibonacci number. *\/`END`PLN\n' +90 '`END`TYPuint32`END`PLN fib`END`PUN(`END' +91 '`KWDunsigned`END`PLN `END`TYPint`END`PLN n`END`PUN)`END`PLN `END' +92 '`PUN{`END`PLN\n' +93 ' `END`TYPuint32`END`PLN a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END' +94 '`PLN b `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +95 ' `END`TYPuint32`END`PLN tmp`END`PUN;`END`PLN\n' +96 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +97 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +98 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +99 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +100 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +101 ' `END`PUN}`END`PLN\n' +102 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +103 '`END`PUN}`END`PLN\n' +104 '\n' +105 '`END`KWDvoid`END`PLN main`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +106 ' `END`TYPsize_t`END`PLN size `END`PUN=`END`PLN `END`KWDsizeof`END' +107 '`PUN(`END`TYPwchar_t`END`PUN);`END`PLN\n' +108 ' ASSERT_EQ`END`PUN(`END`PLNsize`END`PUN,`END`PLN `END`LIT1`END' +109 '`PUN);`END`PLN\n' +110 ' printf`END`PUN(`END`STR"%u"`END`PUN,`END`PLN fib`END`PUN(`END' +111 '`LIT10`END`PUN));`END`PLN\n' +112 '`END`PUN}`END`PLN\n' +113 '\n' +114 '`END`COM#define`END`PLN ZERO `END`LIT0`END`PLN `END`COM/* a\n' +115 ' multiline comment *\/`END'116 ),117 cpp: (118 '`COM#include`END`PLN `END`STR<iostream>`END`PLN\n' +119 '\n' +120 '`END`KWDusing`END`PLN `END`KWDnamespace`END`PLN std`END`PUN;`END' +121 '`PLN\n' +122 '\n' +123 '`END`COM//! fibonacci numbers with gratuitous use of templates.`END' +124 '`PLN\n' +125 '`END`COM//! \\param n an index into the fibonacci series`END`PLN\n' +126 '`END`COM//! \\param fib0 element 0 of the series`END`PLN\n' +127 '`END`COM//! \\return the nth element of the fibonacci series`END' +128 '`PLN\n' +129 '`END`KWDtemplate`END`PLN `END`PUN<`END`KWDclass`END`PLN T`END' +130 '`PUN>`END`PLN\n' +131 'T fib`END`PUN(`END`KWDunsigned`END`PLN `END`KWDint`END`PLN n`END' +132 '`PUN,`END`PLN `END`KWDconst`END`PLN T`END`PUN&`END`PLN fib0' +133 '`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +134 ' T a`END`PUN(`END`PLNfib0`END`PUN),`END`PLN b`END`PUN(`END' +135 '`PLNfib0`END`PUN);`END`PLN\n' +136 ' `END`KWDfor`END`PLN `END`PUN(;`END`PLN n`END`PUN;`END' +137 '`PLN `END`PUN--`END`PLNn`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +138 ' T tmp`END`PUN(`END`PLNa`END`PUN);`END`PLN\n' +139 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +140 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +141 ' `END`PUN}`END`PLN\n' +142 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +143 '`END`PUN}`END`PLN\n' +144 '\n' +145 '`END`KWDint`END`PLN main`END`PUN(`END`KWDint`END`PLN argc`END' +146 '`PUN,`END`PLN `END`KWDchar`END`PLN `END`PUN**`END`PLNargv`END' +147 '`PUN)`END`PLN `END`PUN{`END`PLN\n' +148 ' cout `END`PUN<<`END`PLN fib`END`PUN(`END`LIT10`END' +149 '`PUN,`END`PLN `END`LIT1U`END`PUN);`END`PLN\n' +150 '`END`PUN}`END'151 ),152 cpp_lang: (153 '`COM#include`END`PLN `END`STR<iostream>`END`PLN\n' +154 '\n' +155 '`END`KWDusing`END`PLN `END`KWDnamespace`END`PLN std`END`PUN;`END' +156 '`PLN\n' +157 '\n' +158 '`END`COM//! fibonacci numbers with gratuitous use of templates.`END' +159 '`PLN\n' +160 '`END`COM//! \\param n an index into the fibonacci series`END`PLN\n' +161 '`END`COM//! \\param fib0 element 0 of the series`END`PLN\n' +162 '`END`COM//! \\return the nth element of the fibonacci series`END' +163 '`PLN\n' +164 '`END`KWDtemplate`END`PLN `END`PUN<`END`KWDclass`END`PLN T`END' +165 '`PUN>`END`PLN\n' +166 'T fib`END`PUN(`END`TYPint`END`PLN n`END' +167 '`PUN,`END`PLN `END`KWDconst`END`PLN T`END`PUN&`END`PLN fib0' +168 '`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +169 ' T a`END`PUN(`END`PLNfib0`END`PUN),`END`PLN b`END`PUN(`END' +170 '`PLNfib0`END`PUN);`END`PLN\n' +171 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +172 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +173 ' T tmp`END`PUN(`END`PLNa`END`PUN);`END`PLN\n' +174 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +175 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +176 ' `END`PUN}`END`PLN\n' +177 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +178 '`END`PUN}`END`PLN\n' +179 '\n' +180 '`END`TYPint`END`PLN main`END`PUN(`END`TYPint`END`PLN argc`END' +181 '`PUN,`END`PLN `END`KWDchar`END`PLN `END`PUN**`END`PLNargv`END' +182 '`PUN)`END`PLN `END`PUN{`END`PLN\n' +183 ' cout `END`PUN<<`END`PLN fib`END`PUN(`END`LIT10`END' +184 '`PUN,`END`PLN `END`LIT1U`END`PUN);`END`PLN\n' +185 '`END`PUN}`END'186 ),187 java: (188 '`KWDpackage`END`PLN foo`END`PUN;`END`PLN\n' +189 '\n' +190 '`END`KWDimport`END`PLN java`END`PUN.`END`PLNutil`END`PUN.`END' +191 '`TYPIterator`END`PUN;`END`PLN\n' +192 '\n' +193 '`END`COM/**\n' +194 ' * the fibonacci series implemented as an Iterable.\n' +195 ' *\/`END`PLN\n' +196 '`END`KWDpublic`END`PLN `END`KWDfinal`END`PLN `END`KWDclass`END' +197 '`PLN `END`TYPFibonacci`END`PLN `END`KWDimplements`END`PLN `END' +198 '`TYPIterable`END`PUN<`END`TYPInteger`END`PUN>`END`PLN `END`' +199 'PUN{`END`PLN\n' +200 ' `END' +201 '`COM/** the next and previous members of the series. *\/`END' +202 '`PLN\n' +203 ' `END`KWDprivate`END`PLN `END`KWDint`END`PLN a `END`PUN=`END' +204 '`PLN `END`LIT1`END`PUN,`END`PLN b `END`PUN=`END`PLN `END`LIT1`END' +205 '`PUN;`END`PLN\n' +206 '\n' +207 ' `END`LIT@Override`END`PLN\n' +208 ' `END`KWDpublic`END`PLN `END`TYPIterator`END`PUN<`END' +209 '`TYPInteger`END`PUN>`END`PLN iterator`END`PUN()`END`PLN `END' +210 '`PUN{`END`PLN\n' +211 ' `END`KWDreturn`END`PLN `END`KWDnew`END`PLN `END' +212 '`TYPIterator`END`PUN<`END`TYPInteger`END`PUN>()`END`PLN `END' +213 '`PUN{`END`PLN\n' +214 ' `END`COM/** the series is infinite. *\/`END' +215 '`PLN\n' +216 ' `END`KWDpublic`END`PLN `END`KWDboolean`END' +217 '`PLN hasNext`END`PUN()`END`PLN `END`PUN{`END`PLN `END' +218 '`KWDreturn`END`PLN `END`KWDtrue`END`PUN;`END`PLN `END`PUN}`END' +219 '`PLN\n' +220 ' `END`KWDpublic`END`PLN `END`TYPInteger`END' +221 '`PLN `END`KWDnext`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +222 ' `END`KWDint`END`PLN tmp `END`PUN=`END' +223 '`PLN a`END`PUN;`END`PLN\n' +224 ' a `END`PUN+=`END`PLN b`END`PUN;`END' +225 '`PLN\n' +226 ' b `END`PUN=`END`PLN tmp`END`PUN;`END' +227 '`PLN\n' +228 ' `END`KWDreturn`END`PLN a`END`PUN;`END' +229 '`PLN\n' +230 ' `END`PUN}`END`PLN\n' +231 ' `END`KWDpublic`END`PLN `END`KWDvoid`END' +232 '`PLN `END`KWDremove`END`PUN()`END`PLN `END`PUN{`END`PLN `END`KWDthrow`END' +233 '`PLN `END`KWDnew`END`PLN `END' +234 '`TYPUnsupportedOperationException`END`PUN();`END`PLN `END' +235 '`PUN}`END`PLN\n' +236 ' `END`PUN};`END`PLN\n' +237 ' `END`PUN}`END`PLN\n' +238 '\n' +239 ' `END`COM/**\n' +240 ' * the n<sup>th</sup> element of the given ' +241 'series.\n' +242 ' * @throws NoSuchElementException if there are less than ' +243 'n elements in the\n' +244 ' * given Iterable\'s {@link Iterable#iterator ' +245 'iterator}.\n' +246 ' *\/`END`PLN\n' +247 ' `END`KWDpublic`END`PLN `END`KWDstatic`END`PLN `END' +248 '`PUN<`END`PLNT`END`PUN>`END`PLN\n' +249 ' T nth`END`PUN(`END`KWDint`END`PLN n`END`PUN,`END`PLN `END' +250 '`TYPIterable`END`PUN<`END`PLNT`END`PUN>`END' +251 '`PLN iterable`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +252 ' `END`TYPIterator`END`PUN<?`END`PLN ' +253 '`END`KWDextends`END`PLN T`END`PUN>`END`PLN it `END`PUN=`END' +254 '`PLN iterable`END`PUN.`END`PLNiterator`END`PUN();`END`PLN\n' +255 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END' +256 '`PUN>`END`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +257 ' it`END`PUN.`END`KWDnext`END`PUN();`END`PLN\n' +258 ' `END`PUN}`END`PLN\n' +259 ' `END`KWDreturn`END`PLN it`END`PUN.`END`KWDnext`END' +260 '`PUN();`END`PLN\n' +261 ' `END`PUN}`END`PLN\n' +262 '\n' +263 ' `END`KWDpublic`END`PLN `END`KWDstatic`END`PLN `END`KWDvoid`END' +264 '`PLN main`END`PUN(`END`TYPString`END`PUN[]`END`PLN args`END' +265 '`PUN)`END`PLN `END`PUN{`END`PLN\n' +266 ' `END`TYPSystem`END`PUN.`END`KWDout`END`PUN.`END' +267 '`KWDprint`END`PUN(`END`PLNnth`END`PUN(`END`LIT10`END`PUN,`END' +268 '`PLN `END`KWDnew`END`PLN `END`TYPFibonacci`END`PUN()));`END' +269 '`PLN\n' +270 ' `END`PUN}`END`PLN\n' +271 '`END`PUN}`END'272 ),273 java_lang: (274 '<ol class="linenums"><li class="L1" value="12">' +275 '`KWDpackage`END`PLN foo`END`PUN;`END' +276 '`#2`PLN `END' +277 '`#3`KWDimport`END`PLN java`END`PUN.`END`PLNutil`END`PUN.`END' +278 '`TYPIterator`END`PUN;`END' +279 '`#4`PLN `END' +280 '`#5`COM/**`END' +281 '`#6`COM * the fibonacci series implemented as an Iterable.`END' +282 '`#7`COM *\/`END' +283 '`#8`KWDpublic`END`PLN `END`KWDfinal`END`PLN `END`KWDclass`END' +284 '`PLN `END`TYPFibonacci`END`PLN `END`KWDimplements`END`PLN `END' +285 '`TYPIterable`END`PUN<`END`TYPInteger`END`PUN>`END`PLN `END`' +286 'PUN{`END' +287 '`#9`PLN `END' +288 '`COM/** the next and previous members of the series. *\/`END' +289 '' +290 '`#0`PLN `END`KWDprivate`END`PLN `END`KWDint`END`PLN a `END`PUN=`END' +291 '`PLN `END`LIT1`END`PUN,`END`PLN b `END`PUN=`END`PLN `END`LIT1`END' +292 '`PUN;`END' +293 '`#1`PLN `END' +294 '`#2`PLN `END`LIT@Override`END' +295 '`#3`PLN `END`KWDpublic`END`PLN `END`TYPIterator`END`PUN<`END' +296 '`TYPInteger`END`PUN>`END`PLN iterator`END`PUN()`END`PLN `END' +297 '`PUN{`END' +298 '`#4`PLN `END`KWDreturn`END`PLN `END`KWDnew`END`PLN `END' +299 '`TYPIterator`END`PUN<`END`TYPInteger`END`PUN>()`END`PLN `END' +300 '`PUN{`END' +301 '`#5`PLN `END`COM/** the series is infinite. *\/`END' +302 '' +303 '`#6`PLN `END`KWDpublic`END`PLN `END`KWDboolean`END' +304 '`PLN hasNext`END`PUN()`END`PLN `END`PUN{`END`PLN `END' +305 '`KWDreturn`END`PLN `END`KWDtrue`END`PUN;`END`PLN `END`PUN}`END' +306 '' +307 '`#7`PLN `END`KWDpublic`END`PLN `END`TYPInteger`END' +308 '`PLN next`END`PUN()`END`PLN `END`PUN{`END' +309 '`#8`PLN `END`KWDint`END`PLN tmp `END`PUN=`END' +310 '`PLN a`END`PUN;`END' +311 '`#9`PLN a `END`PUN+=`END`PLN b`END`PUN;`END' +312 '' +313 '`#0`PLN b `END`PUN=`END`PLN tmp`END`PUN;`END' +314 '' +315 '`#1`PLN `END`KWDreturn`END`PLN a`END`PUN;`END' +316 '' +317 '`#2`PLN `END`PUN}`END' +318 '`#3`PLN `END`KWDpublic`END`PLN `END`KWDvoid`END' +319 '`PLN remove`END`PUN()`END`PLN `END`PUN{`END`PLN `END`KWDthrow`END' +320 '`PLN `END`KWDnew`END`PLN `END' +321 '`TYPUnsupportedOperationException`END`PUN();`END`PLN `END' +322 '`PUN}`END' +323 '`#4`PLN `END`PUN};`END' +324 '`#5`PLN `END`PUN}`END' +325 '`#6`PLN `END' +326 '`#7`PLN `END`COM/**`END' +327 '`#8`COM * the n<sup>th</sup> element of the given ' +328 'series.`END' +329 '`#9`COM * @throws NoSuchElementException if there are less than ' +330 'n elements in the`END' +331 '`#0`COM * given Iterable\'s {@link Iterable#iterator ' +332 'iterator}.`END' +333 '`#1`COM *\/`END' +334 '`#2`PLN `END`KWDpublic`END`PLN `END`KWDstatic`END`PLN `END' +335 '`PUN<`END`PLNT`END`PUN>`END' +336 '`#3`PLN T nth`END`PUN(`END`KWDint`END`PLN n`END`PUN,`END`PLN `END' +337 '`TYPIterable`END`PUN<`END`PLNT`END`PUN>`END' +338 '`PLN iterable`END`PUN)`END`PLN `END`PUN{`END' +339 '`#4`PLN `END`TYPIterator`END`PUN<?`END`PLN `END' +340 '`KWDextends`END`PLN T`END`PUN>`END`PLN in `END`PUN=`END' +341 '`PLN iterable`END`PUN.`END`PLNiterator`END`PUN();`END' +342 '`#5`PLN `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END' +343 '`PUN>`END`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END' +344 '`#6`PLN in`END`PUN.`END`PLNnext`END`PUN();`END' +345 '`#7`PLN `END`PUN}`END' +346 '`#8`PLN `END`KWDreturn`END`PLN in`END`PUN.`END`PLNnext`END' +347 '`PUN();`END' +348 '`#9`PLN `END`PUN}`END' +349 '`#0`PLN `END' +350 '`#1`PLN `END`KWDpublic`END`PLN `END`KWDstatic`END`PLN `END`KWDvoid`END' +351 '`PLN main`END`PUN(`END`TYPString`END`PUN[]`END`PLN args`END' +352 '`PUN)`END`PLN `END`PUN{`END' +353 '`#2`PLN `END`TYPSystem`END`PUN.`END`PLNout`END`PUN.`END' +354 '`PLNprint`END`PUN(`END`PLNnth`END`PUN(`END`LIT10`END`PUN,`END' +355 '`PLN `END`KWDnew`END`PLN `END`TYPFibonacci`END`PUN()));`END' +356 '' +357 '`#3`PLN `END`PUN}`END' +358 '`#4`PUN}`END' +359 '`#5`PLN `END' +360 '`#6`PUN#`END`PLN not a java comment`END' +361 '`#7`PUN#`END`PLN not keywords`END`PUN:`END' +362 '`PLN static_cast and namespace`END</li></ol>'363 ),364 javascript: (365 '`COM/**\n' +366 ' * nth element in the fibonacci series.\n' +367 ' * @param n >= 0\n' +368 ' * @return the nth element, >= 0.\n' +369 ' *\/`END`PLN\n' +370 '`END`KWDfunction`END`PLN fib`END`PUN(`END`PLNn`END`PUN)`END`PLN `END' +371 '`PUN{`END`PLN\n' +372 ' `END`KWDvar`END`PLN a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END' +373 '`PLN b `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +374 ' `END`KWDvar`END`PLN tmp`END`PUN;`END`PLN\n' +375 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +376 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +377 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +378 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +379 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +380 ' `END`PUN}`END`PLN\n' +381 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +382 '`END`PUN}`END`PLN\n' +383 '\n' +384 'document`END`PUN.`END`PLNwrite`END`PUN(`END`PLNfib`END`PUN(`END' +385 '`LIT10`END`PUN));`END'386 ),387 perl: (388 '`COM#!/usr/bin/perl`END`PLN\n' +389 '\n' +390 '`END`KWDuse`END`PLN strict`END`PUN;`END`PLN\n' +391 '`END`KWDuse`END`PLN integer`END`PUN;`END`PLN\n' +392 '\n' +393 '`END`COM# the nth element of the fibonacci series`END`PLN\n' +394 '`END`COM# param n - an int >= 0`END`PLN\n' +395 '`END`COM# return an int >= 0`END`PLN\n' +396 '`END`KWDsub`END`PLN fib`END`PUN(`END`PLN$`END`PUN)`END`PLN `END' +397 '`PUN{`END`PLN\n' +398 ' `END`KWDmy`END`PLN $n `END`PUN=`END`PLN shift`END`PUN,`END`PLN ' +399 '$a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END`PLN $b `END' +400 '`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +401 ' `END`PUN(`END`PLN$a`END`PUN,`END`PLN $b`END`PUN)`END' +402 '`PLN `END`PUN=`END`PLN `END`PUN(`END`PLN$a `END`PUN+`END' +403 '`PLN $b`END`PUN,`END`PLN $a`END`PUN)`END`PLN `END`KWDuntil`END' +404 '`PLN `END`PUN(--`END`PLN$n `END`PUN<`END`PLN `END`LIT0`END' +405 '`PUN);`END`PLN\n' +406 ' `END`KWDreturn`END`PLN $a`END`PUN;`END`PLN\n' +407 '`END`PUN}`END`PLN\n' +408 '\n' +409 '`END`KWDprint`END`PLN fib`END`PUN(`END`LIT10`END`PUN);`END'410 ),411 python: (412 '`COM#!/usr/bin/python2.4`END`PLN\n' +413 '\n' +414 '`END`KWDdef`END`PLN fib`END`PUN():`END`PLN\n' +415 ' `END`STR\'\'\'\n' +416 ' a generator that produces the elements of the fibonacci series' +417 '\n' +418 ' \'\'\'`END`PLN\n' +419 '\n' +420 ' a `END`PUN=`END`PLN `END`LIT1`END`PLN\n' +421 ' b `END`PUN=`END`PLN `END`LIT1`END`PLN\n' +422 ' `END`KWDwhile`END`PLN `END`KWDTrue`END`PUN:`END`PLN\n' +423 ' a`END`PUN,`END`PLN b `END`PUN=`END`PLN a `END`PUN+`END' +424 '`PLN b`END`PUN,`END`PLN a\n' +425 ' `END`KWDyield`END`PLN a\n' +426 '\n' +427 '`END`KWDdef`END`PLN nth`END`PUN(`END`PLNseries`END`PUN,`END`PLN n`END' +428 '`PUN):`END`PLN\n' +429 ' `END`STR\'\'\'\n' +430 ' returns the nth element of a series,\n' +431 ' consuming the earlier elements of the series\n' +432 ' \'\'\'`END`PLN\n' +433 '\n' +434 ' `END`KWDfor`END`PLN x `END`KWDin`END`PLN series`END`PUN:`END' +435 '`PLN\n' +436 ' n `END`PUN=`END`PLN n `END`PUN-`END`PLN `END`LIT1`END' +437 '`PLN\n' +438 ' `END`KWDif`END`PLN n `END`PUN<=`END`PLN `END' +439 '`LIT0`END`PUN:`END`PLN `END`KWDreturn`END`PLN x\n' +440 '\n' +441 '`END`KWDprint`END`PLN nth`END`PUN(`END`PLNfib`END`PUN(),`END`PLN `END' +442 '`LIT10`END`PUN)`END'443 ),444 python_lang: (445 '`COM#!/usr/bin/python2.4`END`PLN\n' +446 '\n' +447 '`END`KWDdef`END`PLN fib`END`PUN():`END`PLN\n' +448 ' `END`STR\'\'\'\n' +449 ' a generator that produces the fibonacci series\'s elements' +450 '\n' +451 ' \'\'\'`END`PLN\n' +452 '\n' +453 ' a `END`PUN=`END`PLN `END`LIT1`END`PLN\n' +454 ' b `END`PUN=`END`PLN `END`LIT1`END`PLN\n' +455 ' `END`KWDwhile`END`PLN `END`KWDTrue`END`PUN:`END`PLN\n' +456 ' a`END`PUN,`END`PLN b `END`PUN=`END`PLN a `END`PUN+`END' +457 '`PLN b`END`PUN,`END`PLN a\n' +458 ' `END`KWDyield`END`PLN a\n' +459 '\n' +460 '`END`KWDdef`END`PLN nth`END`PUN(`END`PLNseries`END`PUN,`END`PLN n`END' +461 '`PUN):`END`PLN\n' +462 ' `END`STR\'\'\'\n' +463 ' returns the nth element of a series,\n' +464 ' consuming the series\' earlier elements.\n' +465 ' \'\'\'`END`PLN\n' +466 '\n' +467 ' `END`KWDfor`END`PLN x `END`KWDin`END`PLN series`END`PUN:`END' +468 '`PLN\n' +469 ' n `END`PUN-=`END`PLN `END`LIT1`END' +470 '`PLN\n' +471 ' `END`KWDif`END`PLN n `END`PUN<=`END`PLN `END' +472 '`LIT0`END`PUN:`END`PLN `END`KWDreturn`END`PLN x\n' +473 '\n' +474 '`END`KWDprint`END`PLN nth`END`PUN(`END`PLNfib`END`PUN(),`END`PLN `END' +475 '`LIT10`END`PUN)`END`PLN\n' +476 '\n' +477 '`END`PUN/*`END`PLN `END`KWDnot`END`PLN a comment `END`KWDand`END' +478 '`PLN `END`KWDnot`END`PLN keywords`END`PUN:`END' +479 '`PLN null char true `END`PUN*\/`END'480 ),481 sql_lang: (482 '`COM/* A multi-line\n' +483 ' * comment *\/`END`PLN\n' +484 '`END`STR\'Another string /* Isn\\\'t a comment\'`END`PUN,`END`PLN\n' +485 '`END`STR"A string *\/"`END`PLN\n' +486 '`END`COM-- A line comment`END`PLN\n' +487 '`END`KWDSELECT`END`PLN `END`PUN*`END`PLN `END`KWDFROM`END' +488 '`PLN users `END`KWDWHERE`END`PLN id `END`KWDIN`END`PLN `END' +489 '`PUN(`END`LIT1`END`PUN,`END`PLN `END`LIT2.0`END`PUN,`END`PLN `END' +490 '`LIT+30e-1`END`PUN);`END`PLN\n' +491 '`END`COM-- keywords are case-insensitive.`END`PLN\n' +492 '`END`COM-- Note: user-table is a single identifier, not a pair of' +493 ' keywords`END`PLN\n' +494 '`END`KWDselect`END`PLN `END`PUN*`END`PLN `END`KWDfrom`END' +495 '`PLN user-table `END`KWDwhere`END`PLN id `END`KWDin`END`PLN `END' +496 '`PUN(`END`PLNx`END`PUN,`END`PLN y`END`PUN,`END`PLN z`END`PUN);`END'497 ),498 xml: (499 '`DEC<!DOCTYPE series PUBLIC "fibonacci numbers">`END`PLN\n' +500 '\n' +501 '`END`TAG<series.root`END`PLN `END`ATNbase`END`PUN=`END' +502 '`ATV"1"`END`PLN `END' +503 '`ATNstep`END`PUN=`END`ATV"s(n-2) + s(n-1)"`END`TAG>`END' +504 '`PLN\n' +505 ' `END`TAG<element`END`PLN `END`ATNi`END`PUN=`END' +506 '`ATV"0"`END' +507 '`TAG>`END`PLN1`END`TAG</element>`END' +508 '`PLN\n' +509 ' `END`TAG<element`END`PLN `END`ATNi`END`PUN=`END' +510 '`ATV"1"`END' +511 '`TAG>`END`PLN1`END`TAG</element>`END' +512 '`PLN\n' +513 ' `END`TAG<element`END`PLN `END`ATNi`END`PUN=`END' +514 '`ATV"2"`END' +515 '`TAG>`END`PLN2`END`TAG</element>`END' +516 '`PLN\n' +517 ' `END`TAG<element`END`PLN `END`ATNi`END`PUN=`END' +518 '`ATV"3"`END' +519 '`TAG>`END`PLN3`END`TAG</element>`END' +520 '`PLN\n' +521 ' `END`TAG<element`END`PLN `END`ATNi`END`PUN=`END' +522 '`ATV"4"`END' +523 '`TAG>`END`PLN5`END`TAG</element>`END' +524 '`PLN\n' +525 ' `END`TAG<element`END`PLN `END`ATNi`END`PUN=`END' +526 '`ATV"5"`END' +527 '`TAG>`END`PLN8`END`TAG</element>`END' +528 '`PLN\n' +529 ' ...\n' +530 '`END`TAG</series.root>`END'531 ),532 html: (533 '`TAG<html>`END`PLN\n' +534 ' `END`TAG<head>`END`PLN\n' +535 ' `END`TAG<title>`END`PLNFibonacci number`END' +536 '`TAG</title>`END`PLN\n' +537 ' `END`TAG<style>`END`COM<!--`END' +538 '`PLN BODY `END`PUN{`END`PLN `END`KWDtext-decoration`END`PUN:`END' +539 '`PLN blink `END`PUN}`END`PLN `END`COM-->`END`TAG</' +540 'style>`END`PLN\n' +541 ' `END`TAG<script`END`PLN `END`ATNsrc`END`PUN=`END' +542 '`ATV"foo.js"`END`TAG></script>`END`PLN\n' +543 ' `END`TAG<script`END`PLN `END`ATNsrc`END`PUN=`END' +544 '`ATV"bar.js"`END`TAG></script>`END`PLN\n' +545 ' `END`TAG</head>`END`PLN\n' +546 ' `END`TAG<body>`END`PLN\n' +547 ' `END`TAG<noscript>`END`PLN\n' +548 ' `END`TAG<dl>`END`PLN\n' +549 ' `END`TAG<dt>`END' +550 '`PLNFibonacci numbers`END`TAG</dt>`END' +551 '`PLN\n' +552 ' `END`TAG<dd>`END`PLN1`END' +553 '`TAG</dd>`END`PLN\n' +554 ' `END`TAG<dd>`END`PLN1`END' +555 '`TAG</dd>`END`PLN\n' +556 ' `END`TAG<dd>`END`PLN2`END' +557 '`TAG</dd>`END`PLN\n' +558 ' `END`TAG<dd>`END`PLN3`END' +559 '`TAG</dd>`END`PLN\n' +560 ' `END`TAG<dd>`END`PLN5`END' +561 '`TAG</dd>`END`PLN\n' +562 ' `END`TAG<dd>`END`PLN8`END' +563 '`TAG</dd>`END`PLN\n' +564 ' &hellip;\n' +565 ' `END`TAG</dl>`END`PLN\n' +566 ' `END`TAG</noscript>`END`PLN\n' +567 '\n' +568 ' `END`TAG<script`END`PLN `END`ATNtype`END`PUN=`END' +569 '`ATV"text/javascript"`END`TAG>`END`PUN<!--`END`PLN\n' +570 '`END`KWDfunction`END`PLN fib`END`PUN(`END`PLNn`END`PUN)`END`PLN `END' +571 '`PUN{`END`PLN\n' +572 ' `END`KWDvar`END`PLN a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END' +573 '`PLN b `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +574 ' `END`KWDvar`END`PLN tmp`END`PUN;`END`PLN\n' +575 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +576 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +577 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +578 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +579 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +580 ' `END`PUN}`END`PLN\n' +581 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +582 '`END`PUN}`END`PLN\n' +583 '\n' +584 'document`END`PUN.`END`PLNwriteln`END`PUN(`END`PLNfib`END`PUN(`END' +585 '`LIT10`END`PUN));`END`PLN\n' +586 '`END`COM// -->`END`PLN\n' +587 ' `END`TAG</script>`END`PLN\n' +588 ' `END`TAG</body>`END`PLN\n' +589 '`END`TAG</html>`END'590 ),591 html_lang: (592 '`PLNFibonacci Numbers\n' +593 '\n' +594 '`END`TAG<noscript>`END`PLN\n' +595 ' `END`TAG<dl`END`PLN `END`ATNstyle`END`PUN=`END' +596 '`ATV"`END`KWDlist-style`END`PUN:`END`PLN disc`END`ATV"`END' +597 '`TAG>`END`PLN\n' +598 ' `END`TAG<dt>`END' +599 '`PLNFibonacci numbers`END`TAG</dt>`END`PLN\n' +600 ' `END`TAG<dd>`END`PLN1`END`TAG</dd>`END' +601 '`PLN\n' +602 ' `END`TAG<dd>`END`PLN1`END`TAG</dd>`END' +603 '`PLN\n' +604 ' `END`TAG<dd>`END`PLN2`END`TAG</dd>`END' +605 '`PLN\n' +606 ' `END`TAG<dd>`END`PLN3`END`TAG</dd>`END' +607 '`PLN\n' +608 ' `END`TAG<dd>`END`PLN5`END`TAG</dd>`END' +609 '`PLN\n' +610 ' `END`TAG<dd>`END`PLN8`END`TAG</dd>`END' +611 '`PLN\n' +612 ' &hellip;\n' +613 ' `END`TAG</dl>`END`PLN\n' +614 '`END`TAG</noscript>`END`PLN\n' +615 '\n' +616 '`END`TAG<script`END`PLN `END`ATNtype`END`PUN=`END' +617 '`ATV"text/javascript"`END`TAG>`END`PUN<!--`END`PLN\n' +618 '`END`KWDfunction`END`PLN fib`END`PUN(`END`PLNn`END`PUN)`END`PLN `END' +619 '`PUN{`END`PLN\n' +620 ' `END`KWDvar`END`PLN a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END' +621 '`PLN b `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +622 ' `END`KWDvar`END`PLN tmp`END`PUN;`END`PLN\n' +623 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +624 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +625 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +626 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +627 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +628 ' `END`PUN}`END`PLN\n' +629 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +630 '`END`PUN}`END`PLN\n' +631 '\n' +632 'document`END`PUN.`END`PLNwriteln`END`PUN(`END`PLNfib`END`PUN(`END' +633 '`LIT10`END`PUN));`END`PLN\n' +634 '`END`COM// -->`END`PLN\n' +635 '`END`TAG</script>`END'636 ),637 html_xmp: (638 '`TAG<html>`END`PLN\n' +639 ' `END`TAG<head>`END`PLN\n' +640 ' `END`TAG<title>`END`PLNFibonacci number`END' +641 '`TAG</title>`END`PLN\n' +642 ' `END`TAG</head>`END`PLN\n' +643 ' `END`TAG<body>`END`PLN\n' +644 ' `END`TAG<noscript>`END`PLN\n' +645 ' `END`TAG<dl>`END`PLN\n' +646 ' `END`TAG<dt>`END' +647 '`PLNFibonacci numbers`END`TAG</dt>`END`PLN\n' +648 ' `END`TAG<dd>`END`PLN1`END' +649 '`TAG</dd>`END`PLN\n' +650 ' `END`TAG<dd>`END`PLN1`END' +651 '`TAG</dd>`END`PLN\n' +652 ' `END`TAG<dd>`END`PLN2`END' +653 '`TAG</dd>`END`PLN\n' +654 ' `END`TAG<dd>`END`PLN3`END' +655 '`TAG</dd>`END`PLN\n' +656 ' `END`TAG<dd>`END`PLN5`END' +657 '`TAG</dd>`END`PLN\n' +658 ' `END`TAG<dd>`END`PLN8`END' +659 '`TAG</dd>`END`PLN\n' +660 ' &hellip;\n' +661 ' `END`TAG</dl>`END`PLN\n' +662 ' `END`TAG</noscript>`END`PLN\n' +663 '\n' +664 ' `END`TAG<script`END`PLN `END`ATNtype`END`PUN=`END' +665 '`ATV"text/javascript"`END`TAG>`END`PUN<!--`END`PLN\n' +666 '`END`KWDfunction`END`PLN fib`END`PUN(`END`PLNn`END`PUN)`END`PLN `END' +667 '`PUN{`END`PLN\n' +668 ' `END`KWDvar`END`PLN a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END' +669 '`PLN b `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +670 ' `END`KWDvar`END`PLN tmp`END`PUN;`END`PLN\n' +671 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +672 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +673 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +674 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +675 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +676 ' `END`PUN}`END`PLN\n' +677 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +678 '`END`PUN}`END`PLN\n' +679 '\n' +680 'document`END`PUN.`END`PLNwriteln`END`PUN(`END`PLNfib`END`PUN(`END' +681 '`LIT10`END`PUN));`END`PLN\n' +682 '`END`COM// -->`END`PLN\n' +683 ' `END`TAG</script>`END`PLN\n' +684 ' `END`TAG</body>`END`PLN\n' +685 '`END`TAG</html>`END'686 ),687 xhtml: (688 '`TAG<xhtml>`END`PLN\n' +689 ' `END`TAG<head>`END`PLN\n' +690 ' `END`TAG<title>`END' +691 '`PLNFibonacci number`END`TAG</title>`END' +692 '`PLN\n' +693 ' `END`TAG</head>`END`PLN\n' +694 ' `END`TAG<body`END`PLN `END`ATNonload`END`PUN=`END' +695 '`ATV"`END`PLNalert`END`PUN(`END`PLNfib`END`PUN(`END`LIT10`END' +696 '`PUN))`END`ATV"`END`TAG>`END`PLN\n' +697 ' `END`TAG<script`END`PLN `END`ATNtype`END' +698 '`PUN=`END`ATV"text/javascript"`END`TAG>`END' +699 '`PUN<![`END`PLNCDATA`END`PUN[`END`PLN\n' +700 '`END`KWDfunction`END`PLN fib`END`PUN(`END`PLNn`END`PUN)`END`PLN `END' +701 '`PUN{`END`PLN\n' +702 ' `END`KWDvar`END`PLN a `END`PUN=`END`PLN `END`LIT1`END`PUN,`END' +703 '`PLN b `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +704 ' `END`KWDvar`END`PLN tmp`END`PUN;`END`PLN\n' +705 ' `END`KWDwhile`END`PLN `END`PUN(--`END`PLNn `END`PUN>=`END' +706 '`PLN `END`LIT0`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +707 ' tmp `END`PUN=`END`PLN a`END`PUN;`END`PLN\n' +708 ' a `END`PUN+=`END`PLN b`END`PUN;`END`PLN\n' +709 ' b `END`PUN=`END`PLN tmp`END`PUN;`END`PLN\n' +710 ' `END`PUN}`END`PLN\n' +711 ' `END`KWDreturn`END`PLN a`END`PUN;`END`PLN\n' +712 '`END`PUN}`END`PLN\n' +713 '`END`PUN]]>`END`PLN\n' +714 ' `END`TAG</script>`END`PLN\n' +715 ' `END`TAG</body>`END`PLN\n' +716 '`END`TAG</xhtml>`END'717 ),718 php: (719 '`TAG<html>`END`PLN\n' +720 ' `END`TAG<head>`END`PLN\n' +721 ' `END`TAG<title>`END`PUN<?=`END' +722 '`PLN `END' +723 '`STR\'Fibonacci numbers\'`END`PLN `END' +724 '`PUN?>`END`TAG</title>`END`PLN\n' +725 '\n' +726 ' `END`PUN<?`END`PLNphp\n' +727 ' `END`COM// PHP has a plethora of comment types' +728 '`END`PLN\n' +729 ' `END`COM\/* What is a\n' +730 ' "plethora"? *\/`END`PLN\n' +731 ' `END`KWDfunction`END`PLN fib`END`PUN(`END' +732 '`PLN$n`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +733 ' `END`COM# I don\'t know.`END`PLN\n' +734 ' $a `END`PUN=`END`PLN `END`LIT1`END' +735 '`PUN;`END`PLN\n' +736 ' $b `END`PUN=`END`PLN `END`LIT1`END' +737 '`PUN;`END`PLN\n' +738 ' `END`KWDwhile`END`PLN `END`PUN(--`END' +739 '`PLN$n `END`PUN>=`END`PLN `END`LIT0`END`PUN)`END`PLN `END' +740 '`PUN{`END`PLN\n' +741 ' echo `END`STR"$a\\n"`END`PUN;`END' +742 '`PLN\n' +743 ' $tmp `END`PUN=`END`PLN $a`END' +744 '`PUN;`END`PLN\n' +745 ' $a `END`PUN+=`END`PLN $b`END' +746 '`PUN;`END`PLN\n' +747 ' $b `END`PUN=`END`PLN $tmp`END' +748 '`PUN;`END`PLN\n' +749 ' `END`PUN}`END`PLN\n' +750 ' `END`PUN}`END`PLN\n' +751 ' `END`PUN?>`END`PLN\n' +752 ' `END`TAG</head>`END`PLN\n' +753 ' `END`TAG<body>`END`PLN\n' +754 ' `END`PUN<?=`END`PLN fib`END' +755 '`PUN(`END`LIT10`END`PUN)`END`PLN `END`PUN?>`END`PLN\n' +756 ' `END`TAG</body>`END`PLN\n' +757 '`END`TAG</html>`END'758 ),759 xsl: (760 '`COM<!-- Test elements and attributes with namespaces -->' +761 '`END`PLN\n' +762 '\n' +763 '`END`TAG<xsl:stylesheet`END`PLN `END`ATNxml:lang`END' +764 '`PUN=`END`ATV"en"`END`TAG>`END`PLN\n' +765 ' `END`TAG<xsl:template`END' +766 '`PLN `END`ATNmatch`END`PUN=`END`ATV"."`END' +767 '`TAG>`END`PLN\n' +768 ' `END`TAG<xsl:text>`END' +769 '`PLNHello World`END' +770 '`TAG</xsl:text>`END`PLN\n' +771 ' `END`TAG</xsl:template>`END`PLN\n' +772 '`END`TAG</xsl:stylesheet>`END'773 ),774 whitespace: '',775 misc1: (776 '`COM// ends with line comment token`END`PLN\n' +777 '`END`COM//`END'778 ),779 js_script: (780 '`TAG<script`END`PLN `END' +781 '`ATNtype`END`PUN=`END`ATV"text/javascript"`END' +782 '`TAG>`END`PLN\n' +783 ' var savedTarget=null' +784 '; ' +785 ' // The target ' +786 'layer (effectively vidPane)\n' +787 ' var orgCursor=null' +788 '; ' +789 ' // The ' +790 'original mouse style so we can restore it\n' +791 ' var dragOK=false' +792 '; ' +793 ' ' +794 '// True if we\'re allowed to move the element under mouse' +795 '\n' +796 ' var dragXoffset=0' +797 '; ' +798 ' ' +799 '// How much we\'ve moved the element on the horozontal' +800 '\n' +801 ' var dragYoffset=0' +802 '; ' +803 ' ' +804 '// How much we\'ve moved the element on the verticle' +805 '\n' +806 ' vidPaneID = document.' +807 'getElementById(\'vidPane\');' +808 ' // Our movable layer\n' +809 ' vidPaneID.style.top' +810 '=\'75px\'; ' +811 ' // ' +812 'Starting location horozontal\n' +813 ' vidPaneID.style.left' +814 '=\'75px\'; ' +815 ' // ' +816 'Starting location verticle\n' +817 '`END`TAG<script>`END'818 ),819 issue8: (820 '<b>`PLNone`END</b>`PLN\t`END<b>`TYPTwo`END</b>`PLN' +821 '\t`END<b>`PLNthree`END</b>`PLN\t`END`TYPFour' +822 '`END`PLN\t`END<b>`PLNfive`END</b>`PLN\t' +823 '`END`PUN|`END`PLN\n' +824 '`END`TYPSix`END`PLN\t`END<b>`PLNseven`END</b>`PLN\t' +825 '`END`TYPEight`END`PLN\tnine\t`END`TYPTen`END' +826 '`PLN\t`END`PUN|`END`PLN\n' +827 '`END<b>`PLNeleven`END</b>`PLN\t`END`TYPTwelve`END`PLN\t`END' +828 '<b>`PLNthirteen`END</b>`PLN\t`END' +829 '`TYPFourteen`END`PLN\tfifteen\t`END`' +830 'PUN|`END'831 ),832 js_regexp: (833 '`STR/foo/`END`PUN;`END`PLN `END`COM// a slash starting a line ' +834 'treated as a regexp beginning`END`PLN\n' +835 '`END`STR"foo"`END`PUN.`END`PLNmatch`END`PUN(`END`STR/fo+$/`END' +836 '`PUN);`END`PLN\n' +837 '`END`COM// this line comment not treated as a regular expressions`END' +838 '`PLN\n' +839 '`END`STR"foo /bar/"`END`PUN.`END`PLNtest`END`PUN(`END`STR/"baz"/`END' +840 '`PUN);`END`PLN `END`COM// test string and regexp boundaries' +841 '`END`PLN\n' +842 '`END`KWDvar`END`PLN division `END`PUN=`END`PLN `END' +843 '`STR/\\b\\d+\\/\\d+/`END`PLNg`END`PUN;`END`PLN `END' +844 '`COM// test char sets and escaping of specials`END`PLN\n' +845 '`END`KWDvar`END`PLN allSpecials `END`PUN=`END`PLN `END' +846 '`STR/([^\\(\\)\\[\\]\\{\\}\\-\\?\\+\\*\\.\\^\\$\\/]+)\\\\/`END' +847 '`PUN;`END`PLN\n' +848 '`END`KWDvar`END`PLN slashInCharset `END`PUN=`END`PLN `END' +849 '`STR/[^/]/`END`PLNg`END`PUN,`END`PLN notCloseSq `END`PUN=`END' +850 '`PLN `END`STR/[^\\]]/`END`PUN;`END`PLN\n' +851 '\n' +852 '`END`COM// test that slash used in numeric context treated as an ' +853 'operator`END`PLN\n' +854 '`END`LIT1`END`PLN `END`PUN/`END`PLN `END`LIT2`END`PUN;`END`PLN\n' +855 '`END`LIT1.`END`PLN `END`PUN/`END`PLN x`END`PUN;`END`PLN\n' +856 'x `END`PUN/`END`PLN y`END`PUN;`END`PLN\n' +857 '`END`PUN(`END`PLNx`END`PUN)`END`PLN `END`PUN/`END`PLN y`END`PUN;`END' +858 '`PLN\n' +859 '`END`LIT1`END`PLN `END`COM/* foo *\/`END`PLN `END`PUN/`END`PLN `END' +860 '`LIT2`END`PUN;`END`PLN\n' +861 '`END`LIT1`END`PLN `END`COM/* foo *\/`END`PUN/`END`PLN `END`LIT2`END' +862 '`PUN;`END`PLN\n' +863 '`END`LIT1`END`PUN/`END`LIT2`END`PUN;`END`PLN\n' +864 '`END`LIT1.`END`PUN/`END`PLNx`END`PUN;`END`PLN\n' +865 'x`END`PUN/`END`PLNy`END`PUN;`END`PLN\n' +866 '`END`PUN(`END`PLNx`END`PUN)/`END`PLNy`END`PUN;`END`PLN\n' +867 '\n' +868 '`END`COM// test split over two lines. line comment should not ' +869 'fool it`END`PLN\n' +870 '`END`LIT1`END`COM//`END`PLN\n' +871 '`END`PUN/`END`LIT2`END`PUN;`END`PLN\n' +872 '\n' +873 'x`END`PUN++/`END`PLNy`END`PUN;`END`PLN\n' +874 'x`END`PUN--/`END`PLNy`END`PUN;`END`PLN\n' +875 'x`END`PUN[`END`PLNy`END`PUN]`END`PLN `END`PUN/`END`PLN z`END`PUN;`END' +876 '`PLN\n' +877 'f`END`PUN()`END`PLN `END`PUN/`END`PLN n`END`PUN;`END`PLN\n' +878 '\n' +879 '`END`COM// test that slash after non postfix operator is start of ' +880 'regexp`END`PLN\n' +881 'log`END`PUN(`END`STR\'matches = \'`END`PLN `END`PUN+`END`PLN `END' +882 '`STR/foo/`END`PUN.`END`PLNtest`END`PUN(`END`PLNfoo`END`PUN));`END' +883 '`PLN\n' +884 '\n' +885 '`END`COM// test keyword preceders`END`PLN\n' +886 '`END`KWDreturn`END`PLN `END`STR/a regexp/`END`PUN;`END`PLN\n' +887 'division `END`PUN=`END`PLN notreturn `END`PUN/`END`PLN not_a_regexp ' +888 '`END`PUN/`END`PLN `END`LIT2`END`PUN;`END`PLN `END`COM// ' +889 'keyword suffix does not match`END`PLN\n' +890 '\n' +891 '`END`COM// & not used as prefix operator in javascript but this ' +892 'should still work`END`PLN\n' +893 '`END`PUN&`END`STR/foo/`END`PUN;`END`PLN\n' +894 '\n' +895 '`END`KWDextends`END`PLN `END`PUN=`END`PLN `END`STR/extends/`END' +896 '`PUN;`END'897 ),898 js_regexp_lang: (899 '`STR/foo/`END`PUN;`END`PLN `END`COM// a slash starting a line ' +900 'treated as a regexp beginning`END`PLN\n' +901 '`END`STR"foo"`END`PUN.`END`PLNmatch`END`PUN(`END`STR/fo+$/`END' +902 '`PUN);`END`PLN\n' +903 '`END`COM// this line comment not treated as a regular expressions`END' +904 '`PLN\n' +905 '`END`STR"foo /bar/"`END`PUN.`END`PLNtest`END`PUN(`END`STR/"baz"/`END' +906 '`PUN);`END`PLN `END`COM// test string and regexp boundaries' +907 '`END`PLN\n' +908 '`END`KWDvar`END`PLN division `END`PUN=`END`PLN `END' +909 '`STR/\\b\\d+\\/\\d+/`END`PLNg`END`PUN;`END`PLN `END' +910 '`COM// test char sets and escaping of specials`END`PLN\n' +911 '`END`KWDvar`END`PLN allSpecials `END`PUN=`END`PLN `END' +912 '`STR/([^\\(\\)\\[\\]\\{\\}\\-\\?\\+\\*\\.\\^\\$\\/]+)\\\\/`END' +913 '`PUN;`END`PLN\n' +914 '`END`KWDvar`END`PLN slashInCharset `END`PUN=`END`PLN `END' +915 '`STR/[^/]/`END`PLNg`END`PUN,`END`PLN notCloseSq `END`PUN=`END' +916 '`PLN `END`STR/[^\\]]/`END`PUN;`END`PLN\n' +917 '\n' +918 '`END`COM// test that slash used in numeric context treated as an ' +919 'operator`END`PLN\n' +920 '`END`LIT1`END`PLN `END`PUN/`END`PLN `END`LIT2`END`PUN;`END`PLN\n' +921 '`END`LIT1.`END`PLN `END`PUN/`END`PLN x`END`PUN;`END`PLN\n' +922 'x `END`PUN/`END`PLN y`END`PUN;`END`PLN\n' +923 '`END`PUN(`END`PLNx`END`PUN)`END`PLN `END`PUN/`END`PLN y`END`PUN;`END' +924 '`PLN\n' +925 '`END`LIT1`END`PLN `END`COM/* foo *\/`END`PLN `END`PUN/`END`PLN `END' +926 '`LIT2`END`PUN;`END`PLN\n' +927 '`END`LIT1`END`PLN `END`COM/* foo *\/`END`PUN/`END`PLN `END`LIT2`END' +928 '`PUN;`END`PLN\n' +929 '`END`LIT1`END`PUN/`END`LIT2`END`PUN;`END`PLN\n' +930 '`END`LIT1.`END`PUN/`END`PLNx`END`PUN;`END`PLN\n' +931 'x`END`PUN/`END`PLNy`END`PUN;`END`PLN\n' +932 '`END`PUN(`END`PLNx`END`PUN)/`END`PLNy`END`PUN;`END`PLN\n' +933 '\n' +934 '`END`COM// test split over two lines. line comment should not ' +935 'fool it`END`PLN\n' +936 '`END`LIT1`END`COM//`END`PLN\n' +937 '`END`PUN/`END`LIT2`END`PUN;`END`PLN\n' +938 '\n' +939 'x`END`PUN++/`END`PLNy`END`PUN;`END`PLN\n' +940 'x`END`PUN--/`END`PLNy`END`PUN;`END`PLN\n' +941 'x`END`PUN[`END`PLNy`END`PUN]`END`PLN `END`PUN/`END`PLN z`END`PUN;`END' +942 '`PLN\n' +943 'f`END`PUN()`END`PLN `END`PUN/`END`PLN n`END`PUN;`END`PLN\n' +944 '\n' +945 '`END`COM// test that slash after non postfix operator is start of ' +946 'regexp`END`PLN\n' +947 'log`END`PUN(`END`STR\'matches = \'`END`PLN `END`PUN+`END`PLN `END' +948 '`STR/foo/`END`PUN.`END`PLNtest`END`PUN(`END`PLNfoo`END`PUN));`END' +949 '`PLN\n' +950 '\n' +951 '`END`COM// test keyword preceders`END`PLN\n' +952 '`END`KWDreturn`END`PLN `END`STR/a regexp/`END`PUN;`END`PLN\n' +953 'division `END`PUN=`END`PLN notreturn `END`PUN/`END`PLN not_a_regexp ' +954 '`END`PUN/`END`PLN `END`LIT2`END`PUN;`END`PLN `END`COM// ' +955 'keyword suffix does not match`END`PLN\n' +956 '\n' +957 '`END`COM// & not used as prefix operator in javascript but this ' +958 'should still work`END`PLN\n' +959 '`END`PUN&`END`STR/foo/`END`PUN;`END`PLN\n' +960 '\n' +961 'extends `END`PUN=`END`PLN `END`STR/extends/`END`PUN;`END'962 ),963 coffee: (964 '`KWDclass`END`PLN `END`TYPAnimal`END`PLN\n' +965 ' constructor`END`PUN:`END`PLN `END`PUN(`END`LIT@name`END`PUN)`END`PLN `END`PUN->`END`PLN\n' +966 ' move`END`PUN:`END`PLN `END`PUN(`END`PLNmeters`END`PUN,`END`PLN loc`END`PUN)`END`PLN `END`PUN->`END`PLN\n' +967 ' alert `END`LIT@name`END`PLN `END`PUN+`END`PLN `END`STR" moved "`END`PLN `END`PUN+`END`PLN meters `END`PUN+`END`PLN `END`STR"m."`END`PLN\n' +968 ' travel`END`PUN:`END`PLN `END`PUN(`END`PLNpath`END`PUN...)`END`PLN `END`PUN->`END`PLN\n' +969 ' `END`KWDfor`END`PLN place `END`KWDin`END`PLN path\n' +970 ' `END`LIT@move`END`PLN place`END`PUN.`END`PLNdistance`END`PUN,`END`PLN place`END`PUN.`END`PLNlocation\n' +971 '\n' +972 '`END`KWDclass`END`PLN `END`TYPHorse`END`PLN `END`KWDextends`END`PLN `END`TYPAnimal`END`PLN\n' +973 ' `END`COM###\n' +974 ' @param name Horse name\n' +975 ' @param jumper Jumping ability\n' +976 ' ###`END`PLN\n' +977 ' constructor`END`PUN:`END`PLN `END`PUN(`END`PLNname`END`PUN,`END`PLN jumper`END`PUN)`END`PLN `END`PUN->`END`PLN\n' +978 ' `END`KWDsuper`END`PLN name\n' +979 ' `END`LIT@capable`END`PLN `END`PUN=`END`PLN jumper\n' +980 ' step`END`PUN:`END`PLN `END`PUN->`END`PLN\n' +981 ' alert `END`STR\'\'\'\n' +982 ' Step,\n' +983 ' step...\n' +984 ' \'\'\'`END`PLN\n' +985 ' jump`END`PUN:`END`PLN `END`PUN->`END`PLN\n' +986 ' `END`LIT@capable`END`PLN\n' +987 ' move`END`PUN:`END`PLN `END`PUN(`END`PLNmeters`END`PUN,`END`PLN where`END`PUN)`END`PLN `END`PUN->`END`PLN\n' +988 ' switch where\n' +989 ' `END`KWDwhen`END`PLN `END`STR"ground"`END`PLN\n' +990 ' `END`LIT@step`END`PUN()`END`PLN\n' +991 ' `END`KWDsuper`END`PLN meters\n' +992 ' `END`KWDwhen`END`PLN `END`STR"hurdle"`END`PLN\n' +993 ' `END`KWDsuper`END`PLN meters `END`KWDif`END`PLN `END`LIT@jump`END`PUN()`END`PLN\n' +994 '\n' +995 '`END`COM# Create horse`END`PLN\n' +996 'tom `END`PUN=`END`PLN `END`KWDnew`END`PLN `END`TYPHorse`END`PLN `END`STR"Tommy"`END`PUN,`END`PLN `END`KWDyes`END`PLN\n' +997 '\n' +998 'street `END`PUN=`END`PLN\n' +999 ' location`END`PUN:`END`PLN `END`STR"ground"`END`PLN\n' +1000 ' distance`END`PUN:`END`PLN `END`LIT12`END`PLN\n' +1001 'car `END`PUN=`END`PLN\n' +1002 ' location`END`PUN:`END`PLN `END`STR"hurdle"`END`PLN\n' +1003 ' distance`END`PUN:`END`PLN `END`LIT2`END`PLN\n' +1004 '\n' +1005 '`END`COM###\n' +1006 'Tell him to travel:\n' +1007 '1. through the street\n' +1008 '2. over the car\n' +1009 '###`END`PLN\n' +1010 'tom`END`PUN.`END`PLNtravel street`END`PUN,`END`PLN car`END'1011 ),1012 issue14a: (1013 '`COM//comment`END<br>' +1014 '`KWDint`END`PLN main`END`PUN(`END`KWDint`END`PLN argc`END`PUN,`END' +1015 '`PLN `END`KWDchar`END`PLN `END`PUN**`END`PLNargv`END`PUN)`END' +1016 '`PLN\n' +1017 '`END`PUN{}`END'1018 ),1019 issue14b: (1020 '`COM<!-- There\'s an `END<acronym title="tag soup">`COMHTML`END' +1021 '</acronym>`COM comment in my comment -->`END`PLN\n' +1022 '`END`TAG<p>`END' +1023 '`PLNAnd another one inside the end tag`END' +1024 '`TAG</p`END`TAG>`END'1025 ),1026 issue20: (1027 '`TAG<html>`END`PLN\n' +1028 '\n' +1029 '`END`TAG<head>`END'1030 ),1031 issue21: (1032 '`TAG<html>`END`PLN\n' +1033 ' `END`TAG<head>`END`PLN\n' +1034 ' `END`TAG<title>`END`PLNTest`END' +1035 '`TAG</title>`END`PLN\n' +1036 ' `END`TAG</head>`END`PLN\n' +1037 '`END`TAG</html>`END'1038 ),1039 issue22: (1040 '<span class="nocode">01: `END`COM// This is a line of code`END`PLN\n' +1041 '`END<span class="nocode">02: `END`COM/* Multiline comments can\n' +1042 '`END<span class="nocode">03: `END`COM * span over and around\n' +1043 '`END<span class="nocode">04: `END`COM * line markers\n' +1044 '`END<span class="nocode annot">And can even be interrupted`END`COM\n' +1045 '`END<span class="nocode annot">by inline code annotations`END`COM\n' +1046 '`END<span class="nocode">05: `END`COM *\/`END`PLN\n' +1047 '`END<span class="nocode">06: `END`KWDclass`END`PLN `END`TYPMyClass`END' +1048 '`PLN `END`KWDextends`END`PLN `END`TYPFoo`END`PLN `END`PUN{`END' +1049 '`PLN\n' +1050 '`END<span class="nocode">07: `END`PLN `END`KWDpublic`END' +1051 '`PLN `END`KWDstatic`END`PLN `END`KWDvoid`END`PLN main`END`PUN(`END' +1052 '`TYPString`END`PUN...`END`PLN argv`END`PUN)`END`PLN `END`PUN{`END' +1053 '`PLN\n' +1054 '`END<span class="nocode">08: `END`PLN `END`TYPSystem`END' +1055 '`PUN.`END`PLNout`END`PUN.`END`PLNprint`END`PUN(`END' +1056 '`STR"Hello World"`END`PUN);`END`PLN\n' +1057 '`END<span class="nocode">09: `END`PLN `END`PUN}`END`PLN\n' +1058 '`END<span class="nocode">10: `END`PUN}`END'1059 ),1060 lua: (1061 '`PLNos`END`PUN=`END`PLNrequire`END`PUN(`END`STR"os"`END`PUN)`END`PLN\n' +1062 'math`END`PUN=`END`PLNrequire`END`PUN(`END`STR"math"`END`PUN)`END`PLN\n' +1063 '\n' +1064 '`END`COM-- Examples from the language reference`END`PLN\n' +1065 ' a `END`PUN=`END`PLN `END`STR\'alo\\n123"\'`END' +1066 '`PLN\n' +1067 ' a `END`PUN=`END`PLN `END`STR"alo\\n123\\""`END' +1068 '`PLN\n' +1069 ' a `END`PUN=`END`PLN `END' +1070 '`STR\'\\97lo\\10\\04923"\'`END`PLN\n' +1071 ' a `END`PUN=`END`PLN `END`STR[[alo\n' +1072 ' 123"]]`END`PLN\n' +1073 ' a `END`PUN=`END`PLN `END`STR[==[\n' +1074 ' alo\n' +1075 ' 123"]==]`END`PLN\n' +1076 '\n' +1077 '`END`LIT3`END`PLN `END`LIT3.0`END`PLN `END`LIT3.1416`END' +1078 '`PLN `END`LIT314.16e-2`END`PLN `END`LIT0.31416E1`END' +1079 '`PLN `END`LIT0xff`END`PLN `END`LIT0x56`END`PLN\n' +1080 '\n' +1081 '`END`COM-- Some comments that demonstrate long brackets`END`PLN\n' +1082 'double_quoted `END`PUN=`END`PLN `END`STR"Not a long bracket [=["`END' +1083 '`PLN\n' +1084 '`END`COM--[=[ quoting out\n' +1085 ' [[ foo ]]\n' +1086 ' [==[does not end comment either]==]\n' +1087 ']=]`END`PLN\n' +1088 'past_end_of_comment\n' +1089 '`END`COM--]=]`END`PLN\n' +1090 '\n' +1091 '`END`COM-- Example code courtesy Joseph Harmbruster`END`PLN\n' +1092 '`END`PUN#`END`PLN\n' +1093 '`END`KWDdo`END`PLN\n' +1094 ' `END`KWDlocal`END`PLN `END`KWDfunction`END`PLN ssgeneral`END' +1095 '`PUN(`END`PLNt`END`PUN,`END`PLN n`END`PUN,`END`PLN before`END' +1096 '`PUN)`END`PLN\n' +1097 ' `END`KWDfor`END`PLN _`END`PUN,`END`PLN h `END`KWDin`END' +1098 '`PLN ipairs`END`PUN(`END`PLNincs`END`PUN)`END`PLN `END`KWDdo`END' +1099 '`PLN\n' +1100 ' `END`KWDfor`END`PLN i `END`PUN=`END`PLN h `END' +1101 '`PUN+`END`PLN `END`LIT1`END`PUN,`END`PLN n `END`KWDdo`END`PLN\n' +1102 ' `END`KWDlocal`END`PLN v `END`PUN=`END' +1103 '`PLN t`END`PUN[`END`PLNi`END`PUN]`END`PLN\n' +1104 ' `END`KWDfor`END`PLN j `END`PUN=`END' +1105 '`PLN i `END`PUN-`END`PLN h`END`PUN,`END`PLN `END`LIT1`END`PUN,`END' +1106 '`PLN `END`PUN-`END`PLNh `END`KWDdo`END`PLN\n' +1107 ' `END`KWDlocal`END`PLN testval `END' +1108 '`PUN=`END`PLN t`END`PUN[`END`PLNj`END`PUN]`END`PLN\n' +1109 ' `END`KWDif`END`PLN `END`KWDnot`END' +1110 '`PLN before`END`PUN(`END`PLNv`END`PUN,`END`PLN testval`END' +1111 '`PUN)`END`PLN `END`KWDthen`END`PLN `END`KWDbreak`END`PLN `END' +1112 '`KWDend`END`PLN\n' +1113 ' t`END`PUN[`END`PLNi`END`PUN]`END' +1114 '`PLN `END`PUN=`END`PLN testval`END`PUN;`END`PLN i `END`PUN=`END' +1115 '`PLN j\n' +1116 ' `END`KWDend`END`PLN\n' +1117 ' t`END`PUN[`END`PLNi`END`PUN]`END`PLN `END' +1118 '`PUN=`END`PLN v\n' +1119 ' `END`KWDend`END`PLN \n' +1120 ' `END`KWDend`END`PLN\n' +1121 ' `END`KWDreturn`END`PLN t\n' +1122 ' `END`KWDend`END`PLN\n' +1123 '\n' +1124 ' `END`KWDfunction`END`PLN shellsort`END`PUN(`END`PLNt`END' +1125 '`PUN,`END`PLN before`END`PUN,`END`PLN n`END`PUN)`END`PLN\n' +1126 ' n `END`PUN=`END`PLN n `END`KWDor`END`PLN `END`PUN#`END' +1127 '`PLNt\n' +1128 ' `END`KWDif`END`PLN `END`KWDnot`END`PLN before `END' +1129 '`KWDor`END`PLN before `END`PUN==`END`PLN `END`STR"<"`END' +1130 '`PLN `END`KWDthen`END`PLN `END`KWDreturn`END`PLN ssup`END`PUN(`END' +1131 '`PLNt`END`PUN,`END`PLN n`END`PUN)`END`PLN\n' +1132 ' `END`KWDelseif`END`PLN before `END`PUN==`END`PLN `END' +1133 '`STR">"`END`PLN `END`KWDthen`END`PLN `END`KWDreturn`END' +1134 '`PLN ssdown`END`PUN(`END`PLNt`END`PUN,`END`PLN n`END`PUN)`END' +1135 '`PLN\n' +1136 ' `END`KWDelse`END`PLN `END`KWDreturn`END' +1137 '`PLN ssgeneral`END`PUN(`END`PLNt`END`PUN,`END`PLN n`END`PUN,`END' +1138 '`PLN before`END`PUN)`END`PLN\n' +1139 ' `END`KWDend`END`PLN\n' +1140 ' `END`KWDend`END`PLN\n' +1141 ' `END`KWDreturn`END`PLN shellsort\n' +1142 '`END`KWDend`END'1143 ),1144 vbs: (1145 '`KWDImports`END`PLN System\n' +1146 '\n' +1147 '`END`KWDClass`END`PLN [class]\n' +1148 ' `END`KWDShared`END`PLN `END`KWDSub`END`PLN [shared]`END' +1149 '`PUN(`END`KWDByVal`END`PLN [boolean] `END`KWDAs`END`PLN `END' +1150 '`KWDBoolean`END`PUN)`END`PLN\n' +1151 ' `END`KWDIf`END`PLN [boolean] `END' +1152 '`KWDThen`END`PLN\n' +1153 ' Console`END`PUN.`END' +1154 '`PLNWriteLine`END`PUN(`END`STR"true"`END`PUN)`END`PLN\n' +1155 ' `END`KWDElse`END`PLN\n' +1156 ' Console`END`PUN.`END' +1157 '`PLNWriteLine`END`PUN(`END`STR"false"`END`PUN)`END`PLN\n' +1158 ' `END`KWDEnd`END`PLN `END`KWDIf`END' +1159 '`PLN\n' +1160 ' `END`KWDEnd`END`PLN `END`KWDSub`END`PLN\n' +1161 '`END`KWDEnd`END`PLN `END`KWDClass`END`PLN\n' +1162 '\n' +1163 '`END`COM\' Comment`END`PLN\n' +1164 '`END`COM\u2018 Second Line comment with a smart quote _\n' +1165 ' continued line using VB6 syntax.`END`PLN\n' +1166 '`END`KWDModule`END`PLN [module]\n' +1167 ' `END`KWDSub`END`PLN Main`END`PUN()`END`PLN\n' +1168 ' [class]`END`PUN.`END`PLN[shared]`END' +1169 '`PUN(`END`LITTrue`END`PUN)`END`PLN\n' +1170 '\n' +1171 ' `END`COM\' This prints out: \".`END' +1172 '`PLN\n' +1173 ' Console`END`PUN.`END`PLNWriteLine`END' +1174 '`PUN(`END`STR""""`END`PUN)`END`PLN\n' +1175 '\n' +1176 ' `END`COM\' This prints out: a"b.`END' +1177 '`PLN\n' +1178 ' Console`END`PUN.`END`PLNWriteLine`END' +1179 '`PUN(`END`STR"a""b"`END`PUN)`END`PLN\n' +1180 '\n' +1181 ' `END`COM\' This prints out: a.`END' +1182 '`PLN\n' +1183 ' Console`END`PUN.`END`PLNWriteLine`END' +1184 '`PUN(`END`STR"a"c`END`PUN)`END`PLN\n' +1185 '\n' +1186 ' `END`COM\' This prints out: ".`END' +1187 '`PLN\n' +1188 ' Console`END`PUN.`END`PLNWriteLine`END' +1189 '`PUN(`END`STR""""c`END`PUN)`END`PLN\n' +1190 '\n' +1191 ' `END`COMREM an old-style comment`END`PLN\n' +1192 ' REMOVE`END`PUN(`END`PLNnot_a_comment`END`PUN)`END`PLN\n' +1193 ' `END`KWDEnd`END`PLN `END`KWDSub`END`PLN\n' +1194 '`END`KWDEnd`END`PLN `END`KWDModule`END`PLN\n' +1195 '\n' +1196 '`END`KWDDim`END`PLN d `END`KWDAs`END`PLN `END`KWDDate`END`PLN\n' +1197 'd `END`PUN=`END`PLN `END`LIT# 8/23/1970 3:45:39AM #`END`PLN\n' +1198 'd `END`PUN=`END`PLN `END`LIT# 8/23/1970 #`END`PLN\n' +1199 'd `END`PUN=`END`PLN `END`LIT# 3:45:39AM #`END`PLN\n' +1200 'd `END`PUN=`END`PLN `END`LIT# 3:45:39 #`END`PLN\n' +1201 'd `END`PUN=`END`PLN `END`LIT# 13:45:39 #`END`PLN\n' +1202 'd `END`PUN=`END`PLN `END`LIT# 13:45:39PM #`END`PLN\n' +1203 '\n' +1204 '`END`KWDDim`END`PLN n `END`KWDAs`END`PLN Float\n' +1205 'n `END`PUN=`END`PLN `END`PUN(`END`LIT0.0`END`PUN,`END`PLN `END' +1206 '`LIT.99F`END`PUN,`END`PLN `END`LIT1.0E-2D`END`PUN,`END`PLN `END' +1207 '`LIT1.0E+3D`END`PUN,`END`PLN `END`LIT.5E4`END`PUN,`END`PLN `END' +1208 '`LIT1E3R`END`PUN,`END`PLN `END`LIT4D`END`PUN)`END`PLN\n' +1209 '\n' +1210 '`END`KWDDim`END`PLN i `END`KWDAs`END`PLN `END`KWDInteger`END`PLN\n' +1211 'i `END`PUN=`END`PLN `END`PUN(`END`LIT0`END`PUN,`END`PLN `END' +1212 '`LIT123`END`PUN,`END`PLN `END`LIT45L`END`PUN,`END`PLN `END' +1213 '`LIT&HA0I`END`PUN,`END`PLN `END`LIT&O177S`END`PUN)`END'1214 ),1215 haskell: (1216 '`COM-- A comment`END`PLN\n' +1217 'Not`END`PUN(--`END`STR"a comment"`END`PUN)`END`PLN\n' +1218 'Also.not`END`PUN(--(`END`PLNA.comment`END`PUN))`END`PLN\n' +1219 '\n' +1220 '`END`KWDmodule`END`PLN Foo`END`PUN(`END`PLNbar`END`PUN)`END`PLN `END' +1221 '`KWDwhere`END`PLN\n' +1222 '`END`KWDimport`END`PLN Blah\n' +1223 '`END`KWDimport`END`PLN BlahBlah`END`PUN(`END`PLNblah`END`PUN)`END' +1224 '`PLN\n' +1225 '`END`KWDimport`END`PLN Monads`END`PUN(`END`PLNException`END' +1226 '`PUN(..),`END`PLN FIO`END`PUN(..),`END`PLNunFIO`END`PUN,`END' +1227 '`PLNhandle`END`PUN,`END`PLNrunFIO`END`PUN,`END`PLNfixFIO`END' +1228 '`PUN,`END`PLNfio`END`PUN,`END`PLN\n' +1229 ' write`END`PUN,`END' +1230 '`PLNwriteln`END`PUN,`END`PLNHasNext`END`PUN(..),`END' +1231 '`PLNHasOutput`END`PUN(..))`END`PLN\n' +1232 '\n' +1233 '`END`COM{- nested comments\n' +1234 ' - don\'t work {-yet-}`END`PLN `END`PUN-}`END`PLN\n' +1235 '`END`KWDinstance`END`PLN Thingy Foo `END`KWDwhere`END`PLN\n' +1236 ' a `END`PUN=`END`PLN b\n' +1237 '\n' +1238 '`END`KWDdata`END`PLN Foo `END`PUN::`END`PLN `END`PUN(*`END`PLN `END' +1239 '`PUN->`END`PLN `END`PUN*`END`PLN `END`PUN->`END`PLN `END' +1240 '`PUN*)`END`PLN `END`PUN->`END`PLN `END`PUN*`END`PLN `END' +1241 '`PUN>`END`PLN `END`PUN*`END`PLN `END`PUN->`END`PLN `END' +1242 '`PUN*`END`PLN `END`KWDwhere`END`PLN\n' +1243 ' Nil `END`PUN::`END`PLN Foo a b c\n' +1244 ' Cons `END`PUN::`END`PLN a b c `END`PUN->`END' +1245 '`PLN Foo abc `END`PUN->`END`PLN Foo a b c\n' +1246 '\n' +1247 'str `END`PUN=`END`PLN `END`STR"Foo\\\\Bar"`END`PLN\n' +1248 'char `END`PUN=`END`PLN `END`STR\'x\'`END`PLN\n' +1249 'Not.A.Char `END`PUN=`END`PLN `END`STR\'t`END`PLNoo long\' `END' +1250 '`COM-- Don\'t barf. Show that \'t is a lexical error.`END' +1251 '`PLN\n' +1252 '\n' +1253 '`END`PUN(`END`PLNident`END`PUN,`END`PLN ident\'`END`PUN,`END' +1254 '`PLN Fo\'\'o.b\'ar`END`PUN)`END`PLN\n' +1255 '\n' +1256 '`END`PUN(`END`LIT0`END`PUN,`END`PLN `END`LIT12`END`PUN,`END`PLN `END' +1257 '`LIT0x45`END`PUN,`END`PLN `END`LIT0xA7`END`PUN,`END`PLN `END' +1258 '`LIT0o177`END`PUN,`END`PLN `END`LIT0O377`END`PUN,`END`PLN `END' +1259 '`LIT0.1`END`PUN,`END`PLN `END`LIT1.0`END`PUN,`END`PLN `END' +1260 '`LIT1e3`END`PUN,`END`PLN `END`LIT0.5E-3`END`PUN,`END`PLN `END' +1261 '`LIT1.0E+45`END`PUN)`END'1262 ),1263 ml: (1264 '`COM(*\n' +1265 ' * Print the 10th fibonacci number\n' +1266 ' *)`END`PLN\n' +1267 '\n' +1268 '`END`COM//// A line comment`END`PLN\n' +1269 '`END`STR"A string"`END`PUN;;`END`PLN\n' +1270 '`END`PUN(`END`LIT0`END`PUN,`END`PLN `END`LIT125`END`PUN,`END' +1271 '`PLN `END`LIT0xa0`END`PUN,`END`PLN `END`LIT-1.0`END`PUN,`END' +1272 '`PLN `END`LIT1e6`END`PUN,`END`PLN `END`LIT1.2e-3`END`PUN);;`END' +1273 '`PLN `END`COM// number literals`END`PLN\n' +1274 '\n' +1275 '`END`COM#if fibby`END`PLN\n' +1276 ' `END`KWDlet`END`PLN\n' +1277 ' `END`KWDrec`END`PLN fib `END`PUN=`END`PLN `END' +1278 '`KWDfunction`END`PLN `END`PUN(`END`LIT0`END`PUN,`END`PLN a`END' +1279 '`PUN,`END`PLN _`END`PUN)`END`PLN `END`PUN->`END`PLN a\n' +1280 ' ' +1281 ' `END`PUN|`END`PLN `END`PUN(`END`PLNn`END`PUN,`END`PLN a`END' +1282 '`PUN,`END`PLN b`END`PUN)`END`PLN `END`PUN->`END`PLN fib`END' +1283 '`PUN(`END`PLNn `END`PUN-`END`PLN `END`LIT1`END`PUN,`END' +1284 '`PLN a `END`PUN+`END`PLN b`END`PUN,`END`PLN a`END`PUN)`END' +1285 '`PLN\n' +1286 ' `END`KWDin`END`PLN\n' +1287 ' print_int`END`PUN(`END`PLNfib`END`PUN(`END`LIT10`END' +1288 '`PUN,`END`PLN `END`LIT1`END`PUN,`END`PLN `END`LIT1`END' +1289 '`PUN));;`END`PLN\n' +1290 '`END`COM#endif`END`PLN\n' +1291 '\n' +1292 '`END`KWDlet`END`PLN zed `END`PUN=`END`PLN `END`STR\'z\'`END`PLN\n' +1293 '\n' +1294 '`END`KWDlet`END`PLN f\' x\' `END`PUN=`END`PLN x\' `END`PUN+`END`PLN `END`LIT1`END'1295 ),1296 lisp: (1297 '`COM; -*- mode: lisp -*-`END`PLN\n' +1298 '\n' +1299 '`END`OPN(`END`KWDdefun`END`PLN back-six-lines `END`OPN(`END`CLO)`END' +1300 '`PLN `END`OPN(`END`PLNinteractive`END`CLO)`END`PLN `END`OPN(`END' +1301 '`PLNforward-line `END`LIT-6`END`CLO))`END`PLN\n' +1302 '`END`OPN(`END`KWDdefun`END`PLN forward-six-lines `END`OPN(`END' +1303 '`CLO)`END`PLN `END`OPN(`END`PLNinteractive`END`CLO)`END`PLN `END' +1304 '`OPN(`END`PLNforward-line `END`LIT6`END`CLO))`END`PLN\n' +1305 '\n' +1306 '`END`OPN(`END`PLNglobal-set-key `END`STR"\\M-l"`END`PLN `END' +1307 '`LIT\'goto-line`END`CLO)`END`PLN\n' +1308 '`END`OPN(`END`PLNglobal-set-key `END`STR"\\C-z"`END`PLN `END' +1309 '`LIT\'advertised-undo`END`CLO)`END`PLN\n' +1310 '`END`OPN(`END`PLNglobal-set-key `END`PUN[`END`PLNC-insert`END' +1311 '`PUN]`END`PLN `END`LIT\'clipboard-kill-ring-save`END`CLO)`END' +1312 '`PLN\n' +1313 '`END`OPN(`END`PLNglobal-set-key `END`PUN[`END`PLNS-insert`END`PUN]`END' +1314 '`PLN `END`LIT\'clipboard-yank`END`CLO)`END`PLN\n' +1315 '`END`OPN(`END`PLNglobal-set-key `END`PUN[`END`PLNC-up`END`PUN]`END' +1316 '`PLN `END`LIT\'back-six-lines`END`CLO)`END`PLN\n' +1317 '`END`OPN(`END`PLNglobal-set-key `END`PUN[`END`PLNC-down`END`PUN]`END' +1318 '`PLN `END`LIT\'forward-six-lines`END`CLO)`END`PLN\n' +1319 '\n' +1320 '`END`OPN(`END`KWDsetq`END`PLN visible-bell `END`KWDt`END`CLO)`END' +1321 '`PLN\n' +1322 '`END`OPN(`END`KWDsetq`END`PLN user-mail-address `END' +1323 '`STR"foo@bar.com"`END`CLO)`END`PLN\n' +1324 '`END`OPN(`END`KWDsetq`END`PLN default-major-mode `END' +1325 '`LIT\'text-mode`END`CLO)`END`PLN\n' +1326 '\n' +1327 '`END`OPN(`END`PLNsetenv `END`STR"TERM"`END`PLN `END' +1328 '`STR"emacs"`END`CLO)`END`PLN\n' +1329 '`END`OPN(`END`PLNc-set-offset `END`LIT\'case-label`END`PLN `END' +1330 '`LIT2`END`CLO)`END`PLN\n' +1331 '`END`OPN(`END`KWDsetq`END`PLN c-basic-offset `END`LIT2`END`CLO)`END' +1332 '`PLN\n' +1333 '`END`OPN(`END`KWDsetq`END`PLN perl-indent-level `END`LIT0x2`END`CLO)`END' +1334 '`PLN\n' +1335 '`END`OPN(`END`KWDsetq`END`PLN delete-key-deletes-forward `END`KWDt`END' +1336 '`CLO)`END`PLN\n' +1337 '`END`OPN(`END`KWDsetq`END`PLN indent-tabs-mode `END`KWDnil`END' +1338 '`CLO)`END`PLN\n' +1339 '\n' +1340 '`END`COM;; Text mode`END`PLN\n' +1341 '`END`OPN(`END`PLNadd-hook `END`LIT\'text-mode-hook`END`PLN \n' +1342 ' `END`LIT\'`END`OPN(`END`KWDlambda`END`PLN `END`OPN(`END' +1343 '`CLO)`END`PLN\n' +1344 ' `END`OPN(`END`PLNturn-on-auto-fill`END`CLO)`END' +1345 '`PLN\n' +1346 ' `END`CLO)`END`PLN\n' +1347 '`END`CLO)`END`PLN\n' +1348 '\n' +1349 '`END`COM;; Fundamental mode`END`PLN\n' +1350 '`END`OPN(`END`PLNadd-hook `END`LIT\'fundamental-mode-hook`END' +1351 '`PLN \n' +1352 ' `END`LIT\'`END`OPN(`END`KWDlambda`END`PLN `END`OPN(`END' +1353 '`CLO)`END`PLN\n' +1354 ' `END`OPN(`END`PLNturn-on-auto-fill`END' +1355 '`CLO)`END`PLN\n' +1356 ' `END`CLO)`END`PLN\n' +1357 '`END`CLO)`END`PLN\n' +1358 '\n' +1359 '`END`COM;; Define and cond are keywords in scheme`END`PLN\n' +1360 '`END`OPN(`END`KWDdefine`END`PLN `END`OPN(`END`PLNsqt x`END`CLO)`END' +1361 '`PLN `END`OPN(`END`PLNsqrt-iter `END`LIT1.0`END`PLN `END' +1362 '`LIT2.0`END`PLN x`END`CLO))`END'1363 ),1364 issue45: (1365 '`KWDthrow`END`PLN `END`KWDnew`END`PLN `END`TYPRuntimeException`END' +1366 '`PUN(`END`STR"Element ["`END`PLN `END`PUN+`END`PLN element`END' +1367 '`PUN.`END`PLNgetName`END`PUN()`END`PLN `END`PUN+`END`PLN \n' +1368 ' `END`STR"] missing attribute."`END`PUN);`END`PLN\n' +1369 'variable`END`PUN++;`END'1370 ),1371 proto: (1372 '`KWDmessage`END`PLN `END`TYPSearchRequest`END`PLN `END`PUN{`END' +1373 '`PLN\n' +1374 ' `END`KWDrequired`END`PLN `END`TYPstring`END`PLN query `END' +1375 '`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +1376 ' `END`KWDoptional`END`PLN `END`TYPint32`END`PLN page_number `END' +1377 '`PUN=`END`PLN `END`LIT2`END`PUN;`END`PLN\n' +1378 ' `END`KWDoptional`END`PLN `END`TYPint32`END' +1379 '`PLN result_per_page `END`PUN=`END`PLN `END`LIT3`END`PLN `END' +1380 '`PUN[`END`KWDdefault`END`PLN `END`PUN=`END`PLN `END`LIT10`END' +1381 '`PUN];`END`PLN\n' +1382 ' `END`KWDenum`END`PLN `END`TYPCorpus`END`PLN `END`PUN{`END' +1383 '`PLN\n' +1384 ' UNIVERSAL `END`PUN=`END`PLN `END`LIT0`END`PUN;`END' +1385 '`PLN\n' +1386 ' WEB `END`PUN=`END`PLN `END`LIT1`END`PUN;`END`PLN\n' +1387 ' IMAGES `END`PUN=`END`PLN `END`LIT2`END`PUN;`END`PLN\n' +1388 ' LOCAL `END`PUN=`END`PLN `END`LIT3`END`PUN;`END`PLN\n' +1389 ' NEWS `END`PUN=`END`PLN `END`LIT4`END`PUN;`END`PLN\n' +1390 ' PRODUCTS `END`PUN=`END`PLN `END`LIT5`END`PUN;`END' +1391 '`PLN\n' +1392 ' VIDEO `END`PUN=`END`PLN `END`LIT6`END`PUN;`END`PLN\n' +1393 ' `END`PUN}`END`PLN\n' +1394 ' `END`KWDoptional`END`PLN `END`TYPCorpus`END`PLN corpus `END' +1395 '`PUN=`END`PLN `END`LIT4`END`PLN `END`PUN[`END`KWDdefault`END' +1396 '`PLN `END`PUN=`END`PLN UNIVERSAL`END`PUN];`END`PLN\n' +1397 '`END`PUN}`END'1398 ),1399 wiki: (1400 '`KWD#summary`END`PLN hello world\n' +1401 '`END`KWD#labels`END`PLN `END`LITHelloWorld`END`PLN `END' +1402 '`LITWikiWord`END`PLN Hiya\n' +1403 '\n' +1404 '`END`PUN[`END' +1405 '`STRhttp://www.google.com/?q=WikiSyntax+site:code.google.com`END' +1406 '`PLN `END`LITWikiSyntax`END`PUN]`END`PLN\n' +1407 '\n' +1408 'Lorem Ipsum ``END`KWDwhile`END`PLN `END`PUN(`END`LIT1`END' +1409 '`PUN)`END`PLN `END`KWDprint`END`PUN(`END`STR"blah blah"`END' +1410 '`PUN);`END`PLN`\n' +1411 '\n' +1412 ' `END`PUN*`END`PLN Bullet\n' +1413 ' `END`PUN*`END`PLN Points\n' +1414 ' `END`PUN*`END`PLN `END`LITNestedBullet`END' +1415 '`PLN\n' +1416 '\n' +1417 '`END`PUN==`END`LITDroningOnAndOn`END`PUN==`END`PLN\n' +1418 '{{{\n' +1419 ' `END`COM// Some EmbeddedSourceCode`END`PLN\n' +1420 ' `END`KWDvoid`END`PLN main`END`PUN()`END`PLN `END`PUN{`END' +1421 '`PLN\n' +1422 ' `END`TYPPrint`END`PUN(`END`STR\'hello world\'`END' +1423 '`PUN);`END`PLN\n' +1424 ' `END`PUN}`END`PLN\n' +1425 '}}}\n' +1426 '\n' +1427 '{{{\n' +1428 ' `END`COM<!-- Embedded XML -->`END`PLN\n' +1429 ' `END`TAG<foo`END`PLN `END`ATNbar`END`PUN=`END' +1430 '`ATV"baz"`END`TAG><boo`END`PLN `END' +1431 '`TAG/><foo>`END`PLN\n' +1432 '}}}`END'1433 ),1434 css: (1435 '`COM<!--`END`PLN\n' +1436 '`END`KWD@charset`END`PUN(`END`STR\'UTF-8\'`END`PUN);`END`PLN\n' +1437 '\n' +1438 '`END`COM/** A url that is not quoted. *\/`END`PLN\n' +1439 '`END`KWD@import`END`PUN(`END`KWDurl`END`PUN(`END`STR/more-styles.css`END' +1440 '`PUN));`END`PLN\n' +1441 '\n' +1442 'HTML `END`PUN{`END`PLN `END`KWDcontent-before`END`PUN:`END`PLN `END' +1443 '`STR\'hello\\20\'`END`PUN;`END`PLN `END`KWDcontent-after`END' +1444 '`PUN:`END`PLN `END`STR\'w\\6f rld\'`END`PUN;`END`PLN\n' +1445 ' `END`KWD-moz-spiff`END`PUN:`END`PLN `END' +1446 '`KWDinherit`END`PLN `END`KWD!important`END`PLN `END`PUN}`END' +1447 '`PLN\n' +1448 '\n' +1449 '`END`COM/* Test units on numbers. *\/`END`PLN\n' +1450 'BODY `END`PUN{`END`PLN `END`KWDmargin-bottom`END`PUN:`END`PLN `END' +1451 '`LIT4px`END`PUN;`END`PLN `END`KWDmargin-left`END`PUN:`END' +1452 '`PLN `END`LIT3in`END`PUN;`END`PLN `END`KWDmargin-bottom`END' +1453 '`PUN:`END`PLN `END`LIT0`END`PUN;`END`PLN `END`KWDmargin-top`END' +1454 '`PUN:`END`PLN `END`LIT5%`END`PLN `END`PUN}`END`PLN\n' +1455 '\n' +1456 '`END`COM/** Test number literals and quoted values. *\/`END`PLN\n' +1457 'TABLE`END`PUN.`END`PLNfoo TR`END`PUN.`END`PLNbar A`END`PUN#`END' +1458 '`PLNvisited `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END`PLN `END' +1459 '`LIT#001123`END`PUN;`END`PLN `END`KWDfont-family`END`PUN:`END' +1460 '`PLN `END`STR"monospace"`END`PLN `END`PUN}`END`PLN\n' +1461 '`END`COM/** bolder is not a name, so should be plain. ' +1462 ' !IMPORTANT is a keyword\n' +1463 ' * regardless of case.\n' +1464 ' *\/`END`PLN\n' +1465 'blink `END`PUN{`END`PLN `END`KWDtext-decoration`END`PUN:`END' +1466 '`PLN BLINK `END`KWD!IMPORTANT`END`PUN;`END`PLN `END' +1467 '`KWDfont-weight`END`PUN:`END`PLN bolder `END`PUN}`END`PLN\n' +1468 '`END`COM/* Empty url() was causing infinite recursion */`END`PLN\n' +1469 'a `END`PUN{`END`PLN `END`KWDbackground-image`END`PUN:`END`PLN ' +1470 '`END`KWDurl`END`PUN();`END`PLN `END`PUN}`END`PLN\n' +1471 'p`END`PUN#`END`PLNfeatured`END`PUN{`END`KWDbackground`END`PUN:`END`LIT#fea`END`PUN}`END`PLN\n' +1472 '`END`COM-->`END'1473 ),1474 css_style: (1475 '`TAG<style`END`PLN `END`ATNtype`END`PUN=`END`ATV\'text/css\'`END' +1476 '`TAG>`END`PLN\n' +1477 '`END`COM/* desert scheme ported from vim to google prettify */`END' +1478 '`PLN\n' +1479 'code`END`PUN.`END`PLNprettyprint `END`PUN{`END`PLN `END' +1480 '`KWDdisplay`END`PUN:`END`PLN block`END`PUN;`END`PLN `END' +1481 '`KWDpadding`END`PUN:`END`PLN `END`LIT2px`END`PUN;`END`PLN `END' +1482 '`KWDborder`END`PUN:`END`PLN `END`LIT1px`END`PLN solid `END' +1483 '`LIT#888`END`PUN;`END`PLN\n' +1484 '`END`KWDbackground-color`END`PUN:`END`PLN `END`LIT#333`END`PUN;`END' +1485 '`PLN `END`PUN}`END`PLN\n' +1486 '`END`PUN.`END`PLNstr `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1487 '`PLN `END`LIT#ffa0a0`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1488 '`COM/* string - pink */`END`PLN\n' +1489 '`END`PUN.`END`PLNkwd `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1490 '`PLN `END`LIT#f0e68c`END`PUN;`END`PLN `END`KWDfont-weight`END' +1491 '`PUN:`END`PLN bold`END`PUN;`END`PLN `END`PUN}`END`PLN\n' +1492 '`END`PUN.`END`PLNcom `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1493 '`PLN `END`LIT#87ceeb`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1494 '`COM/* comment - skyblue */`END`PLN\n' +1495 '`END`PUN.`END`PLNtyp `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1496 '`PLN `END`LIT#98fb98`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1497 '`COM/* type - lightgreen */`END`PLN\n' +1498 '`END`PUN.`END`PLNlit `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1499 '`PLN `END`LIT#cd5c5c`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1500 '`COM/* literal - darkred */`END`PLN\n' +1501 '`END`PUN.`END`PLNpun `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1502 '`PLN `END`LIT#fff`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1503 '`COM/* punctuation */`END`PLN\n' +1504 '`END`PUN.`END`PLNpln `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1505 '`PLN `END`LIT#fff`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1506 '`COM/* plaintext */`END`PLN\n' +1507 '`END`PUN.`END`PLNtag `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1508 '`PLN `END`LIT#f0e68c`END`PUN;`END`PLN `END`KWDfont-weight`END' +1509 '`PUN:`END`PLN bold`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1510 '`COM/* html/xml tag - lightyellow*/`END`PLN\n' +1511 '`END`PUN.`END`PLNatn `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1512 '`PLN `END`LIT#bdb76b`END`PUN;`END`PLN `END`KWDfont-weight`END' +1513 '`PUN:`END`PLN bold`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1514 '`COM/* attribute name - khaki*/`END`PLN\n' +1515 '`END`PUN.`END`PLNatv `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1516 '`PLN `END`LIT#ffa0a0`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1517 '`COM/* attribute value - pink */`END`PLN\n' +1518 '`END`PUN.`END`PLNdec `END`PUN{`END`PLN `END`KWDcolor`END`PUN:`END' +1519 '`PLN `END`LIT#98fb98`END`PUN;`END`PLN `END`PUN}`END`PLN `END' +1520 '`COM/* decimal - lightgreen */`END`PLN\n' +1521 '`END`TAG</style>`END'1522 ),1523 issue84: '`KWDsuper`END`PUN(`END`STR"&nbsp;"`END`PUN);`END',1524 issue86_0: '`COM#One Two words`END',1525 issue86_1: (1526 '`COM#One`END`PLN\n' +1527 '`END`TYPTwo`END`PLN lines`END'1528 ),1529 issue86_2: (1530 '`COM#One`END`PLN\n' +1531 '`END`TYPTwo`END`PLN lines`END'1532 ),1533 issue86_3: (1534 '`COM#One`END`PLN\n' +1535 '`END`TYPTwo`END`PLN lines`END'1536 ),1537 issue86_4: (1538 '`COM#One`END`PLN\n' +1539 '`END`TYPTwo`END`PLN lines`END'1540 ),1541 issue86_5: (1542 '`COM#One`END<br>`PLN ' +1543 '`END`TYPTwo`END`PLN lines`END'1544 ),1545 issue92: (1546 '`PUN<?`END`PLNxml version`END`PUN=`END`STR"1.0"`END`PLN encoding`END`PUN=`END' +1547 '`STR"UTF-8"`END`PUN?>`END`PLN\n' +1548 '`END`TAG<kml`END`PLN `END`ATNxmlns`END`PUN=`END`ATV"http://www.opengis.net/kml/2.2"`END' +1549 '`TAG>`END`PLN\n' +1550 ' `END`TAG<Placemark>`END`PLN\n' +1551 ' `END`TAG<name>`END`PLNSimple placemark`END`TAG</name>`END`PLN\n' +1552 ' `END`TAG<description`END' +1553 '`PLN `END`ATNLang`END`PUN=`END`ATV"en"`END`TAG>`END' +1554 '`PLNAttached to the ground.' +1555 ' Intelligently places itself \n' +1556 ' at the height of the underlying terrain.`END' +1557 '`TAG</description>`END`PLN\n' +1558 ' `END`TAG<Point>`END`PLN\n' +1559 ' `END`TAG<coordinates>`END' +1560 '`PLN-122.0822035425683,37.42228990140251,0`END`TAG</coordinates>`END`PLN\n' +1561 ' `END`TAG</Point>`END`PLN\n' +1562 ' `END`TAG</Placemark>`END`PLN\n' +1563 '`END`TAG</kml>`END'1564 ),1565 cs_verbatim: (1566 '`COM// The normal string syntax`END`PLN\n' +1567 '`END`KWDstring`END`PLN a `END`PUN=`END`PLN `END`STR"C:\\\\"`END`PUN;`END`PLN\n' +1568 '`END`COM// is equivalent to a verbatim string`END`PLN\n' +1569 '`END`KWDstring`END`PLN b `END`PUN=`END`PLN `END`STR@"C:\\"`END`PUN;`END'1570 ),1571 vhdl: (1572 '`KWDlibrary`END`PLN ieee`END`PUN;`END`PLN\n' +1573 '`END`KWDuse`END`PLN ieee`END`PUN.`END`PLNstd_logic_1164`END`PUN.`END`KWDall`END`PUN;`END`PLN\n' +1574 '`END`KWDuse`END`PLN ieee`END`PUN.`END`PLNnumeric_std`END`PUN.`END`KWDall`END`PUN;`END`PLN\n' +1575 '\n' +1576 '`END`COM-- A line comment`END`PLN\n' +1577 '`END`KWDentity`END`PLN foo_entity `END`KWDis`END`PLN\n' +1578 '\n' +1579 ' `END`KWDgeneric`END`PLN `END`PUN(`END`COM-- comment after punc`END`PLN\n' +1580 ' a `END`PUN:`END`PLN `END`TYPnatural`END`PLN `END`PUN:=`END' +1581 '`PLN `END`LIT42`END`PUN;`END`PLN\n' +1582 ' x `END`PUN:`END`PLN `END`TYPreal`END`PLN `END' +1583 '`PUN:=`END`PLN `END`LIT16#ab.cd#-3`END`PLN\n' +1584 ' `END`PUN);`END`PLN\n' +1585 ' `END`KWDport`END`PLN `END`PUN(`END`PLN\n' +1586 ' clk_i `END`PUN:`END`PLN `END`KWDin`END`PLN `END`TYPstd_logic`END`PUN;`END`PLN\n' +1587 ' b_i `END`PUN:`END`PLN `END`KWDin`END`PLN `END`TYPnatural`END`PLN `END`KWDrange`END`PLN `END`LIT0`END`PLN `END`KWDto`END`PLN `END`LIT100`END`PUN;`END`PLN\n' +1588 ' c_o `END`PUN:`END`PLN `END`KWDout`END`PLN `END`TYPstd_logic_vector`END`PUN(`END`LIT5`END`PLN `END`KWDdownto`END`PLN `END`LIT0`END`PUN);`END`PLN\n' +1589 ' \\a "name"\\ `END`PUN:`END`PLN `END`KWDout`END`PLN `END`TYPinteger`END`PLN `END`COM-- extended identifier`END`PLN\n' +1590 ' `END`PUN);`END`PLN\n' +1591 '\n' +1592 '`END`KWDend`END`PLN `END`KWDentity`END`PLN foo_entity`END`PUN;`END`PLN\n' +1593 '\n' +1594 '`END`KWDarchitecture`END`PLN foo_architecture `END`KWDof`END`PLN foo_entity `END`KWDis`END`PLN\n' +1595 ' `END`KWDsignal`END`PLN bar_s `END`PUN:`END`PLN `END`TYPstd_logic_vector`END`PUN(`END`LIT2`END`PLN `END`KWDdownto`END`PLN `END`LIT0`END`PUN);`END`PLN\n' +1596 '`END`KWDbegin`END`PLN\n' +1597 ' \n' +1598 ' bar_s `END`PUN<=`END`PLN `END`STRb"101"`END`PUN;`END`PLN\n' +1599 '\n' +1600 ' dummy_p `END`PUN:`END`PLN `END`KWDprocess`END`PLN `END`PUN(`END`PLNclk_i`END`PUN)`END`PLN\n' +1601 ' `END`KWDbegin`END`PLN\n' +1602 ' `END`KWDif`END`PLN b_i `END`PUN=`END`PLN `END`LIT1`END`PLN `END`KWDthen`END`PLN\n' +1603 ' c_o `END`PUN<=`END`PLN `END`PUN(`END`KWDothers`END`PLN `END`PUN=>`END`PLN `END`STR\'0\'`END`PUN);`END`PLN\n' +1604 ' `END`KWDelsif`END`PLN rising_edge`END`PUN(`END`PLNclk_i`END`PUN)`END`PLN `END`KWDthen`END`PLN\n' +1605 ' c_o `END`PUN<=`END`PLN `END`STR"1011"`END`PLN `END`PUN&`END`PLN bar_s`END`PUN(`END`LIT1`END`PLN `END`KWDdownto`END`PLN `END`LIT0`END`PUN);`END`PLN\n' +1606 ' `END`KWDend`END`PLN `END`KWDif`END`PUN;`END`PLN\n' +1607 ' `END`KWDend`END`PLN `END`KWDprocess`END`PLN dummy_p`END`PUN;`END`PLN\n' +1608 '\n' +1609 '`END`KWDend`END`PLN `END`KWDarchitecture`END`PLN foo_architecture`END`PUN;`END'1610 ),1611 yaml1: (1612 '`KWDapplication: `END`PLNmirah`END`PUN-`END`PLNlang\n' +1613 '`END`KWDversion: `END`PLN1\n' +1614 '\n' +1615 '`END`COM# Here\'s a comment`END`PLN\n' +1616 '`END`KWDhandlers:\n' +1617 '`END`PLN `END`PUN-`END`PLN `END`KWDurl: `END`PLN/red/*\n' +1618 ' `END`KWDservlet: `END`PLNmysite.server.TeamServlet\n' +1619 ' `END`KWDinit_params:\n' +1620 '`END`PLN `END`KWDteamColor: `END`PLNred\n' +1621 ' `END`KWDbgColor: `END`STR"#CC0000"`END`PLN\n' +1622 ' `END`KWDname: `END`PLNredteam\n' +1623 ' `END`PUN-`END`PLN `END`KWDurl: `END`PLN/blue/*\n' +1624 ' `END`KWDservlet: `END`PLNmysite.server.TeamServlet\n' +1625 ' `END`KWDinit_params:\n' +1626 '`END`PLN `END`KWDteamColor: `END`PLNblue\n' +1627 ' `END`KWDbgColor: `END`STR"#0000CC"`END`PLN\n' +1628 ' `END`KWDname: `END`PLNblueteam\n' +1629 ' `END`PUN-`END`PLN `END`KWDurl: `END`PLN/register/*\n' +1630 ' `END`KWDjsp: `END`PLN/register/start.jsp\n' +1631 ' `END`PUN-`END`PLN `END`KWDurl: `END`PLN*.special\n' +1632 ' `END`KWDfilter: `END`PLNmysite.server.LogFilterImpl\n' +1633 ' `END`KWDinit_params:\n' +1634 '`END`PLN `END`KWDlogType: `END`PLNspecial\n' +1635 ' `END'1636 ),1637 yaml2: (1638 '`DEC%YAML 1.1`END`PLN\n' +1639 '`END`DEC---\n' +1640 '`END`TYP!!map`END`PLN {\n' +1641 ' `END`PUN?`END`PLN `END`TYP!!str`END`PLN `END`STR""`END`PLN\n' +1642 ' `END`PUN:`END`PLN `END`TYP!!str`END`PLN `END`STR"value"`END`PLN,\n' +1643 ' `END`PUN?`END`PLN `END`TYP!!str`END`PLN `END`STR"explicit key"`END`PLN\n' +1644 ' `END`PUN:`END`PLN `END`TYP!!str`END`PLN `END`STR"value"`END`PLN,\n' +1645 ' `END`PUN?`END`PLN `END`TYP!!str`END`PLN `END`STR"simple key"`END`PLN\n' +1646 ' `END`PUN:`END`PLN `END`TYP!!str`END`PLN `END`STR"value"`END`PLN,\n' +1647 ' `END`PUN?`END`PLN `END`TYP!!seq`END`PLN [\n' +1648 ' `END`TYP!!str`END`PLN `END`STR"collection"`END`PLN,\n' +1649 ' `END`TYP!!str`END`PLN `END`STR"simple"`END`PLN,\n' +1650 ' `END`TYP!!str`END`PLN `END`STR"key"`END`PLN\n' +1651 ' ]\n' +1652 ' `END`PUN:`END`PLN `END`TYP!!str`END`PLN `END`STR"value"`END`PLN\n' +1653 '}`END'1654 ),1655 scala: (1656 '`COM/* comment 1 *\/`END`PLN\n' +1657 '`END`COM/*\n' +1658 'comment 2\n' +1659 '*\/`END`PLN\n' +1660 '`END`COM/* comment / * comment 3 **\/`END`PLN\n' +1661 '`END`COM// strings`END`PLN\n' +1662 '`END`STR"Hello, World!"`END`PUN,`END`PLN `END`STR"\\n"`END`PUN,`END`PLN\n' +1663 '`END`LIT`an-identifier``END`PUN,`END`PLN `END`LIT`\\n``END`PUN,`END`PLN\n' +1664 '`END`STR\'A\'`END`PUN,`END`PLN `END`STR\'\\n\'`END`PUN,`END`PLN\n' +1665 '`END`LIT\'aSymbol`END`PUN,`END`PLN\n' +1666 '`END`STR"""Hello,\n' +1667 'World"""`END`PUN,`END`PLN `END`STR"""Hello,\\nWorld"""`END`PUN,`END`PLN\n' +1668 '`END`STR"""Hello, "World"!"""`END`PUN,`END`PLN\n' +1669 '`END`STR"""Hello, \\"World\\""""`END`PLN\n' +1670 '\n' +1671 '`END`COM// Numbers`END`PLN\n' +1672 '`END`LIT0`END`PLN\n' +1673 '`END`LIT0123`END`PLN\n' +1674 '`END`LIT0xa0`END`PLN\n' +1675 '`END`LIT0XA0L`END`PLN\n' +1676 '`END`LIT123`END`PLN\n' +1677 '`END`LIT123.45`END`PLN\n' +1678 '`END`LIT1.50F`END`PLN\n' +1679 '`END`LIT0.50`END`PLN\n' +1680 '`END`PUN.`END`LIT50`END`PLN\n' +1681 '`END`LIT123e-1`END`PLN\n' +1682 '`END`LIT123.45e+1`END`PLN\n' +1683 '`END`LIT1.50e2`END`PLN\n' +1684 '`END`LIT0.50e-6`END`PLN\n' +1685 '`END`PUN.`END`LIT50e+42f`END`PLN\n' +1686 '\n' +1687 '`END`COM// Values`END`PLN\n' +1688 '`END`LITfalse`END`PUN,`END`PLN `END`LITtrue`END`PUN,`END`PLN `END`LITnull`END`PUN,`END`PLN `END`LITthis`END`PUN;`END`PLN\n' +1689 '\n' +1690 '`END`COM// Keywords`END`PLN\n' +1691 '`END`KWDclass`END`PLN `END`TYPMyClass`END`PUN;`END`PLN\n' +1692 '`END`KWDimport`END`PLN foo`END`PUN.`END`PLNbar`END`PUN;`END`PLN\n' +1693 '`END`KWDpackage`END`PLN baz`END`PUN;`END`PLN\n' +1694 '\n' +1695 '`END`COM// From scala-lang.org/node/242`END`PLN\n' +1696 '`END`KWDdef`END`PLN act`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +1697 ' `END`KWDvar`END`PLN pongCount `END`PUN=`END`PLN `END`LIT0`END`PLN\n' +1698 ' loop `END`PUN{`END`PLN\n' +1699 ' react `END`PUN{`END`PLN\n' +1700 ' `END`KWDcase`END`PLN `END`TYPPing`END`PLN `END`PUN=>`END`PLN\n' +1701 ' `END`KWDif`END`PLN `END`PUN(`END`PLNpongCount `END`PUN%`END`PLN `END`LIT1000`END`PLN `END`PUN==`END`PLN `END`LIT0`END`PUN)`END`PLN\n' +1702 ' `END`TYPConsole`END`PUN.`END`PLNprintln`END`PUN(`END`STR"Pong: ping "`END`PUN+`END`PLNpongCount`END`PUN)`END`PLN\n' +1703 ' sender `END`PUN!`END`PLN `END`TYPPong`END`PLN\n' +1704 ' pongCount `END`PUN=`END`PLN pongCount `END`PUN+`END`PLN `END`LIT1`END`PLN\n' +1705 ' `END`KWDcase`END`PLN `END`TYPStop`END`PLN `END`PUN=>`END`PLN\n' +1706 ' `END`TYPConsole`END`PUN.`END`PLNprintln`END`PUN(`END`STR"Pong: stop"`END`PUN)`END`PLN\n' +1707 ' exit`END`PUN()`END`PLN\n' +1708 ' `END`PUN}`END`PLN\n' +1709 ' `END`PUN}`END`PLN\n' +1710 '`END`PUN}`END'1711 ),1712 go: (1713 '`PLNpackage main `END`COM/* Package of which this program is part. *\/`END`PLN\n' +1714 '\n' +1715 'import fmt "fmt" `END`COM// Package implementing formatted I/O.`END`PLN\n' +1716 '\n' +1717 '\n' +1718 'func main() {\n' +1719 ' fmt.Printf("Hello, world; or \u039a\u03b1\u03bb\u03b7\u03bc\u03ad\u03c1\u03b1 \u03ba\u03cc\u03c3\u03bc\u03b5; or \u3053\u3093\u306b\u3061\u306f \u4e16\u754c\\n") `END`COM// Semicolon inserted here`END`PLN\n' +1720 '}\n' +1721 '\n' +1722 '`END`COM/* " *\/`END`PLN "foo /* " `END`COM/*\/ *\/`END`PLN\n' +1723 '`END`COM/* ` *\/`END`PLN `foo /* ` `END`COM/*\/ *\/`END'1724 ),1725 erlang: (1726 '`COM% Sample comment`END`PLN\n' +1727 '\n' +1728 '`END`KWD-module`END`PLN(my_test)`END`PUN.`END`PLN\n' +1729 '`END`KWD-include_lib`END`PLN(`END`STR"my_sample_lib.hrl"`END`PLN)`END`PUN.`END`PLN\n' +1730 '`END`KWD-export`END`PLN([\n' +1731 ' test/`END`LIT2`END`PLN\n' +1732 '])`END`PUN.`END`PLN\n' +1733 '\n' +1734 '`END`COM%% @doc Define a macro`END`PLN\n' +1735 '`END`KWD-define`END`PLN(my_macro`END`PUN,`END`PLN `END`TYPVariable`END`PLN)`END`PUN.`END`PLN\n' +1736 '\n' +1737 '`END`COM%% @doc My function`END`PLN\n' +1738 'test(`END`TYPVariables`END`PUN,`END`PLN `END`TYPMoreVariables`END`PLN) ->\n' +1739 ' `END`COM% Inline comment`END`PLN\n' +1740 ' {ok`END`PUN,`END`TYPScanned`END`PUN,`END`TYP_`END`PLN} = my_lib:do_stuff()`END`PUN,`END`PLN\n' +1741 '\n' +1742 ' `END`TYPVariable`END`PLN = `END`KWDfun`END`PLN(`END`TYPV`END`PLN) -> {ok`END`PUN,`END`PLN `END`TYPV`END`PLN} `END`KWDend`END`PUN,`END`PLN\n' +1743 '\n' +1744 ' `END`KWDtry`END`PLN `END`LIT?my_macro`END`PLN({value`END`PUN,`END`PLN test}) `END`KWDof`END`PLN\n' +1745 ' {value`END`PUN,`END`PLN `END`TYPResult`END`PUN,`END`PLN `END`TYP_`END`PLN} ->\n' +1746 ' {ok`END`PUN,`END`PLN `END`TYPResult`END`PLN}\n' +1747 ' `END`KWDcatch`END`PLN\n' +1748 ' `END`TYPType`END`PLN:`END`TYPError`END`PLN ->\n' +1749 ' {`END`LIT\'error\'`END`PUN,`END`PLN `END`TYPType`END`PUN,`END`PLN `END`TYPError`END`PLN}\n' +1750 ' `END`KWDend`END`PUN.`END'1751 ),1752 rust: (1753 '`COM// Single line comment`END`PLN\n' +1754 '`END`COM/* Multi-line (nesting not highlighted properly, sorry)\n' +1755 'comment */`END`PLN\n' +1756 '\n' +1757 '`END`ATV#![feature(code_prettification)]`END`PLN\n' +1758 '\n' +1759 '`END`KWDuse`END`PLN std`END`PUN::`END`PLNio`END`PUN::{`END`LITself`END`PUN,`END`PLN Write`END`PUN};`END`PLN\n' +1760 '\n' +1761 '`END`KWDimpl`END`PUN<`END`TAG\'a`END`PUN,`END`PLN T`END`PUN:`END`PLN `END`TAG\'a`END`PLN `END`PUN+`END`PLN `END`PUN?`END`TYPSized`END`PUN>`END`PLN Foo`END`PUN<`END`TAG\'a`END`PUN,`END`PLN `END`TAG\'static`END`PUN>`END`PLN `END`KWDfor`END`PLN Bar`END`PUN<`END`TAG\'b`END`PUN>`END`PLN\n' +1762 '`END`KWDwhere`END`PLN T`END`PUN:`END`PLN `END`TYPIterator`END`PUN<`END`PLNItem `END`PUN=`END`PLN `END`TYPBox`END`PUN<`END`TYPFn`END`PUN()`END`PLN `END`PUN->`END`PLN `END`TYPu32`END`PUN>>`END`PLN `END`PUN{`END`PLN\n' +1763 ' `END`KWDfn`END`PLN something`END`PUN(&`END`KWDmut`END`PLN `END`LITself`END`PUN)`END`PLN `END`PUN->`END`PLN `END`TYPu32`END`PLN `END`PUN{`END`PLN\n' +1764 ' `END`KWDif`END`PLN `END`KWDlet`END`PLN `END`TYPSome`END`PUN(`END`KWDref`END`PLN x`END`PUN)`END`PLN `END`PUN=`END`PLN `END`LITself`END`PUN.`END`PLNfoo`END`PUN(`END`STR"multi li\\ne\n' +1765 's\\tring"`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +1766 ' `END`ATNpanic!`END`PUN(`END`STRr"\\things is going wrong!"`END`PUN);`END`PLN\n' +1767 ' `END`ATNpanic!`END`PUN(`END`STRr#"Things is "really" goig\\n wront!"#`END`PUN);`END`PLN\n' +1768 ' `END`ATNpanic!`END`PUN(`END`STRr##"Raw strings are #"#fancy#"#"##`END`PUN);`END`PLN\n' +1769 ' `END`PUN}`END`PLN\n' +1770 ' `END`PUN}`END`PLN\n' +1771 '`END`PUN}`END`PLN\n' +1772 '\n' +1773 '`END`KWDpub`END`PLN `END`KWDtype`END`PLN CowString`END`PUN<`END`TAG\'a`END`PUN>`END`PLN `END`PUN=`END`PLN std`END`PUN::`END`PLNcow`END`PUN::`END`PLNCow`END`PUN<`END`TAG\'a`END`PUN,`END`PLN `END`TYPstr`END`PUN>;`END`PLN\n' +1774 '\n' +1775 '`END`KWDfn`END`PLN main`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +1776 ' `END`KWDlet`END`PLN `END`PUN(`END`PLNi`END`PUN,`END`PLN r`END`PUN)`END`PLN `END`PUN=`END`PLN `END`PUN(`END`LIT1u8`END`PUN,`END`PLN `END`STR\'c\'`END`PUN);`END`PLN\n' +1777 ' `END`KWDlet`END`PLN s `END`PUN=`END`PLN `END`STRr#"Take a raw egg,\n' +1778 ' "break" it (or the line),\n' +1779 ' and beat it"#`END`PUN;`END`PLN\n' +1780 '`END`PUN}`END'1781 )...
prettify_test_2.js
Source:prettify_test_2.js
1/**2 * maps ids of rewritten code to the expected output.3 * For brevity, <span class="foo"> has been changed to `FOO4 * and < /span> has been changed to `END.5 */6var goldens = {7 xquery: (8 '`COM(: \n' +9 '\tTook some of Mike Brevoort\'s xquery code samples because they are nice and show common xquery syntax \n' +10 ':)`END`PLN\n' +11 ' \n' +12 ' `END`COM(:~\n' +13 ' : Given a sequence of version URIs, publish all of these versions of each document\n' +14 ' : If there is a version of the same document already published, unpublish it 1st\n' +15 ' :\n' +16 ' : When "publish" is referred to, we mean that it is put into the PUBLISHED collection\n' +17 ' : unpublish removes content from this collection\n' +18 ' : @param $version_uris - sequence of uris of versions of managed documents to publish\n' +19 ' :)`END`PLN\n' +20 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:publish(`END<span class="var pln">$version_uris`END`PLN `END`KWDas`END`PLN `END`KWDitem`END`PLN()*) {\n' +21 ' `END`KWDfor`END`PLN `END<span class="var pln">$uri`END`PLN `END`KWDin`END`PLN `END<span class="var pln">$version_uris`END`PLN\n' +22 ' `END`KWDlet`END`PLN `END<span class="var pln">$doc`END`PLN := `END<span class="fun pln">fn:doc`END`PLN(`END<span class="var pln">$uri`END`PLN)\n' +23 ' `END`KWDlet`END`PLN `END<span class="var pln">$managed_base_uri`END`PLN := `END<span class="var pln">$doc`END`PLN/`END`KWDnode`END`PLN()/property::dls:version/dls:document-uri/`END`KWDtext`END`PLN()\n' +24 ' `END`KWDlet`END`PLN `END<span class="var pln">$existing`END`PLN := comoms-dls:publishedDoc(`END<span class="var pln">$managed_base_uri`END`PLN)\n' +25 ' `END`KWDlet`END`PLN `END<span class="var pln">$unpublishExisting`END`PLN := `END`KWDif`END`PLN(`END<span class="var pln">$existing`END`PLN) `END`KWDthen`END`PLN comoms-dls:unpublishVersion((`END<span class="fun pln">xdmp:node-uri`END`PLN(`END<span class="var pln">$existing`END`PLN))) `END`KWDelse`END`PLN ()\n' +26 ' `END`KWDlet`END`PLN `END<span class="var pln">$addPermissions`END`PLN := `END<span class="fun pln">dls:document-add-permissions`END`PLN(`END<span class="var pln">$uri`END`PLN, (`END<span class="fun pln">xdmp:permission`END`PLN(`END`STR\'mkp-anon\'`END`PLN, `END`STR\'read\'`END`PLN)))\n' +27 ' `END`KWDreturn`END`PLN\n' +28 ' `END<span class="fun pln">dls:document-add-collections`END`PLN(`END<span class="var pln">$uri`END`PLN, (`END`STR"PUBLISHED"`END`PLN)) \n' +29 ' };\n' +30 ' \n' +31 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:publishLatest(`END<span class="var pln">$uri`END`PLN) {\n' +32 ' `END`COM(: TODO check if it\'s in the draft collection probably :)`END`PLN\n' +33 ' \n' +34 ' `END`KWDlet`END`PLN `END<span class="var pln">$latest_version_uri`END`PLN := comoms-dls:latestVersionUri(`END<span class="var pln">$uri`END`PLN)\n' +35 ' `END`KWDlet`END`PLN `END<span class="var pln">$log`END`PLN:= `END<span class="fun pln">xdmp:log`END`PLN(`END<span class="fun pln">fn:concat`END`PLN(`END`STR"latest: "`END`PLN, `END<span class="var pln">$latest_version_uri`END`PLN)) \n' +36 ' `END`KWDlet`END`PLN `END<span class="var pln">$log`END`PLN:= `END<span class="fun pln">xdmp:log`END`PLN(`END<span class="fun pln">fn:concat`END`PLN(`END`STR"uri: "`END`PLN, `END<span class="var pln">$uri`END`PLN)) \n' +37 ' `END`KWDreturn`END`PLN comoms-dls:publish(`END<span class="var pln">$latest_version_uri`END`PLN) \n' +38 ' \n' +39 ' };\n' +40 ' \n' +41 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:latestVersionUri(`END<span class="var pln">$uri`END`PLN) {\n' +42 ' `END`KWDlet`END`PLN `END<span class="var pln">$latest_version_num`END`PLN :=\n' +43 ' (\n' +44 ' `END`KWDfor`END`PLN `END<span class="var pln">$version`END`PLN `END`KWDin`END`PLN `END<span class="fun pln">dls:document-history`END`PLN(`END<span class="var pln">$uri`END`PLN)/dls:version\n' +45 ' `END`KWDorder`END`PLN `END`KWDby`END`PLN `END<span class="fun pln">fn:number`END`PLN(`END<span class="var pln">$version`END`PLN//dls:version-id/`END`KWDtext`END`PLN()) `END`KWDdescending`END`PLN\n' +46 ' `END`KWDreturn`END`PLN `END<span class="var pln">$version`END`PLN//dls:version-id/`END`KWDtext`END`PLN()\n' +47 ' )[1]\n' +48 ' \n' +49 ' \n' +50 ' `END`KWDreturn`END`PLN `END<span class="fun pln">dls:document-version-uri`END`PLN(`END<span class="var pln">$uri`END`PLN, `END<span class="var pln">$latest_version_num`END`PLN)\n' +51 ' };\n' +52 ' \n' +53 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:unpublish(`END<span class="var pln">$uris`END`PLN `END`KWDas`END`PLN `END`KWDitem`END`PLN()*) {\n' +54 ' `END`KWDfor`END`PLN `END<span class="var pln">$uri`END`PLN `END`KWDin`END`PLN `END<span class="var pln">$uris`END`PLN\n' +55 ' `END`KWDreturn`END`PLN\n' +56 ' `END`KWDlet`END`PLN `END<span class="var pln">$published_doc`END`PLN := comoms-dls:publishedDoc(`END<span class="var pln">$uri`END`PLN)\n' +57 ' `END`KWDreturn`END`PLN\n' +58 ' `END`KWDif`END`PLN(`END<span class="var pln">$published_doc`END`PLN) `END`KWDthen`END`PLN\n' +59 ' `END`KWDlet`END`PLN `END<span class="var pln">$published_version_uri`END`PLN := `END<span class="fun pln">xdmp:node-uri`END`PLN(`END<span class="var pln">$published_doc`END`PLN)\n' +60 ' `END`KWDreturn`END`PLN comoms-dls:unpublishVersion(`END<span class="var pln">$published_version_uri`END`PLN) \n' +61 ' `END`KWDelse`END`PLN\n' +62 ' ()\n' +63 ' };\n' +64 ' \n' +65 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:latestPublishedDocAuthor(`END<span class="var pln">$uri`END`PLN) {\n' +66 ' `END`KWDlet`END`PLN `END<span class="var pln">$author_id`END`PLN := `END<span class="fun pln">doc`END`PLN(`END<span class="var pln">$uri`END`PLN)/property::dls:version/dls:author/`END`KWDtext`END`PLN()\n' +67 ' `END`KWDreturn`END`PLN\n' +68 ' `END`KWDif`END`PLN(`END<span class="var pln">$author_id`END`PLN) `END`KWDthen`END`PLN\n' +69 ' comoms-user:getUsername(`END<span class="var pln">$author_id`END`PLN)\n' +70 ' `END`KWDelse`END`PLN\n' +71 ' ()\n' +72 ' \n' +73 ' };\n' +74 ' \n' +75 ' `END`COM(:~\n' +76 ' : Given a sequence of version URIs, unpublish all of these versions of each document\n' +77 ' :)`END`PLN\n' +78 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:unpublishVersion(`END<span class="var pln">$version_uris`END`PLN `END`KWDas`END`PLN `END`KWDitem`END`PLN()*) {\n' +79 ' `END`KWDfor`END`PLN `END<span class="var pln">$uri`END`PLN `END`KWDin`END`PLN `END<span class="var pln">$version_uris`END`PLN\n' +80 ' `END`KWDreturn`END`PLN\n' +81 ' `END`KWDlet`END`PLN `END<span class="var pln">$removePermissions`END`PLN := `END<span class="fun pln">dls:document-remove-permissions`END`PLN(`END<span class="var pln">$uri`END`PLN, (`END<span class="fun pln">xdmp:permission`END`PLN(`END`STR\'mkp-anon\'`END`PLN, `END`STR\'read\'`END`PLN)))\n' +82 ' `END`KWDreturn`END`PLN `END<span class="fun pln">dls:document-remove-collections`END`PLN(`END<span class="var pln">$uri`END`PLN, (`END`STR"PUBLISHED"`END`PLN)) \n' +83 ' };\n' +84 ' \n' +85 ' `END`COM(:~\n' +86 ' : Given the base URI of a managed piece of content, return the document of the node\n' +87 ' : of the version that is published\n' +88 ' :)`END`PLN\n' +89 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:publishedDoc(`END<span class="var pln">$uri`END`PLN) {\n' +90 ' `END<span class="fun pln">fn:collection`END`PLN(`END`STR"PUBLISHED"`END`PLN)[property::dls:version/dls:document-uri = `END<span class="var pln">$uri`END`PLN]\n' +91 ' };\n' +92 ' \n' +93 ' \n' +94 ' `END`COM(:~\n' +95 ' : Test if any version of the managed document is published\n' +96 ' :)`END`PLN\n' +97 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:isPublished(`END<span class="var pln">$uri`END`PLN) {\n' +98 ' `END`KWDif`END`PLN( comoms-dls:publishedDoc(`END<span class="var pln">$uri`END`PLN)) `END`KWDthen`END`PLN\n' +99 ' `END<span class="fun pln">fn:true`END`PLN()\n' +100 ' `END`KWDelse`END`PLN\n' +101 ' `END<span class="fun pln">fn:false`END`PLN()\n' +102 ' };\n' +103 ' \n' +104 ' \n' +105 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:publishedState(`END<span class="var pln">$uri`END`PLN) {\n' +106 ' `END`KWDlet`END`PLN `END<span class="var pln">$doc`END`PLN := comoms-dls:publishedDoc(`END<span class="var pln">$uri`END`PLN)\n' +107 ' `END`KWDlet`END`PLN `END<span class="var pln">$published_uri`END`PLN := `END`KWDif`END`PLN(`END<span class="var pln">$doc`END`PLN) `END`KWDthen`END`PLN `END<span class="fun pln">xdmp:node-uri`END`PLN(`END<span class="var pln">$doc`END`PLN) `END`KWDelse`END`PLN ()\n' +108 ' `END`KWDlet`END`PLN `END<span class="var pln">$latest`END`PLN := comoms-dls:latestVersionUri(`END<span class="var pln">$uri`END`PLN)\n' +109 ' `END`KWDreturn`END`PLN\n' +110 ' `END`KWDif`END`PLN(`END<span class="var pln">$doc`END`PLN) `END`KWDthen`END`PLN\n' +111 ' `END`KWDif`END`PLN(`END<span class="var pln">$latest`END`PLN ne `END<span class="var pln">$published_uri`END`PLN) `END`KWDthen`END`PLN\n' +112 ' `END`STR"stale"`END`PLN\n' +113 ' `END`KWDelse`END`PLN\n' +114 ' `END`STR"published"`END`PLN\n' +115 ' `END`KWDelse`END`PLN\n' +116 ' `END`STR"unpublished"`END`PLN\n' +117 ' };\n' +118 ' \n' +119 ' \n' +120 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:getManagedDocUri(`END<span class="var pln">$uri`END`PLN) {\n' +121 ' `END`KWDlet`END`PLN `END<span class="var pln">$doc`END`PLN := `END<span class="fun pln">fn:doc`END`PLN(`END<span class="var pln">$uri`END`PLN)\n' +122 ' `END`KWDlet`END`PLN `END<span class="var pln">$managed_uri`END`PLN := `END<span class="var pln">$doc`END`PLN/property::dls:version/dls:document-uri/`END`KWDtext`END`PLN()\n' +123 ' `END`KWDlet`END`PLN `END<span class="var pln">$managed_uri`END`PLN := `END`KWDif`END`PLN(`END<span class="var pln">$managed_uri`END`PLN) `END`KWDthen`END`PLN `END<span class="var pln">$managed_uri`END`PLN `END`KWDelse`END`PLN `END<span class="var pln">$uri`END`PLN\n' +124 ' `END`KWDreturn`END`PLN `END<span class="var pln">$managed_uri`END`PLN\n' +125 ' };\n' +126 ' \n' +127 ' `END`COM(:~\n' +128 ' : Given a manage content url (e.g. /content/123456.xml) return the appropriate\n' +129 ' : version of the document based on what stage collection is being viewed and\n' +130 ' : what\'s published\n' +131 ' :\n' +132 ' : @param $uri a manage content url (e.g. /content/123456.xml) - NOT A VERSIONED URI\n' +133 ' :)`END`PLN\n' +134 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:doc(`END<span class="var pln">$uri`END`PLN) {\n' +135 ' `END`KWDlet`END`PLN `END<span class="var pln">$doc`END`PLN := `END<span class="fun pln">fn:root`END`PLN(comoms-dls:collection()[property::dls:version/dls:document-uri = `END<span class="var pln">$uri`END`PLN][1])\n' +136 ' `END`KWDreturn`END`PLN\n' +137 ' `END`KWDif`END`PLN(`END<span class="var pln">$doc`END`PLN) `END`KWDthen`END`PLN\n' +138 ' `END<span class="var pln">$doc`END`PLN\n' +139 ' `END`KWDelse`END`PLN\n' +140 ' `END`KWDlet`END`PLN `END<span class="var pln">$managedDocInCollection`END`PLN := comoms-dls:collection-name() = `END<span class="fun pln">xdmp:document-get-collections`END`PLN(`END<span class="var pln">$uri`END`PLN)\n' +141 ' `END`KWDreturn`END`PLN\n' +142 ' `END`KWDif`END`PLN(`END<span class="var pln">$managedDocInCollection`END`PLN) `END`KWDthen`END`PLN\n' +143 ' `END<span class="fun pln">fn:doc`END`PLN(`END<span class="var pln">$uri`END`PLN)\n' +144 ' `END`KWDelse`END`PLN\n' +145 ' ()\n' +146 ' };\n' +147 ' \n' +148 ' `END`COM(:~\n' +149 ' : Get the collection to be used when querying for content\n' +150 ' : THIS or comoms-dls:collection-name() SHOULD BE USED WHEN BUILDING ANY QUERY FOR MANAGED CONTENT\n' +151 ' :)`END`PLN\n' +152 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:collection() {\n' +153 ' `END<span class="fun pln">fn:collection`END`PLN( comoms-dls:collection-name() )\n' +154 ' };\n' +155 ' \n' +156 ' `END`COM(:~\n' +157 ' : Get the collection nameto be used when querying for content\n' +158 ' : THIS or comoms-dls:collection() SHOULD BE USED WHEN BUILDING ANY QUERY FOR MANAGED CONTENT\n' +159 ' :)`END`PLN\n' +160 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:collection-name() `END`KWDas`END`PLN `END`TYPxs:string`END`PLN {\n' +161 ' `END`KWDlet`END`PLN `END<span class="var pln">$default_collection`END`PLN := `END`STR"PUBLISHED"`END`PLN\n' +162 ' `END`KWDreturn`END`PLN\n' +163 ' `END`KWDif`END`PLN(comoms-user:isAdmin()) `END`KWDthen`END`PLN\n' +164 ' `END`KWDlet`END`PLN `END<span class="var pln">$pub_stage_collection_cookie`END`PLN := comoms-util:getCookie(`END`STR"COMOMS_COLLECTION"`END`PLN)\n' +165 ' `END`KWDreturn`END`PLN\n' +166 ' `END`KWDif`END`PLN(`END<span class="var pln">$pub_stage_collection_cookie`END`PLN) `END`KWDthen`END`PLN\n' +167 ' `END<span class="var pln">$pub_stage_collection_cookie`END`PLN\n' +168 ' `END`KWDelse`END`PLN\n' +169 ' `END<span class="var pln">$default_collection`END`PLN\n' +170 ' `END`KWDelse`END`PLN\n' +171 ' `END<span class="var pln">$default_collection`END`PLN\n' +172 ' };\n' +173 ' \n' +174 ' `END`COM(:~\n' +175 ' : Check if the published collection is being viewed\n' +176 ' :)`END`PLN\n' +177 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:isViewingPublished() {\n' +178 ' `END`KWDif`END`PLN(comoms-dls:collection-name() = `END`STR"PUBLISHED"`END`PLN) `END`KWDthen`END`PLN\n' +179 ' `END<span class="fun pln">fn:true`END`PLN()\n' +180 ' `END`KWDelse`END`PLN\n' +181 ' `END<span class="fun pln">fn:false`END`PLN()\n' +182 ' };\n' +183 ' \n' +184 ' `END`COM(:~\n' +185 ' : Get the best URL for the content URI.\n' +186 ' : This is either the default URI based on detail type or should also take\n' +187 ' : into account friendly urls and navigation structures to figure out the\n' +188 ' : best choice\n' +189 ' :)`END`PLN\n' +190 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:contentUrl(`END<span class="var pln">$uri`END`PLN) {\n' +191 ' \n' +192 ' `END`COM(: TODO: add friendly URL and nav structure logic 1st :)`END`PLN\n' +193 ' \n' +194 ' `END`KWDlet`END`PLN `END<span class="var pln">$doc`END`PLN := `END<span class="fun pln">fn:doc`END`PLN(`END<span class="var pln">$uri`END`PLN)\n' +195 ' `END`KWDlet`END`PLN `END<span class="var pln">$managedDocUri`END`PLN := `END<span class="var pln">$doc`END`PLN/property::dls:version/dls:document-uri\n' +196 ' `END`KWDlet`END`PLN `END<span class="var pln">$uri`END`PLN := `END`KWDif`END`PLN(`END<span class="var pln">$managedDocUri`END`PLN) `END`KWDthen`END`PLN `END<span class="var pln">$managedDocUri`END`PLN `END`KWDelse`END`PLN `END<span class="var pln">$uri`END`PLN\n' +197 ' `END`KWDlet`END`PLN `END<span class="var pln">$type`END`PLN := `END<span class="var pln">$doc`END`PLN/`END`KWDnode`END`PLN()/`END<span class="fun pln">fn:name`END`PLN()\n' +198 ' `END`KWDlet`END`PLN `END<span class="var pln">$content_id`END`PLN := `END<span class="fun pln">fn:tokenize`END`PLN( `END<span class="fun pln">fn:tokenize`END`PLN(`END<span class="var pln">$uri`END`PLN, `END`STR"/"`END`PLN)[3], `END`STR"\\."`END`PLN)[1]\n' +199 ' `END`KWDreturn`END`PLN\n' +200 ' `END<span class="fun pln">fn:concat`END`PLN(`END`STR"/"`END`PLN, `END<span class="var pln">$type`END`PLN, `END`STR"/"`END`PLN, `END<span class="var pln">$content_id`END`PLN)\n' +201 ' };\n' +202 ' \n' +203 ' `END`COM(:\n' +204 ' :\n' +205 ' : gets list of doc versions and uri.\n' +206 ' :\n' +207 ' :)`END`PLN\n' +208 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:versionHistory(`END<span class="var pln">$uri`END`PLN) {\n' +209 ' `END`KWDlet`END`PLN `END<span class="var pln">$published_doc`END`PLN := comoms-dls:publishedDoc(`END<span class="var pln">$uri`END`PLN)\n' +210 ' `END`KWDlet`END`PLN `END<span class="var pln">$published_uri`END`PLN := `END`KWDif`END`PLN(`END<span class="var pln">$published_doc`END`PLN) `END`KWDthen`END`PLN `END<span class="fun pln">xdmp:node-uri`END`PLN(`END<span class="var pln">$published_doc`END`PLN) `END`KWDelse`END`PLN ()\n' +211 ' `END`KWDreturn`END`PLN\n' +212 ' `END`TAG<versions>`END`PLN\n' +213 ' {\n' +214 ' `END`KWDfor`END`PLN `END<span class="var pln">$version`END`PLN `END`KWDin`END`PLN `END<span class="fun pln">dls:document-history`END`PLN(`END<span class="var pln">$uri`END`PLN)/dls:version\n' +215 ' `END`KWDlet`END`PLN `END<span class="var pln">$version_num`END`PLN := `END<span class="var pln">$version`END`PLN/dls:version-id/`END`KWDtext`END`PLN()\n' +216 ' `END`KWDlet`END`PLN `END<span class="var pln">$created`END`PLN := `END<span class="var pln">$version`END`PLN/dls:created/`END`KWDtext`END`PLN()\n' +217 ' `END`KWDlet`END`PLN `END<span class="var pln">$author_id`END`PLN := `END<span class="var pln">$version`END`PLN/dls:author/`END`KWDtext`END`PLN()\n' +218 ' `END`KWDlet`END`PLN `END<span class="var pln">$author`END`PLN := comoms-user:getUsername(`END<span class="var pln">$author_id`END`PLN)\n' +219 ' \n' +220 ' \n' +221 ' `END`KWDlet`END`PLN `END<span class="var pln">$note`END`PLN := `END<span class="var pln">$version`END`PLN/dls:annotation/`END`KWDtext`END`PLN()\n' +222 ' `END`KWDlet`END`PLN `END<span class="var pln">$version_uri`END`PLN := `END<span class="fun pln">xdmp:node-uri`END`PLN(`END<span class="fun pln">dls:document-version`END`PLN(`END<span class="var pln">$uri`END`PLN, `END<span class="var pln">$version_num`END`PLN))\n' +223 ' `END`KWDlet`END`PLN `END<span class="var pln">$published`END`PLN := `END<span class="var pln">$published_uri`END`PLN `END`KWDeq`END`PLN `END<span class="var pln">$version_uri`END`PLN\n' +224 ' `END`KWDreturn`END`PLN\n' +225 ' `END`TAG<version>`END`PLN\n' +226 ' `END`TAG<version-number>`END`PLN{`END<span class="var pln">$version_num`END`PLN}`END`TAG</version-number>`END`PLN\n' +227 ' `END`TAG<created>`END`PLN{`END<span class="var pln">$created`END`PLN}`END`TAG</created>`END`PLN \n' +228 ' `END`TAG<author>`END`PLN{`END<span class="var pln">$author`END`PLN}`END`TAG</author>`END`PLN\n' +229 ' `END`TAG<published>`END`PLN{`END<span class="var pln">$published`END`PLN}`END`TAG</published>`END`PLN\n' +230 ' `END`TAG<version-uri>`END`PLN{`END<span class="var pln">$version_uri`END`PLN}`END`TAG</version-uri>`END`PLN\n' +231 ' `END`TAG</version>`END`PLN \n' +232 ' } \n' +233 ' `END`TAG</versions>`END`PLN\n' +234 ' };\n' +235 ' \n' +236 ' \n' +237 ' \n' +238 ' \n' +239 ' \n' +240 ' \n' +241 ' `END`COM(: ########################################################################### :)`END`PLN\n' +242 ' `END`COM(: PRIVATE FUNCTIONS :)`END`PLN\n' +243 ' `END`COM(: ########################################################################### :)`END`PLN\n' +244 ' \n' +245 ' `END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN comoms-dls:_import() {\n' +246 ' `END`STR"xquery version \'1.0-ml\';\n' +247 ' import module namespace dls = \'http://marklogic.com/xdmp/dls\' at \'/MarkLogic/dls.xqy\'; "`END`PLN\n' +248 ' }; \n' +249 ' \n' +250 '`END`COM(: ----\n' +251 '---- :)`END`PLN\n' +252 '`END`KWDxquery`END`PLN `END`KWDversion`END`PLN `END`STR\'1.0-ml\'`END`PLN;\n' +253 '`END`KWDdeclare`END`PLN `END`KWDvariable`END`PLN `END<span class="var pln">$URI`END`PLN `END`KWDas`END`PLN `END`TYPxs:string`END`PLN `END`KWDexternal`END`PLN;\n' +254 ' \n' +255 '`END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN local:document-move-forest(`END<span class="var pln">$uri`END`PLN `END`KWDas`END`PLN `END`TYPxs:string`END`PLN, `END<span class="var pln">$forest-ids`END`PLN `END`KWDas`END`PLN `END`TYPxs:unsignedLong`END`PLN*)\n' +256 '{\n' +257 ' `END<span class="fun pln">xdmp:document-insert`END`PLN(\n' +258 ' `END<span class="var pln">$uri`END`PLN,\n' +259 ' `END<span class="fun pln">fn:doc`END`PLN(`END<span class="var pln">$uri`END`PLN),\n' +260 ' `END<span class="fun pln">xdmp:document-get-permissions`END`PLN(`END<span class="var pln">$uri`END`PLN),\n' +261 ' `END<span class="fun pln">xdmp:document-get-collections`END`PLN(`END<span class="var pln">$uri`END`PLN),\n' +262 ' `END<span class="fun pln">xdmp:document-get-quality`END`PLN(`END<span class="var pln">$uri`END`PLN),\n' +263 ' `END<span class="var pln">$forest-ids`END`PLN\n' +264 ' )\n' +265 '};\n' +266 ' \n' +267 '`END`KWDlet`END`PLN `END<span class="var pln">$xml`END`PLN :=\n' +268 ' `END`TAG<xml`END`PLN att=`END`STR"blah"`END`PLN att2=`END`STR"blah"`END`TAG>`END`PLN\n' +269 ' sdasd`END`TAG<b>`END`PLNasdasd`END`TAG</b>`END`PLN\n' +270 ' `END`TAG</xml>`END`PLN\n' +271 '`END`COM(: -------- :)`END`PLN\n' +272 '`END`KWDfor`END`PLN `END<span class="var pln">$d`END`PLN `END`KWDin`END`PLN `END<span class="fun pln">fn:doc`END`PLN(`END`STR"depts.xml"`END`PLN)/depts/deptno\n' +273 '`END`KWDlet`END`PLN `END<span class="var pln">$e`END`PLN := `END<span class="fun pln">fn:doc`END`PLN(`END`STR"emps.xml"`END`PLN)/emps/emp[deptno = `END<span class="var pln">$d`END`PLN]\n' +274 '`END`KWDwhere`END`PLN `END<span class="fun pln">fn:count`END`PLN(`END<span class="var pln">$e`END`PLN) >= 10\n' +275 '`END`KWDorder`END`PLN `END`KWDby`END`PLN `END<span class="fun pln">fn:avg`END`PLN(`END<span class="var pln">$e`END`PLN/salary) `END`KWDdescending`END`PLN\n' +276 '`END`KWDreturn`END`PLN\n' +277 ' `END`TAG<big-dept>`END`PLN\n' +278 ' {\n' +279 ' `END<span class="var pln">$d`END`PLN,\n' +280 ' `END`TAG<headcount>`END`PLN{`END<span class="fun pln">fn:count`END`PLN(`END<span class="var pln">$e`END`PLN)}`END`TAG</headcount>`END`PLN,\n' +281 ' `END`TAG<avgsal>`END`PLN{`END<span class="fun pln">fn:avg`END`PLN(`END<span class="var pln">$e`END`PLN/salary)}`END`TAG</avgsal>`END`PLN\n' +282 ' }\n' +283 ' `END`TAG</big-dept>`END`PLN\n' +284 '`END`COM(: -------- :)`END`PLN\n' +285 '`END`KWDdeclare`END`PLN `END`KWDfunction`END`PLN local:depth(`END<span class="var pln">$e`END`PLN `END`KWDas`END`PLN `END`KWDnode`END`PLN()) `END`KWDas`END`PLN `END`TYPxs:integer`END`PLN\n' +286 '{\n' +287 ' `END`COM(: A node with no children has depth 1 :)`END`PLN\n' +288 ' `END`COM(: Otherwise, add 1 to max depth of children :)`END`PLN\n' +289 ' `END`KWDif`END`PLN (`END<span class="fun pln">fn:empty`END`PLN(`END<span class="var pln">$e`END`PLN/*)) `END`KWDthen`END`PLN 1\n' +290 ' `END`KWDelse`END`PLN `END<span class="fun pln">fn:max`END`PLN(`END`KWDfor`END`PLN `END<span class="var pln">$c`END`PLN `END`KWDin`END`PLN `END<span class="var pln">$e`END`PLN/* `END`KWDreturn`END`PLN local:depth(`END<span class="var pln">$c`END`PLN)) + 1\n' +291 '};\n' +292 ' \n' +293 'local:depth(`END<span class="fun pln">fn:doc`END`PLN(`END`STR"partlist.xml"`END`PLN))\n' +294 ' \n' +295 '`END`COM(: -------- :)`END`PLN\n' +296 '`END`TAG<html><head`END`PLN/`END`TAG><body>`END`PLN\n' +297 '{\n' +298 ' `END`KWDfor`END`PLN `END<span class="var pln">$act`END`PLN `END`KWDin`END`PLN `END<span class="fun pln">doc`END`PLN(`END`STR"hamlet.xml"`END`PLN)//ACT\n' +299 ' `END`KWDlet`END`PLN `END<span class="var pln">$speakers`END`PLN := `END<span class="fun pln">distinct-values`END`PLN(`END<span class="var pln">$act`END`PLN//SPEAKER)\n' +300 ' `END`KWDreturn`END`PLN\n' +301 ' `END`TAG<div>`END`PLN{ `END<span class="fun pln">string`END`PLN(`END<span class="var pln">$act`END`PLN/TITLE) }`END`TAG</h1>`END`PLN\n' +302 ' `END`TAG<ul>`END`PLN\n' +303 ' {\n' +304 ' `END`KWDfor`END`PLN `END<span class="var pln">$speaker`END`PLN `END`KWDin`END`PLN `END<span class="var pln">$speakers`END`PLN\n' +305 ' `END`KWDreturn`END`PLN `END`TAG<li>`END`PLN{ `END<span class="var pln">$speaker`END`PLN }`END`TAG</li>`END`PLN\n' +306 ' }\n' +307 ' `END`TAG</ul>`END`PLN\n' +308 ' `END`TAG</div>`END`PLN\n' +309 '}\n' +310 '`END`TAG</body></html>`END`PLN\n' +311 '`END`COM(: -------- :)`END`PLN\n' +312 '{\n' +313 '\t`END`KWDfor`END`PLN `END<span class="var pln">$book`END`PLN `END`KWDin`END`PLN `END<span class="fun pln">doc`END`PLN(`END`STR"books.xml"`END`PLN)//book\n' +314 ' `END`KWDreturn`END`PLN\n' +315 '\t`END`KWDif`END`PLN (`END<span class="fun pln">contains`END`PLN(`END<span class="var pln">$book`END`PLN/author/`END`KWDtext`END`PLN(),`END`STR"Herbert"`END`PLN) `END`KWDor`END`PLN `END<span class="fun pln">contains`END`PLN(`END<span class="var pln">$book`END`PLN/author/`END`KWDtext`END`PLN(),`END`STR"Asimov"`END`PLN))\n' +316 '\t\t`END`KWDthen`END`PLN `END<span class="var pln">$book`END`PLN\n' +317 '\t`END`KWDelse`END`PLN `END<span class="var pln">$book`END`PLN/`END`KWDtext`END`PLN()\n' +318 '\t\n' +319 '\t`END`KWDlet`END`PLN `END<span class="var pln">$let`END`PLN := `END`TAG<x>`END`STR"test"`END`TAG</x>`END`PLN\n' +320 '\t`END`KWDreturn`END`PLN `END`KWDelement`END`PLN `END`KWDelement`END`PLN {\n' +321 '\t`END`KWDattribute`END`PLN `END`KWDattribute`END`PLN { 1 },\n' +322 '\t`END`KWDelement`END`PLN test { `END`STR\'a\'`END`PLN },\n' +323 '\t`END`KWDattribute`END`PLN foo { `END`STR"bar"`END`PLN },\n' +324 '\t`END<span class="fun pln">fn:doc`END`PLN()[ foo/`END`LIT@bar`END`PLN `END`KWDeq`END`PLN `END<span class="var pln">$let`END`PLN ],\n' +325 '\t//x }\n' +326 '}\n' +327 '`END`COM(: -------- :)`END`PLN\n' +328 '`END`TAG<bib>`END`PLN\n' +329 ' {\n' +330 ' `END`KWDfor`END`PLN `END<span class="var pln">$b`END`PLN `END`KWDin`END`PLN `END<span class="fun pln">doc`END`PLN(`END`STR"http://bstore1.example.com/bib.xml"`END`PLN)/bib/book\n' +331 ' `END`KWDwhere`END`PLN `END<span class="var pln">$b`END`PLN/publisher = `END`STR"Addison-Wesley"`END`PLN `END`KWDand`END`PLN `END<span class="var pln">$b`END`PLN/`END`LIT@year`END`PLN > 1991\n' +332 ' `END`KWDreturn`END`PLN\n' +333 ' `END`TAG<book`END`PLN year=`END`STR"`END`PLN{ `END<span class="var pln">$b`END`PLN/`END`LIT@year`END`PLN }`END`STR"`END`TAG>`END`PLN\n' +334 ' { `END<span class="var pln">$b`END`PLN/title }\n' +335 ' `END`TAG</book>`END`PLN\n' +336 ' }\n' +337 '`END`TAG</bib>`END`PLN\n' +338 '`END`COM(: -------- :)`END'339 ),340 nemerle: (341 '`KWDclass`END`PLN Set `END`PUN[`END`PLN\'a`END`PUN]`END`PLN\n' +342 '`END`PUN{`END`PLN\n' +343 ' `END`KWDmutable`END`PLN storage `END`PUN:`END`PLN `END`TYPlist`END`PLN `END`PUN[`END`PLN\'a`END`PUN]`END`PLN `END`PUN=`END`PLN `END`PUN[];`END`PLN\n' +344 ' `END`KWDpublic`END`PLN Add `END`PUN(`END`PLNe `END`PUN:`END`PLN \'a`END`PUN)`END`PLN `END`PUN:`END`PLN `END`TYPvoid`END`PLN\n' +345 ' `END`PUN{`END`PLN\n' +346 ' `END`KWDwhen`END`PLN `END`PUN(!`END`PLN Contains `END`PUN(`END`PLNe`END`PUN))`END`PLN\n' +347 ' storage `END`PUN::=`END`PLN e`END`PUN;`END`PLN\n' +348 ' `END`PUN}`END`PLN\n' +349 ' `END`KWDpublic`END`PLN Contains `END`PUN(`END`PLNe `END`PUN:`END`PLN \'a`END`PUN)`END`PLN `END`PUN:`END`PLN `END`TYPbool`END`PLN\n' +350 ' `END`PUN{`END`PLN\n' +351 ' storage`END`PUN.`END`PLNContains `END`PUN(`END`PLNe`END`PUN)`END`PLN\n' +352 ' `END`PUN}`END`PLN\n' +353 '`END`PUN}`END`PLN\n' +354 ' \n' +355 '`END`KWDdef`END`PLN s1 `END`PUN=`END`PLN Set `END`PUN();`END`PLN\n' +356 's1`END`PUN.`END`PLNAdd `END`PUN(`END`LIT3`END`PUN);`END`PLN\n' +357 's1`END`PUN.`END`PLNAdd `END`PUN(`END`LIT42`END`PUN);`END`PLN\n' +358 '`END`KWDassert`END`PLN `END`PUN(`END`PLNs1`END`PUN.`END`PLNContains `END`PUN(`END`LIT3`END`PUN));`END`PLN\n' +359 '`END`COM// s1.Add ("foo"); // error here!`END`PLN\n' +360 '`END`KWDdef`END`PLN s2 `END`PUN=`END`PLN Set `END`PUN();`END`PLN\n' +361 's2`END`PUN.`END`PLNAdd `END`PUN(`END`STR"foo"`END`PUN);`END`PLN\n' +362 '`END`KWDassert`END`PLN `END`PUN(`END`PLNs2`END`PUN.`END`PLNContains `END`PUN(`END`STR"foo"`END`PUN));`END'363 ),364 latex: (365 '`COM% resume.tex`END`PLN\n' +366 '`END`COM% vim:set ft=tex spell:`END`PLN\n' +367 '`END`KWD\\documentclass`END`PUN[`END`LIT10pt`END`PLN,letterpaper`END`PUN]{`END`PLNarticle`END`PUN}`END`PLN\n' +368 '`END`KWD\\usepackage`END`PUN[`END`PLNletterpaper,margin`END`PUN=`END`LIT0.8in`END`PUN]{`END`PLNgeometry`END`PUN}`END`PLN\n' +369 '`END`KWD\\usepackage`END`PUN{`END`PLNmdwlist`END`PUN}`END`PLN\n' +370 '`END`KWD\\usepackage`END`PUN[`END`PLNT1`END`PUN]{`END`PLNfontenc`END`PUN}`END`PLN\n' +371 '`END`KWD\\usepackage`END`PUN{`END`PLNtextcomp`END`PUN}`END`PLN\n' +372 '`END`KWD\\pagestyle`END`PUN{`END`PLNempty`END`PUN}`END`PLN\n' +373 '`END`KWD\\setlength`END`PUN{`END`KWD\\tabcolsep`END`PUN}{`END`LIT0em`END`PUN}`END'374 ),375 issue144: (376 '`COM#! /bin/bash`END`PLN\n' +377 '`END`COM# toascii.sh`END`PLN\n' +378 '`END`KWDfor`END`PLN i `END`KWDin`END`PLN $`END`PUN(`END`PLNecho $`END`PUN*' +379 '`END`PLN `END`PUN|`END`PLN fold `END`PUN-`END`PLNw `END`LIT1`END`PUN);`END' +380 '`KWDdo`END`PLN\n' +381 ' printf `END`STR"%x "`END`PLN \\\'$i`END`PUN;`END`PLN\n' +382 '`END`KWDdone`END`PUN;`END`PLN\n' +383 'echo`END'384 ),385 issue145: (386 '`TAG<script`END`PLN `END`ATNtype`END`PUN=`END`ATV"text/javascript"`END`TAG>`END`PLN\n' +387 '`END`PUN<!--`END`PLN\n' +388 ' `END`KWDvar`END`PLN target `END`PUN=`END`PLN $$`END`PUN.`END`PLNcss`END`PUN(`END`STR\'backgroundImage\'`END`PUN).`END`PLNreplace`END`PUN(`END`STR/^url[\\(\\)\'"]/`END`PLNg`END`PUN,`END`PLN `END`STR\'\'`END`PUN);`END`PLN\n' +389 '\n' +390 ' `END`COM// nice long chain: wrap img element in span`END`PLN\n' +391 ' $$`END`PUN.`END`PLNwrap`END`PUN(`END`STR\'<span style="position: relative;"></span>\'`END`PUN)`END`PLN\n' +392 '`END`PUN-->`END`PLN\n' +393 '`END`TAG</script>`END'394 ),395 clojure: (396 '`COM; Clojure test comment`END`PLN\n' +397 '`END`OPN(`END`KWDns`END`PLN test\n' +398 ' `END`OPN(`END`TYP:gen-class`END`CLO))`END`PLN\n' +399 '\n' +400 '`END`OPN(`END`KWDdef`END`PLN foo `END`STR"bar"`END`CLO)`END`PLN\n' +401 '`END`OPN(`END`KWDdefn`END`PLN bar `END`OPN[`END`PLNarg1 arg2 & args`END`CLO]`END`PLN\n' +402 ' `END`STR"sample function"`END`PLN\n' +403 ' `END`OPN(`END`KWDfor`END`PLN `END`OPN[`END`PLNarg args`END`CLO]`END`PLN\n' +404 ' `END`OPN(`END`KWDprn`END`PLN arg`END`CLO)))`END`PLN\n' +405 '\n' +406 '`END`OPN(`END`PLNbar `END`STR"foo"`END`PLN `END`STR"bar"`END`PLN `END`STR"blah"`END`PLN `END`TYP:baz`END`CLO)`END'407 ),408 html5conv1: '`COM; foo`END',409 html5conv2: '<code class="language-lisp">`COM; foo`END</code>',410 html5conv3: (411 '<code class="language-lisp">`PLN\n' +412 '`END`COM; foo`END`PLN\n' +413 '`END</code>\n'414 ),415 html5conv4: (416 '`PLNbefore CODE\n' +417 '`END<code class="language-lisp">`PUN;`END`PLN foo`END</code>\n'418 ),419 procinstr1: '`COM; foo`END',420 procinstr2: '<ol class="linenums"><li class="L3" value="4">`COM; foo`END</li></ol>',421 procinstr3: '<ol class="linenums"><li class="L0">`COM; foo`END</li></ol>',422 procinstr4: '`COM; foo`END',423 issue185: '`STR"No tag backs."`END',424 issue261: '<ol class="linenums"><li class="L0">`STR"No tag backs."`END</li></ol>',425 issue201: (426 '`KWDstatic`END`PLN `END`TYPPersistent`END' +427 '`PUN<`END`TYPString`END`PUN>`END`PLN listeners_symbol`END`PUN;`END'428 ),429 dart: (430 '`KWDpart of`END`PLN myLib`END`PUN;`END`PLN\n' +431 '\n' +432 '`END`KWDpart`END`PLN `END`STR\'something.dart\'`END`PUN;`END`PLN\n' +433 '\n' +434 '`END`KWDimport`END`PLN `END`STR\'dart:math\'`END`PLN `END' +435 '`KWDas`END`PLN test `END`KWDshow`END`PLN foo`END`PUN,`END`PLN bar`END`PUN;`END' +436 '`PLN\n' +437 '\n' +438 '`END`KWDclass`END`PLN `END`TYPPoint`END`PLN `END`PUN{`END`PLN\n' +439 ' `END`KWDfinal`END`PLN `END`TYPnum`END`PLN x`END`PUN,`END`PLN y`END`PUN;`END`PLN\n' +440 '\n' +441 ' `END`TYPPoint`END`PUN(`END`KWDthis`END`PUN.`END`PLNx`END' +442 '`PUN,`END`PLN `END`KWDthis`END`PUN.`END`PLNy`END`PUN);`END`PLN\n' +443 ' `END`TYPPoint`END`PUN.`END`PLNzero`END`PUN()`END`PLN `END' +444 '`PUN:`END`PLN x `END`PUN=`END`PLN `END`LIT0`END`PUN,`END' +445 '`PLN y `END`PUN=`END`PLN `END`LIT0`END`PUN;`END`PLN `END' +446 '`COM// Named constructor`END`PLN\n' +447 ' `END' +448 '`COM// with an initializer list.`END`PLN\n' +449 '\n' +450 ' `END`TYPnum`END`PLN distanceTo`END`PUN(`END`TYPPoint`END`PLN other`END' +451 '`PUN)`END`PLN `END`PUN{`END`PLN\n' +452 ' `END`KWDvar`END`PLN dx `END`PUN=`END`PLN x `END`PUN-`END' +453 '`PLN other`END`PUN.`END`PLNx`END`PUN;`END`PLN\n' +454 ' `END`KWDvar`END`PLN dy `END`PUN=`END`PLN y `END`PUN-`END' +455 '`PLN other`END`PUN.`END`PLNy`END`PUN;`END`PLN\n' +456 ' `END`KWDreturn`END`PLN sqrt`END`PUN(`END`PLNdx `END`PUN*`END' +457 '`PLN dx `END`PUN+`END`PLN dy `END`PUN*`END`PLN dy`END`PUN);`END' +458 '`PLN\n' +459 ' `END`PUN}`END`PLN\n' +460 '`END`PUN}`END`PLN\n' +461 '\n' +462 '`END`COM// This is a single-line comment.`END`PLN\n' +463 '\n' +464 '`END`COM/*\n' +465 'This is a\n' +466 'multiline comment.\n' +467 '*/`END`PLN\n' +468 '\n' +469 'main`END`PUN()`END`PLN `END`PUN{`END`PLN\n' +470 ' `END`TYPPoint`END`PLN p `END`PUN=`END`PLN `END`KWDnew`END' +471 '`PLN `END`TYPPoint`END`PUN(`END`LIT7`END`PUN,`END`PLN `END' +472 '`LIT12`END`PUN);`END`PLN\n' +473 ' `END`TYPString`END`PLN thing `END`PUN=`END`PLN `END' +474 '`STR\'It\\\'s awesome!\'`END`PUN;`END`PLN\n' +475 ' `END`TYPString`END`PLN thing2 `END`PUN=`END`PLN `END' +476 '`STR\'\'\'\n' +477 'This is a test! \\\'\'\'\n' +478 'This is the end of the test\'\'\'`END`PUN;`END`PLN\n' +479 ' `END`TYPString`END`PLN thing3 `END`PUN=`END`PLN `END' +480 '`STRr\"\"\"\n' +481 'This is a raw\n' +482 'multiline string!\"\"\"`END`PUN;`END`PLN\n' +483 ' `END`TYPnum`END`PLN x `END`PUN=`END`PLN `END`LIT0x123ABC`END`PUN;`END`PLN\n' +484 ' `END`TYPnum`END`PLN y `END`PUN=`END`PLN `END`LIT1.8e-12`END`PUN;`END`PLN\n' +485 ' `END`TYPbool`END`PLN flag `END`PUN=`END`PLN `END`KWDfalse`END' +486 '`PUN;`END`PLN\n' +487 ' `END`TYPString`END`PLN raw `END`PUN=`END`PLN `END' +488 '`STRr\"This is a raw string, where \\n doesn\'t matter\"`END' +489 '`PUN;`END`PLN\n' +490 '`END`PUN}`END'491 ),492 tcl_lang: (493 '`COM#!/bin/tclsh`END`PLN\n' +494 '`END`KWDproc`END`PLN fib `END`OPN{`END`PLNn`END`CLO}`END`PLN `END`OPN{`END`PLN\n' +495 ' `END`KWDset`END`PLN a `END`LIT0`END`PLN\n' +496 ' `END`KWDset`END`PLN b `END`LIT1`END`PLN\n' +497 ' `END`KWDwhile`END`PLN `END`OPN{`END`PUN$`END`PLNn `END`PUN>`END`PLN `END`LIT0`END`CLO}`END`PLN `END`OPN{`END`PLN\n' +498 ' `END`KWDset`END`PLN tmp `END`PUN$`END`PLNa\n' +499 ' `END`KWDset`END`PLN a `END`PUN[`END`KWDexpr`END`PLN `END`PUN$`END`PLNa `END`PUN+`END`PLN `END`PUN$`END`PLNb`END`PUN]`END`PLN\n' +500 ' `END`KWDset`END`PLN b `END`PUN$`END`PLNtmp\n' +501 ' `END`KWDincr`END`PLN n `END`LIT-1`END`PLN\n' +502 ' `END`CLO}`END`PLN\n' +503 ' `END`KWDreturn`END`PLN `END`PUN$`END`PLNa\n' +504 '`END`CLO}`END'505 ),506 r_lang: (507 '`COM### Example R script for syntax highlighting`END`PLN\n' +508 '\n' +509 '`END`COM# This is a comment`END`PLN\n' +510 '\n' +511 '`END`COM## Valid names`END`PLN\n' +512 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV0123456789._a `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +513 '.foo_ `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +514 '._foo `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +515 '\n' +516 '`END`COM## Invalid names`END`PLN\n' +517 '`END`LIT0`END`PLNabc `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +518 '`END`LIT.0`END`PLNabc `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +519 'abc`END`PUN+`END`PLNcde `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +520 '\n' +521 '`END`COM## Reserved Words`END`PLN\n' +522 '`END`LITNA`END`PLN\n' +523 '`END`LITNA_integer_`END`PLN\n' +524 '`END`LITNA_real_`END`PLN\n' +525 '`END`LITNA_character_`END`PLN\n' +526 '`END`LITNA_complex_`END`PLN\n' +527 '`END`LITNULL`END`PLN\n' +528 '`END`LITNaN`END`PLN\n' +529 '`END`LITInf`END`PLN\n' +530 '`END`COM## Not reserved`END`PLN\n' +531 'NULLa `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +532 'NULL1 `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +533 'NULL. `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +534 'NA_foo_ `END`PUN<-`END`PLN `END`LITNULL`END`PLN\n' +535 '\n' +536 '`END`COM## Numbers`END`PLN\n' +537 '`END`LIT12345678901`END`PLN\n' +538 '`END`LIT123456.78901`END`PLN\n' +539 '`END`LIT123e3`END`PLN\n' +540 '`END`LIT123E3`END`PLN\n' +541 '`END`LIT1.23e-3`END`PLN\n' +542 '`END`LIT1.23e3`END`PLN\n' +543 '`END`LIT1.23e-3`END`PLN\n' +544 '`END`COM## integer constants`END`PLN\n' +545 '`END`LIT123L`END`PLN\n' +546 '`END`LIT1.23L`END`PLN\n' +547 '`END`COM## imaginary numbers`END`PLN\n' +548 '`END`LIT123i`END`PLN\n' +549 '`END`LIT-123i`END`PLN\n' +550 '`END`LIT123e4i`END`PLN\n' +551 '`END`LIT123e-4i`END`PLN\n' +552 '`END`COM## Hex numbers`END`PLN\n' +553 '`END`LIT0xabcdefABCDEF01234`END`PLN\n' +554 '`END`LIT0xabcp123`END`PLN\n' +555 '`END`LIT0xabcP123`END`PLN\n' +556 '`END`COM## Not hex`END`PLN\n' +557 '`END`LIT0`END`PLNxg\n' +558 '\n' +559 '`END`COM## Special operators %xyz%`END`PLN\n' +560 '`END`COM## %xyz%`END`PLN\n' +561 '`END`LIT1`END`PLN `END`PUN%%`END`PLN `END`LIT2`END`PLN\n' +562 'diag`END`PUN(`END`LIT2`END`PUN)`END`PLN `END`PUN%*%`END`PLN diag`END`PUN(`END`LIT2`END`PUN)`END`PLN\n' +563 '`END`LIT1`END`PLN `END`PUN%/%`END`PLN `END`LIT2`END`PLN\n' +564 '`END`LIT1`END`PLN `END`PUN%in%`END`PLN `END`LIT1`END`PUN:`END`LIT10`END`PLN\n' +565 'diag`END`PUN(`END`LIT2`END`PUN)`END`PLN `END`PUN%o%`END`PLN diag`END`PUN(`END`LIT2`END`PUN)`END`PLN\n' +566 'diag`END`PUN(`END`LIT2`END`PUN)`END`PLN `END`PUN%x%`END`PLN diag`END`PUN(`END`LIT2`END`PUN)`END`PLN\n' +567 '`END`STR`%foo bar%``END`PLN `END`PUN<-`END`PLN `END`KWDfunction`END`PUN(`END`PLNx`END`PUN,`END`PLN y`END`PUN)`END`PLN x `END`PUN+`END`PLN y\n' +568 '`END`LIT1`END`PLN `END`PUN%foo bar%`END`PLN `END`LIT2`END`PLN\n' +569 '\n' +570 '`END`COM## Control Structures (3.2) and Function`END`PLN\n' +571 '`END`COM## if, else`END`PLN\n' +572 '`END`KWDif`END`PLN `END`PUN(`END`LITTRUE`END`PUN)`END`PLN print`END`PUN(`END`STR"foo"`END`PUN)`END`PLN `END`KWDelse`END`PLN print`END`PUN(`END`STR"bar"`END`PUN)`END`PLN\n' +573 '`END`COM## For, in`END`PLN\n' +574 '`END`KWDfor`END`PUN(`END`PLNi `END`KWDin`END`PLN `END`LIT1`END`PUN:`END`LIT5`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +575 ' print`END`PUN(`END`PLNi`END`PUN)`END`PLN\n' +576 '`END`PUN}`END`PLN\n' +577 '`END`COM## While, break`END`PLN\n' +578 'i `END`PUN<-`END`PLN `END`LIT1`END`PLN\n' +579 '`END`KWDwhile`END`PLN `END`PUN(`END`LITTRUE`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +580 ' i `END`PUN<-`END`PLN i `END`PUN+`END`PLN `END`LIT1`END`PLN\n' +581 ' `END`KWDif`END`PLN `END`PUN(`END`PLNi `END`PUN>`END`PLN `END`LIT3`END`PUN)`END`PLN `END`KWDbreak`END`PLN\n' +582 '`END`PUN}`END`PLN\n' +583 '`END`COM## Repeat`END`PLN\n' +584 '`END`KWDrepeat`END`PLN `END`PUN{`END`LIT1+1`END`PUN}`END`PLN\n' +585 '`END`COM## Switch`END`PLN\n' +586 'x `END`PUN<-`END`PLN `END`LIT3`END`PLN\n' +587 '`END`KWDswitch`END`PUN(`END`PLNx`END`PUN,`END`PLN `END`LIT2+2`END`PUN,`END`PLN mean`END`PUN(`END`LIT1`END`PUN:`END`LIT10`END`PUN),`END`PLN rnorm`END`PUN(`END`LIT5`END`PUN))`END`PLN\n' +588 '`END`COM## Function, dot-dot-dot, return`END`PLN\n' +589 'foo `END`PUN<-`END`PLN `END`KWDfunction`END`PUN(`END`LIT...`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +590 ' `END`KWDreturn`END`PUN(`END`PLNsum`END`PUN(`END`LIT...`END`PUN))`END`PLN\n' +591 '`END`PUN}`END`PLN\n' +592 '`END`COM# Not keywords`END`PLN\n' +593 'functiona `END`PUN<-`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +594 'function. `END`PUN<-`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +595 'function1 `END`PUN<-`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +596 '\n' +597 '\n' +598 '`END`COM## Grouping Tokens 10.3.7`END`PLN\n' +599 '`END`COM## Parentheses`END`PLN\n' +600 '`END`LIT1`END`PLN `END`PUN+`END`PLN `END`PUN(`END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT3`END`PUN)`END`PLN\n' +601 '`END`COM## brackets`END`PLN\n' +602 'foo `END`PUN<-`END`PLN `END`KWDfunction`END`PUN(`END`PLNa`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +603 ' a `END`PUN+`END`PLN `END`LIT1`END`PLN\n' +604 '`END`PUN}`END`PLN\n' +605 '\n' +606 '`END`COM## Indexing 10.3.8`END`PLN\n' +607 '`END`COM## []`END`PLN\n' +608 'bar `END`PUN<-`END`PLN `END`LIT1`END`PUN:`END`LIT10`END`PLN\n' +609 'bar`END`PUN[`END`LIT3`END`PUN]`END`PLN\n' +610 '`END`COM## [[]]`END`PLN\n' +611 'foo `END`PUN<-`END`PLN list`END`PUN(`END`PLNa`END`PUN=`END`LIT1`END`PUN,`END`PLN b`END`PUN=`END`LIT2`END`PUN,`END`PLN c`END`PUN=`END`LIT3`END`PUN)`END`PLN\n' +612 'foo`END`PUN[[`END`STR"a"`END`PUN]]`END`PLN\n' +613 '`END`COM## $`END`PLN\n' +614 'foo`END`PUN$`END`PLNa\n' +615 'foo`END`PUN$`END`STR"a"`END`PLN\n' +616 '\n' +617 '`END`COM## Operators`END`PLN\n' +618 '`END`LIT2`END`PLN `END`PUN-`END`PLN `END`LIT2`END`PLN\n' +619 '`END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +620 '`END`LIT2`END`PLN `END`PUN~`END`PLN `END`LIT2`END`PLN\n' +621 '`END`PUN!`END`PLN `END`LITTRUE`END`PLN\n' +622 '`END`PUN?`END`STR"help"`END`PLN\n' +623 '`END`LIT1`END`PUN:`END`LIT2`END`PLN\n' +624 '`END`LIT2`END`PLN `END`PUN*`END`PLN `END`LIT2`END`PLN\n' +625 '`END`LIT2`END`PLN `END`PUN/`END`PLN `END`LIT2`END`PLN\n' +626 '`END`LIT2`END`PUN^`END`LIT2`END`PLN\n' +627 '`END`LIT2`END`PLN `END`PUN<`END`PLN `END`LIT2`END`PLN\n' +628 '`END`LIT2`END`PLN `END`PUN>`END`PLN `END`LIT2`END`PLN\n' +629 '`END`LIT2`END`PLN `END`PUN==`END`PLN `END`LIT2`END`PLN\n' +630 '`END`LIT2`END`PLN `END`PUN>=`END`PLN `END`LIT2`END`PLN\n' +631 '`END`LIT2`END`PLN `END`PUN<=`END`PLN `END`LIT2`END`PLN\n' +632 '`END`LIT2`END`PLN `END`PUN!=`END`PLN `END`LIT2`END`PLN\n' +633 '`END`LITTRUE`END`PLN `END`PUN&`END`PLN `END`LITFALSE`END`PLN\n' +634 '`END`LITTRUE`END`PLN `END`PUN&&`END`PLN `END`LITFALSE`END`PLN\n' +635 '`END`LITTRUE`END`PLN `END`PUN|`END`PLN `END`LITFALSE`END`PLN\n' +636 '`END`LITTRUE`END`PLN `END`PUN||`END`PLN `END`LITFALSE`END`PLN\n' +637 'foo `END`PUN<-`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +638 'foo `END`PUN=`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +639 '`END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN `END`PUN->`END`PLN foo\n' +640 'foo `END`PUN<<-`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN\n' +641 '`END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END`PLN `END`PUN->>`END`PLN foo\n' +642 'base`END`PUN:::`END`PLNsum\n' +643 'base`END`PUN::`END`PLNsum\n' +644 '\n' +645 '`END`COM## Strings`END`PLN\n' +646 'foo `END`PUN<-`END`PLN `END`STR"hello, world!"`END`PLN\n' +647 'foo `END`PUN<-`END`PLN `END`STR\'hello, world!\'`END`PLN\n' +648 'foo `END`PUN<-`END`PLN `END`STR"Hello, \'world!"`END`PLN\n' +649 'foo `END`PUN<-`END`PLN `END`STR\'Hello, "world!\'`END`PLN\n' +650 'foo `END`PUN<-`END`PLN `END`STR\'Hello, \\\'world!\\\'\'`END`PLN\n' +651 'foo `END`PUN<-`END`PLN `END`STR"Hello, \\"world!\\""`END`PLN\n' +652 'foo `END`PUN<-`END`PLN `END`STR"Hello,\n' +653 'world!"`END`PLN\n' +654 'foo `END`PUN<-`END`PLN `END`STR\'Hello,\n' +655 'world!\'`END`PLN\n' +656 '\n' +657 '`END`COM## Backtick strings`END`PLN\n' +658 '`END`STR`foo123 +!"bar\'baz``END`PLN `END`PUN<-`END`PLN `END`LIT2`END`PLN `END`PUN+`END`PLN `END`LIT2`END'659 ),660 mumps: (661 '`PLNHDR `END`COM; -- prt/display header`END`PLN\n' +662 ' `END`KWDN`END`PLN `END`KWDX`END`PUN,`END`KWDI`END`PLN\n' +663 ' `END`KWDI`END`PLN `END`PUN\'`END`DEC$D`END`PUN(`END`PLNVALMHDR`END`PUN)`END`PLN `END`KWDX`END`PUN:`END`DEC$G`END`PUN(`END`PLNVALM`END`PUN(`END`STR"HDR"`END`PUN))]`END`STR""`END`PLN VALM`END`PUN(`END`STR"HDR"`END`PUN)`END`PLN\n' +664 ' `END`COM; -- prt hdr line`END`PLN\n' +665 ' `END`KWDW`END`PUN:\'`END`DEC$D`END`PUN(`END`PLNVALMPG1`END`PUN)`END`PLN `END`PUN@`END`PLNIOF `END`KWDK`END`PLN VALMPG1\n' +666 ' `END`KWDW`END`PUN:`END`PLNVALMCC `END`DEC$C`END`PUN(`END`LIT13`END`PUN)_`END`PLNIOUON`END`PUN_`END`DEC$C`END`PUN(`END`LIT13`END`PUN)_`END`PLNIOINHI`END`PUN_`END`DEC$C`END`PUN(`END`LIT13`END`PUN)`END`PLN `END`COM; -- turn on undln/hi`END`PLN\n' +667 ' `END`KWDI`END`PLN `END`DEC$E`END`PUN(`END`PLNIOST`END`PUN,`END`LIT1`END`PUN,`END`LIT2`END`PUN)=`END`STR"C-"`END`PLN `END`KWDD`END`PLN IOXY^VALM4`END`PUN(`END`LIT0`END`PUN,`END`LIT0`END`PUN)`END`PLN `END`COM; -- position cursor`END`PLN\n' +668 ' `END`KWDW`END`PLN `END`DEC$E`END`PUN(`END`PLNVALM`END`PUN(`END`STR"TITLE"`END`PUN),`END`LIT1`END`PUN,`END`LIT30`END`PUN)`END`PLN `END`COM; -- prt title`END`PLN\n' +669 ' `END`KWDW`END`PUN:`END`PLNVALMCC IOINORM`END`PUN,`END`PLNIOUON `END`COM; -- turn off hi`END`PLN\n' +670 ' `END`KWDW`END`PLN `END`DEC$J`END`PUN(`END`STR""`END`PUN,`END`LIT30`END`PUN-`END`DEC$L`END`PUN(`END`PLNVALM`END`PUN(`END`STR"TITLE"`END`PUN)))`END`PLN `END`COM; -- fill in w/blanks`END`PLN\n' +671 ' `END`KWDI`END`PLN `END`DEC$E`END`PUN(`END`PLNIOST`END`PUN,`END`LIT1`END`PUN,`END`LIT2`END`PUN)=`END`STR"C-"`END`PLN `END`KWDW`END`PLN `END`DEC$C`END`PUN(`END`LIT13`END`PUN)`END`PLN `END`KWDD`END`PLN IOXY^VALM4`END`PUN(`END`LIT30`END`PUN,`END`LIT0`END`PUN)`END`PLN `END`COM; -- position cursor`END`PLN\n' +672 ' `END`KWDW`END`PLN `END`DEC$J`END`PUN(`END`STR""`END`PUN,((`END`PLNVALMWD`END`LIT-80`END`PUN)/`END`LIT2`END`PUN)),`END`PLN$$HTE^XLFDT`END`PUN(`END`DEC$H`END`PUN,`END`LIT1`END`PUN),`END`DEC$J`END`PUN(`END`STR""`END`PUN,`END`LIT10`END`PUN+((`END`PLNVALMWD`END`LIT-80`END`PUN)/`END`LIT2`END`PUN)),`END`STR"Page: "`END`PUN,`END`DEC$J`END`PUN(`END`PLNVALMPGE`END`PUN,`END`LIT4`END`PUN),`END`STR" of "`END`PUN,`END`DEC$J`END`PUN(`END`PLN$$PAGE^VALM4`END`PUN(`END`PLNVALMCNT`END`PUN,`END`PLNVALM`END`PUN(`END`STR"LINES"`END`PUN)),`END`LIT4`END`PUN)_`END`DEC$S`END`PUN(`END`DEC$D`END`PUN(`END`PLNVALMORE`END`PUN):`END`STR"+"`END`PUN,`END`LIT1`END`PUN:`END`STR" "`END`PUN)`END`PLN `END`COM; -- prt rest of hdr`END`PLN\n' +673 ' `END`KWDW`END`PUN:`END`PLNVALMCC IOUOFF `END`KWDI`END`PLN `END`DEC$E`END`PUN(`END`PLNIOST`END`PUN,`END`LIT1`END`PUN,`END`LIT2`END`PUN)=`END`STR"C-"`END`PLN `END`KWDD`END`PLN IOXY^VALM4`END`PUN(`END`LIT0`END`PUN,`END`LIT0`END`PUN)`END`PLN `END`COM; -- turn off undln`END`PLN\n' +674 ' `END`KWDF`END`PLN `END`KWDI`END`PUN=`END`LIT1`END`PUN:`END`LIT1`END`PUN:`END`PLNVALM`END`PUN(`END`STR"TM"`END`PUN)`END`LIT-3`END`PLN `END`KWDW`END`PLN `END`PUN!,`END`DEC$S`END`PUN(\'`END`DEC$D`END`PUN(`END`PLNVALMHDR`END`PUN(`END`KWDI`END`PUN)):`END`STR""`END`PUN,`END`DEC$L`END`PUN(`END`PLNVALMHDR`END`PUN(`END`KWDI`END`PUN))>(`END`PLNVALMWD`END`LIT-1`END`PUN):`END`PLN$`END`DEC$EXTRACT`END`PLN^VALM4`END`PUN(`END`DEC$G`END`PUN(`END`PLNVALMHDR`END`PUN(`END`KWDI`END`PUN))),`END`LIT1`END`PUN:`END`PLNVALMHDR`END`PUN(`END`KWDI`END`PUN))`END`PLN `END`COM; -- prt hdr`END`PLN\n' +675 ' `END`KWDQ`END'676 ),677 basic_lang: (678 '`LIT200`END`PLN `END`COMREM ----- method teardown`END`PLN\n' +679 '`END`LIT210`END`PLN `END`KWDPRINT`END`PLN `END`STR"green"`END`PLN\n' +680 '`END`LIT220`END`PLN `END`KWDRETURN`END`PLN\n' +681 '`END`LIT470`END`PLN `END`KWDIF`END`PLN af`END`PUN=`END`LIT0`END`PLN `END`KWDTHEN`END`PLN `END`KWDGOTO`END`PLN `END`LIT520`END`PLN\n' +682 '`END`LIT480`END`PLN `END`KWDFOR`END`PLN j`END`PUN=`END`LIT1`END`PLN `END`KWDTO`END`PLN af\n' +683 '`END`LIT500`END`PLN ac`END`PUN=`END`PLNpf`END`PUN(`END`PLNj`END`PUN)`END`PLN `END`PUN:`END`PLN me$`END`PUN=`END`PLNSTR$`END`PUN(`END`PLNj`END`PUN)+`END`STR". factor"`END`PLN `END`PUN:`END`PLN `END`KWDGOSUB`END`PLN `END`LIT100`END`PLN\n' +684 '`END`LIT510`END`PLN `END`KWDNEXT`END`PLN\n' +685 '`END`LIT530`END`PLN `END`KWDRETURN`END`PLN\n' +686 '`END`LIT1000`END`PLN `END`KWDDATA`END`PLN `END`STR"one"`END`PUN,`END`PLN `END`LIT1`END`PUN,`END`PLN `END`LIT0`END'687 ),688 pascal_lang: (689 '`COM(* some comment here *)`END`PLN\n' +690 '`END`KWDPROCEDURE`END`PLN TestCase`END`PUN.`END`PLNAssertEquals`END`PUN(`END`PLNmsg`END`PUN:`END`PLNString`END`PUN;`END`PLN expect`END`PUN,`END`PLN act`END`PUN:`END`PLNLongint`END`PUN);`END`PLN\n' +691 '`END`KWDVAR`END`PLN ex`END`PUN,`END`PLN ac`END`PUN:`END`PLNString`END`PUN;`END`PLN\n' +692 '`END`KWDBEGIN`END`PLN\n' +693 ' `END`KWDIF`END`PLN expect `END`PUN<>`END`PLN act `END`KWDTHEN`END`PLN\n' +694 ' `END`KWDBEGIN`END`PLN\n' +695 ' Str`END`PUN(`END`PLNexpect`END`PUN,`END`PLN ex`END`PUN);`END`PLN\n' +696 ' Fail`END`PUN(`END`PLNConcat`END`PUN(`END`PLNmsg`END`PUN,`END`STR\' expected \'`END`PUN,`END`PLNex`END`PUN,`END`STR\' but was \'`END`PUN,`END`PLNac`END`PUN));`END`PLN\n' +697 ' `END`KWDEND`END`PUN;`END`PLN\n' +698 '\n' +699 ' factors `END`PUN:=`END`PLN new`END`PUN(`END`PLNArrayListPtr`END`PUN,`END`PLN Init`END`PUN);`END`PLN\n' +700 '\n' +701 ' `END`KWDFOR`END`PLN candidate `END`PUN:=`END`PLN `END`LIT2`END`PLN `END`KWDTO`END`PLN i `END`KWDDO`END`PLN\n' +702 ' `END`KWDBEGIN`END`PLN\n' +703 ' `END`KWDWHILE`END`PLN i `END`KWDMOD`END`PLN candidate `END`PUN=`END`PLN `END`LIT0`END`PLN `END`KWDDO`END`PLN\n' +704 ' `END`KWDBEGIN`END`PLN\n' +705 ' factors`END`PUN^.`END`PLNAdd`END`PUN(`END`PLNcandidate`END`PUN);`END`PLN\n' +706 ' i `END`PUN:=`END`PLN i `END`KWDDIV`END`PLN candidate`END`PUN;`END`PLN\n' +707 ' `END`KWDEND`END`PUN;`END`PLN\n' +708 ' `END`KWDEND`END`PUN;`END`PLN\n' +709 '`END`KWDEND`END`PUN;`END'710 ),711 kotlin: (712 '`KWDpackage`END`PLN test`END`PUN;`END`PLN\n' +713 '\n' +714 '`END`KWDimport`END`PLN kotlin`END`PUN.`END`TYPInt`END`PLN\n' +715 '\n' +716 '`END`COM// Single line comment`END`PLN\n' +717 '`END`COM/*\n' +718 ' * Multiline\n' +719 ' * comment\n' +720 ' */`END`PLN\n' +721 '\n' +722 '`END`KWDtypealias`END`PLN `END`TYPSomeNumber`END`PLN `END`PUN=`END`PLN `END`TYPInt`END`PLN\n' +723 '\n' +724 '`END`KWDval`END`PLN number`END`PUN:`END`PLN `END`TYPLong`END`PLN `END`PUN=`END`PLN `END`LIT1_000L`END`PLN\n' +725 '`END`KWDvar`END`PLN float`END`PUN:`END`PLN `END`TYPFloat`END`PLN `END`PUN=`END`PLN `END`LIT12.34f`END`PLN\n' +726 '`END`LIT0xFF_FF`END`PLN\n' +727 '`END`LIT3.14`END`PLN\n' +728 '\n' +729 '`END`LIT314e-2`END`PLN\n' +730 '`END`LIT0.314e1`END`PLN\n' +731 '\n' +732 '`END`KWDprotected`END`PLN `END`KWDoverride`END`PLN `END`KWDfun`END`PLN ifBoolean`END`PUN(`END`PLNcondition`END`PUN:`END`PLN `END`TYPBoolean`END`PUN?`END`PLN `END`PUN=`END`PLN `END`LITnull`END`PUN)`END' +733 '`PLN `END`PUN{}`END`PLN\n' +734 '\n' +735 '`END`PUN::`END`PLNifBoolean\n' +736 '\n' +737 '`END`KWDconstructor`END`PUN()`END`PLN `END`PUN:`END`PLN `END`KWDsuper`END`PUN()`END`PLN\n' +738 '\n' +739 '`END`STR"\\\"true\\\""`END`PLN\n' +740 '`END`STR\'a\'`END`PLN\n' +741 '\n' +742 '`END`STR"""\n' +743 'aaaaaaaaaaa\n' +744 '"""`END`PLN\n' +745 '\n' +746 '`END`LITloop@`END`PLN `END`KWDfor`END`PUN()`END`PLN\n' +747 '\n' +748 '`END`KWDbreak`END`PLN `END`LIT@loop`END`PLN\n' +749 '\n' +750 '`END`KWDenum class`END`PLN `END`TYP\`true\``END`PLN\n' +751 '\n' +752 '`END`KWDdata class`END`PLN `END`TYPPerson`END`PUN(`END`KWDval`END`PLN name`END`PUN:`END`PLN `END`TYPString`END`PUN)`END`PLN\n' +753 '\n' +754 '`END`KWDenum class`END`PLN `END`TYPSize`END`PLN `END`PUN{`END`PLN\n' +755 ' BIG`END`PUN,`END`PLN MEDIUM`END`PUN,`END`PLN SMALL\n' +756 '`END`PUN}`END`PLN\n' +757 '\n' +758 '`END`KWDclass`END`PLN `END`TYPBall`END`PUN(`END`KWDval`END`PLN color`END`PUN:`END`PLN `END`TYPString`END`PUN,`END`PLN `END`KWDval`END`PLN size`END`PUN:`END`PLN `END`TYPSize`END`PUN)`END`PLN `END`PUN{`END`PLN\n' +759 ' `END`KWDcompanion object`END`PLN `END`PUN{}`END`PLN\n' +760 '\n' +761 ' `END`KWDfun`END`PLN isBig`END`PUN()`END`PLN `END`PUN=`END`PLN size `END`PUN==`END`PLN `END`TYPSize`END`PUN.`END`PLNBIG\n' +762 '\n' +763 ' `END`KWDval`END`PLN isMedium`END`PUN:`END`PLN `END`TYPBoolean`END<