// This is a TextMate grammar distributed by `starry-night`. // This grammar is licensed permissive. // See for more info. /** * @import {Grammar} from '@wooorm/starry-night' */ /** @type {Grammar} */ const grammar = { extensions: [], names: [], patterns: [ { begin: '(/\\*\\*)\\s*$', beginCaptures: { 1: {name: 'punctuation.definition.comment.begin.javadoc'} }, contentName: 'text.html', end: '\\*/', endCaptures: {0: {name: 'punctuation.definition.comment.end.javadoc'}}, name: 'comment.block.documentation.javadoc', patterns: [ {include: '#inline'}, { begin: '((\\@)param)', beginCaptures: { 1: {name: 'keyword.other.documentation.param.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.param.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)return)', beginCaptures: { 1: {name: 'keyword.other.documentation.return.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.return.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)throws)', beginCaptures: { 1: {name: 'keyword.other.documentation.throws.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.throws.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)exception)', beginCaptures: { 1: {name: 'keyword.other.documentation.exception.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.exception.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)author)', beginCaptures: { 1: {name: 'keyword.other.documentation.author.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.author.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)version)', beginCaptures: { 1: {name: 'keyword.other.documentation.version.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.version.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)see)', beginCaptures: { 1: {name: 'keyword.other.documentation.see.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.see.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)since)', beginCaptures: { 1: {name: 'keyword.other.documentation.since.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.since.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)serial)', beginCaptures: { 1: {name: 'keyword.other.documentation.serial.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.serial.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)serialField)', beginCaptures: { 1: {name: 'keyword.other.documentation.serialField.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.serialField.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)serialData)', beginCaptures: { 1: {name: 'keyword.other.documentation.serialData.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.serialData.javadoc', patterns: [{include: '#inline'}] }, { begin: '((\\@)deprecated)', beginCaptures: { 1: {name: 'keyword.other.documentation.deprecated.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, end: '(?=^\\s*\\*?\\s*@|\\*/)', name: 'meta.documentation.tag.deprecated.javadoc', patterns: [{include: '#inline'}] }, { captures: { 1: {name: 'keyword.other.documentation.custom.javadoc'}, 2: {name: 'punctuation.definition.keyword.javadoc'} }, match: '((\\@)\\S+)\\s' } ] } ], repository: { inline: { patterns: [ {include: '#inline-formatting'}, { match: '<(?!(a|abbr|acronym|address|area|b|bdo|big|blockquote|br|caption|cite|code|colgroup|dd|del|div|dfn|dl|dt|em|fieldset|font|h1toh6|hr|i|img|ins|kbd|li|ol|p|pre|q|samp|small|span|strong|sub|sup|table|tbody|td|tfoot|th|thread|tr|tt|u|ul)\\b[^>]*>)' }, {include: 'text.html.basic'}, { match: '((https?|s?ftp|ftps|file|smb|afp|nfs|(x-)?man|gopher|txmt)://|mailto:)[-:@a-zA-Z0-9_.,~%+/?=&#;]+(?