diff options
Diffstat (limited to 'js/prettify/lang-basic.js')
-rw-r--r-- | js/prettify/lang-basic.js | 3 |
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 @@ | |||
1 | var a=null; | ||
2 | PR.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"]); | ||