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

Side by Side Diff: lib/src/prism/components/prism-fsharp.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-fsharp.js ('k') | lib/src/prism/components/prism-gherkin.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.fsharp=Prism.languages.extend("clike",{comment:[{pattern:/(^|[^\ \])\(\*[\w\W]*?\*\)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}], keyword:/\b(abstract|and|as|assert|base|begin|class|default|delegate|do|done|dow ncast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|globa l|if|in|inherit|inline|interface|internal|lazy|let|let!|match|member|module|muta ble|namespace|new|not|null|of|open|or|override|private|public|rec|return|return! |select|static|struct|then|to|true|try|type|upcast|use|use!|val|void|when|while| with|yield|yield!|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|compone nt|const|constraint|constructor|continue|eager|event|external|fixed|functor|incl ude|method|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait|vi rtual|volatile)\b/,string:/@?("""|"|')((\\|\n)?.)*?\1B?/,preprocessor:/^\s*#.*/m ,number:[/\b-?0x[\da-fA-F]+(un|lf|LF)?\b/,/\b-?0b[01]+(y|uy)?\b/,/\b-?(\d+\.|\d* \.?\d+)([fFmM]|[eE][+-]?\d+)?\b/,/\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/]}); 1 Prism.languages.fsharp=Prism.languages.extend("clike",{comment:[{pattern:/(^|[^\ \])\(\*[\w\W]*?\*\)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}], keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(abstract|and|as|assert|base|beg in|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern |false|finally|for|fun|function|global|if|in|inherit|inline|interface|internal|l azy|match|member|module|mutable|namespace|new|not|null|of|open|or|override|priva te|public|rec|select|static|struct|then|to|true|try|type|upcast|val|void|when|wh ile|with|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const| constraint|constructor|continue|eager|event|external|fixed|functor|include|metho d|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait|virtual|vol atile)\b/,string:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|("|')(?:\\\1|\\?(?!\1)[\s\S] )*\1)B?/,number:[/\b-?0x[\da-fA-F]+(un|lf|LF)?\b/,/\b-?0b[01]+(y|uy)?\b/,/\b-?(\ d*\.?\d+|\d+\.)([fFmM]|[eE][+-]?\d+)?\b/,/\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/]} ),Prism.languages.insertBefore("fsharp","keyword",{preprocessor:/^[^\r\n\S]*#.*/ m});
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-fsharp.js ('k') | lib/src/prism/components/prism-gherkin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698