You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
517 B
23 lines
517 B
(function (Prism) { |
|
Prism.languages.ignore = { |
|
// https://git-scm.com/docs/gitignore |
|
'comment': /^#.*/m, |
|
'entry': { |
|
pattern: /\S(?:.*(?:(?:\\ )|\S))?/, |
|
alias: 'string', |
|
inside: { |
|
'operator': /^!|\*\*?|\?/, |
|
'regex': { |
|
pattern: /(^|[^\\])\[[^\[\]]*\]/, |
|
lookbehind: true |
|
}, |
|
'punctuation': /\// |
|
} |
|
} |
|
}; |
|
|
|
Prism.languages.gitignore = Prism.languages.ignore; |
|
Prism.languages.hgignore = Prism.languages.ignore; |
|
Prism.languages.npmignore = Prism.languages.ignore; |
|
|
|
}(Prism));
|
|
|