// This is a TextMate grammar distributed by `starry-night`. // This grammar is developed at // // and licensed `mit`. // See for more info. /** * @import {Grammar} from '@wooorm/starry-night' */ /** @type {Grammar} */ const grammar = { extensions: [], names: [], patterns: [{include: '#mson-field'}, {include: '#gfm'}], repository: { gfm: { patterns: [ {match: '\\\\.', name: 'constant.character.escape.gfm'}, { begin: '(?<=^|[^\\w\\d\\*])\\*\\*\\*(?!$|\\*|\\s)', end: '(?]+)>', name: 'link' }, { captures: { 1: {name: 'punctuation.definition.begin.gfm'}, 2: {name: 'entity.gfm'}, 3: {name: 'punctuation.definition.end.gfm'}, 4: {name: 'punctuation.separator.key-value.gfm'}, 5: {name: 'markup.underline.link.gfm'} }, match: '^\\s*(\\[)([^\\]]+)(\\])\\s*(:)\\s*(\\S+)', name: 'link' }, { captures: {1: {name: 'variable.unordered.list.gfm'}}, match: '^\\s*([*+-])[ \\t]+' }, { captures: {1: {name: 'variable.ordered.list.gfm'}}, match: '^\\s*(\\d+\\.)[ \\t]+' }, { begin: '^\\s*(>)', beginCaptures: {1: {name: 'support.quote.gfm'}}, end: '^\\s*?$', name: 'comment.quote.gfm', patterns: [{include: '$self'}] }, { captures: { 1: {name: 'variable.mention.gfm'}, 2: {name: 'string.username.gfm'} }, match: '(?<=^|\\s|"|\'|\\(|\\[)(@)(\\w[-\\w:]*)(?=[\\s"\'.,;\\)\\]])' }, { captures: { 1: {name: 'variable.issue.tag.gfm'}, 2: {name: 'string.issue.number.gfm'} }, match: '(?<=^|\\s|"|\'|\\(|\\[)(#)(\\d+)(?=[\\s"\'\\.,;\\)\\]])' }, {captures: {1: {name: 'linebreak.gfm'}}, match: '( )$'}, { begin: '