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

Side by Side Diff: lib/src/prism/components/prism-autoit.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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 Prism.languages.autoit = {
2 "comment": [
3 /;.*/,
4 {
5 // The multi-line comments delimiters can actually be co mmented out with ";"
6 pattern: /(^\s*)#(?:comments-start|cs)[\s\S]*?^\s*#(?:co mments-end|ce)/m,
7 lookbehind: true
8 }
9 ],
10 "url": {
11 pattern: /(^\s*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,
12 lookbehind: true
13 },
14 "string": {
15 pattern: /(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,
16 inside: {
17 "variable": /([%$@])\w+\1/
18 }
19 },
20 "directive": {
21 pattern: /(^\s*)#\w+/m,
22 lookbehind: true,
23 alias: 'keyword'
24 },
25 "function": /\b\w+(?=\()/,
26 // Variables and macros
27 "variable": /[$@]\w+/,
28 "keyword": /\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?: If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In| Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|Whil e|With)\b/i,
29 "number": /\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,
30 "boolean": /\b(?:True|False)\b/i,
31 "operator": /<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Or|Not)\b/i,
32 "punctuation": /[\[\]().,:]/
33 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-autohotkey.js ('k') | lib/src/prism/components/prism-autoit.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698