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

Side by Side Diff: lib/src/prism/components/prism-diff.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: update pubspec/changelog 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
OLDNEW
(Empty)
1 Prism.languages.diff = {
2 'coord': [
3 // Match all kinds of coord lines (prefixed by "+++", "---" or " ***").
4 /^(?:\*{3}|-{3}|\+{3}).*$/m,
5 // Match "@@ ... @@" coord lines in unified diff.
6 /^@@.*@@$/m,
7 // Match coord lines in normal diff (starts with a number).
8 /^\d+.*$/m
9 ],
10
11 // Match inserted and deleted lines. Support both +/- and >/< styles.
12 'deleted': /^[-<].+$/m,
13 'inserted': /^[+>].+$/m,
14
15 // Match "different" lines (prefixed with "!") in context diff.
16 'diff': {
17 'pattern': /^!(?!!).+$/m,
18 'alias': 'important'
19 }
20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698