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

Side by Side Diff: lib/src/prism/components/prism-inform7.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-inform7.js ('k') | lib/src/prism/components/prism-ini.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Prism.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern :/\[[^\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},commen t:/\[[^\]]+\]/,title:{pattern:/^[ \t]*(?:volume|book|part(?! of)|chapter|section |table)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:(?:\b|-)\d+(?:\.\d +)?(?:\^\d+)?\w*|\b(?:one|two|three|four|five|six|seven|eight|nine|ten|eleven|tw elve))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:applying to|are|attac king|answering|asking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|car rying|climbing|closing|conceal(?:s|ing)?|consulting|contain(?:s|ing)?|cutting|dr inking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|givi ng|going|ha(?:ve|s|ving)|hold(?:s|ing)?|impl(?:y|ies)|incorporat(?:es?|ing)|inse rting|is|jumping|kissing|listening|locking|looking|mean(?:s|ing)?|opening|provid (?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:s| ing)?|setting|showing|singing|sleeping|smelling|squeezing|switching|support(?:s| ing)?|swearing|taking|tasting|telling|thinking|throwing|touching|turning|tying|u nlock(?:s|ing)?|var(?:y|ies|ying)|waiting|waking|waving|wear(?:s|ing)?)\b(?!-)/i ,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|car ry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|unl ess|the story)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|r epeat|report|resume the story|rule for|running through|say(?:ing)?|stop the acti on|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0 },property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|conta ined|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|f ull|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock (?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full| recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-nam ed|proper-named|provided|publically-named|pushable between rooms|recurring|relat ed|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: on | off)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unm arked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible| visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern: /(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere| front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|o ther side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through| up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\ b(?:actions?|activit(?:y|ies)|actors?|animals?|backdrops?|containers?|devices?|d irections?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|o bjects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?: book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehic les?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/ },Prism.languages.inform7.string.inside.substitution.inside.rest=Prism.util.clon e(Prism.languages.inform7),Prism.languages.inform7.string.inside.substitution.in side.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"};
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-inform7.js ('k') | lib/src/prism/components/prism-ini.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698