main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
517 bytes
|
Rev | Line | |
---|
[d24f17c] | 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 |
|
---|
| 19 | Prism.languages.gitignore = Prism.languages.ignore;
|
---|
| 20 | Prism.languages.hgignore = Prism.languages.ignore;
|
---|
| 21 | Prism.languages.npmignore = Prism.languages.ignore;
|
---|
| 22 |
|
---|
| 23 | }(Prism));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.