aboutsummaryrefslogtreecommitdiff
path: root/js/prettify/lang-basic.js
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-12 22:18:02 +0200
committerPacien TRAN-GIRARD2014-05-12 22:18:02 +0200
commitab4cae65f423ecaff16345051007c7002cba797b (patch)
tree64fda11b12ab806c18f209fed9fccc0614cd7e21 /js/prettify/lang-basic.js
parent589b7856a8127dd050ca7c66ea73245dc0b328eb (diff)
downloadio-slides-remote-ab4cae65f423ecaff16345051007c7002cba797b.tar.gz
Update prettify
Diffstat (limited to 'js/prettify/lang-basic.js')
-rw-r--r--js/prettify/lang-basic.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/prettify/lang-basic.js b/js/prettify/lang-basic.js
new file mode 100644
index 0000000..6b784d4
--- /dev/null
+++ b/js/prettify/lang-basic.js
@@ -0,0 +1,3 @@
1var a=null;
2PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun",
3/^.[^\s\w"$%.]*/,a]]),["basic","cbm"]);