Sha256: 27137da5c964a764766bfa2895495217694ad2b1229c5d32e6366118160a98d9
Contents?: true
Size: 563 Bytes
Versions: 6
Compression:
Stored size: 563 Bytes
Contents
Prism.languages.python= { 'comment': { pattern: /(^|[^\\])#.*?(\r?\n|$)/, lookbehind: true }, 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/, 'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/, 'boolean' : /\b(True|False)\b/, 'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i, 'operator' : /[-+]|<=?|>=?|!|={1,2}|&{1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/, 'punctuation' : /[{}[\];(),.:]/ };
Version data entries
6 entries across 6 versions & 2 rubygems