Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: bower_components/google-code-prettify/src/lang-basic.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Contributed by peter dot kofler at code minus cop dot org
2
3 /**
4 * @fileoverview
5 * Registers a language handler for Basic.
6 *
7 * To use, include prettify.js and this file in your HTML page.
8 * Then put your code in an HTML tag like
9 * <pre class="prettyprint lang-basic">(my BASIC code)</pre>
10 *
11 * @author peter dot kofler at code minus cop dot org
12 */
13
14 PR.registerLangHandler(
15 PR.createSimpleLexer(
16 [ // shortcutStylePatterns
17 // "single-line-string"
18 [PR.PR_STRING, /^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/, null, '"'],
19 // Whitespace
20 [PR.PR_PLAIN, /^\s+/, null, ' \r\n\t\xA0']
21 ],
22 [ // fallthroughStylePatterns
23 // A line comment that starts with REM
24 [PR.PR_COMMENT, /^REM[^\r\n]*/, null],
25 [PR.PR_KEYWORD, /^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|E ND|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/, null],
26 [PR.PR_PLAIN, /^[A-Z][A-Z0-9]?(?:\$|%)?/i, null],
27 // Literals .0, 0, 0.0 0E13
28 [PR.PR_LITERAL, /^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i, nul l, '0123456789'],
29 [PR.PR_PUNCTUATION, /^.[^\s\w\.$%"]*/, null]
30 // [PR.PR_PUNCTUATION, /^[-,:;!<>=\+^\/\*]+/]
31 ]),
32 ['basic','cbm']);
OLDNEW
« no previous file with comments | « bower_components/google-code-prettify/src/lang-apollo.js ('k') | bower_components/google-code-prettify/src/lang-clj.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698