Sha256: 4232fc8ef93eebd2b5f92884d548e5893e3402b8ed9afd78540ea199bf80bbce

Contents?: true

Size: 636 Bytes

Versions: 40

Compression:

Stored size: 636 Bytes

Contents

CodeMirror.defineMode("changes", function() {
  var headerSeperator = /^-+$/;
  var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)  ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;
  var simpleEmail = /^[\w+.-]+@[\w.-]+/;

  return {
    token: function(stream) {
      if (stream.sol()) {
        if (stream.match(headerSeperator)) { return 'tag'; }
        if (stream.match(headerLine)) { return 'tag'; }
      }
      if (stream.match(simpleEmail)) { return 'string'; }
      stream.next();
      return null;
    }
  };
});

CodeMirror.defineMIME("text/x-rpm-changes", "changes");

Version data entries

40 entries across 38 versions & 7 rubygems

Version Path
gump-0.1.6 server/assets/js/jquery.codemirror/mode/rpm/changes/changes.js
codemirror-rails-3.24 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
codemirror-rails-3.23 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
codemirror-rails-3.22 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
mdbe-0.1.0 public/libs/codemirror/mode/rpm/changes/changes.js
codemirror-rails-3.21 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
codemirror-rails-3.20 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
codemirror-rails-3.19 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
codemirror-rails-3.18 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
codemirror-rails-3.17 vendor/assets/javascripts/codemirror/modes/rpm-changes.js
poly-cms-0.1.2 core/admin/assets/js/vendor/codemirror/mode/rpm/changes/changes.js
poly-cms-0.1.1 core/admin/assets/js/vendor/codemirror/mode/rpm/changes/changes.js
poly-cms-0.1.0 core/admin/assets/js/vendor/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/rpm/changes/changes.js