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

Side by Side Diff: lib/src/prism/components/prism-swift.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-swift.js ('k') | lib/src/prism/components/prism-tcl.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.swift=Prism.languages.extend("clike",{keyword:/\b(as|associativi ty|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dy namic|dynamicType|else|enum|extension|fallthrough|final|for|func|get|guard|if|im port|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating |operator|optional|override|postfix|precedence|prefix|private|Protocol|public|re peat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|s uper|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willS et|__COLUMN__|__FILE__|__FUNCTION__|__LINE__)\b/,number:/\b([\d_]+(\.[\de_]+)?|0 x[a-f0-9_]+(\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,constant:/\b(nil|[A-Z_]{2,}| k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(IBOutlet|IBDesignable|IBAction|IBInspectable|cl ass_protocol|exported|noreturn|NSCopying|NSManaged|objc|UIApplicationMain|auto_c losure)\b/,builtin:/\b([A-Z]\S+|abs|advance|alignof|alignofValue|assert|contains |count|countElements|debugPrint|debugPrintln|distance|dropFirst|dropLast|dump|en umerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lazy|lexicog raphicalCompare|map|max|maxElement|min|minElement|numericCast|overlaps|partition |prefix|print|println|reduce|reflect|reverse|sizeof|sizeofValue|sort|sorted|spli t|startsWith|stride|strideof|strideofValue|suffix|swap|toDebugString|toString|tr anscode|underestimateCount|unsafeBitCast|withExtendedLifetime|withUnsafeMutableP ointer|withUnsafeMutablePointers|withUnsafePointer|withUnsafePointers|withVaList )\b/}); 1 Prism.languages.swift=Prism.languages.extend("clike",{string:{pattern:/("|')(\\( ?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,inside:{interpolati on:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/, alias:"variable"}}}}},keyword:/\b(as|associativity|break|case|catch|class|contin ue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extensi on|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|i s|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix |precedence|prefix|private|Protocol|public|repeat|required|rethrows|return|right |safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typeal ias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__| LINE__))\b/,number:/\b([\d_]+(\.[\de_]+)?|0x[a-f0-9_]+(\.[a-f0-9p_]+)?|0b[01_]+| 0o[0-7_]+)\b/i,constant:/\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(IB(? :Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Cop ying|Managed)|objc|UIApplicationMain|auto_closure)\b/,builtin:/\b([A-Z]\S+|abs|a dvance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|di stance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indic es|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?| numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Valu e)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugStri ng|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|U nsafe(?:MutablePointers?|Pointers?)|VaList))\b/}),Prism.languages.swift.string.i nside.interpolation.inside.rest=Prism.util.clone(Prism.languages.swift);
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-swift.js ('k') | lib/src/prism/components/prism-tcl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698