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

Side by Side Diff: lib/src/prism/components/prism-pascal.min.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
« no previous file with comments | « lib/src/prism/components/prism-pascal.js ('k') | lib/src/prism/components/prism-perl.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Prism.languages.pascal={comment:[/\(\*[\s\S]+?\*\)/,/\{[\s\S]+?\}/,/\/\/.*/],str ing:[/(?:'(?:''|[^'\n])*'|#[&$%]?[a-f\d]+)+/i,/\^[a-z]/i],keyword:[{pattern:/(^| (?!&)[\s\S])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|d ownto|else|end|file|for|function|goto|if|implementation|inherited|inline|interfa ce|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repe at|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:! 0},{pattern:/(^|(?!&)[\s\S])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0} ,{pattern:/(^|(?!&)[\s\S])\b(?:class|dispinterface|except|exports|finalization|f inally|initialization|inline|library|on|out|packed|property|raise|resourcestring |threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|(?!&)[\s\S])\b(?:absolute|abstra ct|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecate d|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|help er|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noretur n|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|pr otected|public|published|read|register|reintroduce|result|safecall|saveregisters |softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varar gs|virtual|write)\b/i,lookbehind:!0}],number:[/[+-]?(?:[&%]\d+|\$[a-f\d]+)/i,/([ +-]|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|[<>]{2}|[<>+\-*\/] =?|[@^=]/i,{pattern:/(^|(?!&)[\s\S])\b(?:and|as|div|exclude|in|include|is|mod|no t|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/}; 1 Prism.languages.pascal={comment:[/\(\*[\s\S]+?\*\)/,/\{[\s\S]+?\}/,/\/\/.*/],str ing:/(?:'(?:''|[^'\r\n])*'|#[&$%]?[a-f\d]+)+|\^[a-z]/i,keyword:[{pattern:/(^|[^& ])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else |end|file|for|function|goto|if|implementation|inherited|inline|interface|label|n il|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|se t|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{patter n:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^& ])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|in line|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,look behind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|br eak|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experiment al|export|external|far|far16|forward|generic|helper|implements|index|interrupt|i ochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|other wise|overload|override|pascal|platform|private|protected|public|published|read|r egister|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|st dcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehin d:!0}],number:[/[+-]?(?:[&%]\d+|\$[a-f\d]+)/i,/([+-]|\b)\d+(?:\.\d+)?(?:e[+-]?\d +)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/i,{pattern:/(^|[^ &])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:! 0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/};
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-pascal.js ('k') | lib/src/prism/components/prism-perl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698