prism-ignore.js 517 B

1234567891011121314151617181920212223
  1. (function (Prism) {
  2. Prism.languages.ignore = {
  3. // https://git-scm.com/docs/gitignore
  4. 'comment': /^#.*/m,
  5. 'entry': {
  6. pattern: /\S(?:.*(?:(?:\\ )|\S))?/,
  7. alias: 'string',
  8. inside: {
  9. 'operator': /^!|\*\*?|\?/,
  10. 'regex': {
  11. pattern: /(^|[^\\])\[[^\[\]]*\]/,
  12. lookbehind: true
  13. },
  14. 'punctuation': /\//
  15. }
  16. }
  17. };
  18. Prism.languages.gitignore = Prism.languages.ignore;
  19. Prism.languages.hgignore = Prism.languages.ignore;
  20. Prism.languages.npmignore = Prism.languages.ignore;
  21. }(Prism));