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

Side by Side Diff: lib/src/prism/components/prism-haskell.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-haskell.js ('k') | lib/src/prism/components/prism-http.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.haskell={comment:{pattern:/(^|[^-!#$%*+=\?&@|~.:<>^\\])(--[^-!#$ %*+=\?&@|~.:<>^\\].*(\r?\n|$)|{-[\w\W]*?-})/m,lookbehind:!0},"char":/'([^\\"]|\\ ([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR |SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0 -7]+|x[0-9a-fA-F]+))'/,string:/"([^\\"]|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH |STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB |CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\s+\\)*"/,keywor d:/\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|n ewtype|of|primitive|then|type|where)\b/,import_statement:{pattern:/(\n|^)\s*(imp ort)\s+(qualified\s+)?(([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*)(\s+(as)\s+ (([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*))?(\s+hiding\b)?/m,inside:{keywor d:/\b(import|qualified|as|hiding)\b/}},builtin:/\b(abs|acos|acosh|all|and|any|ap pendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|ca tch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat| denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFro m|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|fli p|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDou ble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getCo ntents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAl pha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfi nite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|las t|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|ma x|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numera tor|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction| putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readF loat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSi gned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round| scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showIn t|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significa nd|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWh ile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper| truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|wr iteFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(\d+(\.\d+)?([eE][+-]?\d+)?|0[Oo ][0-7]+|0[Xx][0-9a-fA-F]+)\b/,operator:/\s\.\s|([-!#$%*+=\?&@|~:<>^\\]*\.[-!#$%* +=\?&@|~:<>^\\]+)|([-!#$%*+=\?&@|~:<>^\\]+\.[-!#$%*+=\?&@|~:<>^\\]*)|[-!#$%*+=\? &@|~:<>^\\]+|(`([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*`)/,hvariable:/\b([A- Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*\b/,constant:/\b([A-Z][_a-zA-Z0-9']*\.)* [A-Z][_a-zA-Z0-9']*\b/,punctuation:/[{}[\];(),.:]/}; 1 Prism.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(--[^-!# $%*+=?&@|~.:<>^\\\/].*|{-[\w\W]*?-})/m,lookbehind:!0},"char":/'([^\\']|\\([abfnr tv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI| DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[ 0-9a-fA-F]+))'/,string:/"([^\\"]|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ET X|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM |SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\s+\\)*"/,keyword:/\b(c ase|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype| of|primitive|then|type|where)\b/,import_statement:{pattern:/(\r?\n|\r|^)\s*impor t\s+(qualified\s+)?([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*(\s+as\s+([A-Z][ _a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*)?(\s+hiding\b)?/m,inside:{keyword:/\b(imp ort|qualified|as|hiding)\b/}},builtin:/\b(abs|acos|acosh|all|and|any|appendFile| approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceili ng|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominat or|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFro mThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDi gits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromE num|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|ge tLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlp haNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLo wer|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|len gth|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBoun d|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|o r|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|p utStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|read Hex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|read s|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloa t|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showLis t|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum |sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|t anh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate| uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|z ip|zip3|zipWith|zipWith3)\b/,number:/\b(\d+(\.\d+)?(e[+-]?\d+)?|0o[0-7]+|0x[0-9a -f]+)\b/i,operator:/\s\.\s|[-!#$%*+=?&@|~.:<>^\\\/]*\.[-!#$%*+=?&@|~.:<>^\\\/]+| [-!#$%*+=?&@|~.:<>^\\\/]+\.[-!#$%*+=?&@|~.:<>^\\\/]*|[-!#$%*+=?&@|~:<>^\\\/]+|`( [A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*`/,hvariable:/\b([A-Z][_a-zA-Z0-9']*\ .)*[_a-z][_a-zA-Z0-9']*\b/,constant:/\b([A-Z][_a-zA-Z0-9']*\.)*[A-Z][_a-zA-Z0-9' ]*\b/,punctuation:/[{}[\];(),.:]/};
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-haskell.js ('k') | lib/src/prism/components/prism-http.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698