// This is a TextMate grammar distributed by `starry-night`. // This grammar is developed at // // and licensed `isc`. // See for more info. /** * @import {Grammar} from '@wooorm/starry-night' */ /** @type {Grammar} */ const grammar = { dependencies: ['source.pic', 'text.roff'], extensions: [], names: [], patterns: [{include: '#external'}, {include: '#main'}], repository: { box: { begin: '(\\w+)[ \\t]*(\\{)', beginCaptures: { 0: {name: 'meta.box.definition.ideal'}, 1: {name: 'entity.function.box.name.ideal'}, 2: {name: 'punctuation.definition.bracket.curly.ideal'} }, end: '\\}', endCaptures: {0: {name: 'punctuation.definition.bracket.curly.ideal'}}, patterns: [{include: '$self'}] }, comment: {begin: '/\\*', end: '\\*/', name: 'comment.block.ideal'}, external: { patterns: [ {include: 'source.pic#tags'}, { begin: "^(?=[.'][ \\t]*(?:\\w|\\\\))", end: '(?', endCaptures: {0: {name: 'punctuation.definition.bracket.angle.ideal'}} } ] }, strings: { patterns: [ { begin: "'", beginCaptures: { 0: {name: 'punctuation.definition.string.begin.ideal'} }, end: "'", endCaptures: {0: {name: 'punctuation.definition.string.end.ideal'}}, name: 'string.quoted.single.ideal' }, { begin: '"', beginCaptures: { 0: {name: 'punctuation.definition.string.begin.ideal'} }, end: '"', endCaptures: {0: {name: 'punctuation.definition.string.end.ideal'}}, name: 'string.quoted.double.ideal', patterns: [{include: '#escapes'}] } ] }, tags: { begin: '^([.\'])[ \\t]*(IS)\\b\\s*(\\\\["#].*$)?', beginCaptures: { 0: {name: 'meta.function.begin.ideal.section.macro.roff'}, 1: {name: 'punctuation.definition.macro.roff'}, 2: {name: 'entity.function.name.roff'}, 3: {patterns: [{include: 'text.roff#escapes'}]} }, contentName: 'source.embedded.ideal', end: "^([.'])[ \\t]*(IE)\\b", endCaptures: { 0: {name: 'meta.function.end.ideal.section.macro.roff'}, 1: {name: 'punctuation.definition.macro.roff'}, 2: {name: 'entity.function.name.roff'} }, patterns: [{include: '$self'}] }, variables: { begin: '\\b(var)\\b', beginCaptures: {1: {name: 'storage.type.var.ideal'}}, end: '(?=;)', patterns: [{include: '#punctuation'}] } }, scopeName: 'source.ideal' } export default grammar