diff --git a/lang/go.mod.js b/lang/go.mod.js index b03446c..1bf0b0e 100644 --- a/lang/go.mod.js +++ b/lang/go.mod.js @@ -6,7 +6,14 @@ /** @type {import('../lib/index.js').Grammar} */ const grammar = { extensions: [], - names: ['go-module', 'go.mod', 'go-mod'], + names: [ + 'go-mod', + 'go-module', + 'go-work', + 'go-workspace', + 'go.mod', + 'go.work' + ], patterns: [ {include: '#comments'}, {include: '#directive'}, diff --git a/lang/go.sum.js b/lang/go.sum.js index 9001dac..f126f72 100644 --- a/lang/go.sum.js +++ b/lang/go.sum.js @@ -6,7 +6,7 @@ /** @type {import('../lib/index.js').Grammar} */ const grammar = { extensions: [], - names: ['go-checksums', 'go.sum', 'go-sum'], + names: ['go-checksums', 'go.sum', 'go-sum', 'go.work.sum', 'go-work-sum'], patterns: [ {include: '#checksum'}, {include: '#semver'}, diff --git a/lang/source.abap.js b/lang/source.abap.js index a1e672c..a7c3620 100644 --- a/lang/source.abap.js +++ b/lang/source.abap.js @@ -22,7 +22,11 @@ const grammar = { match: '(?|=>))([a-z_\\/][a-z_0-9\\/]*)(?=\\s+(?:=|\\+=|-=|\\*=|\\/=|&&=|&=)\\s+)', + name: 'variable.other.abap' + }, {match: '\\b[0-9]+(\\b|\\.|,)', name: 'constant.numeric.abap'}, { match: @@ -64,7 +68,7 @@ const grammar = { patterns: [ { match: - '(?ix)(^|\\s+)(definition|implementation|public|inheriting\\s+from|final|deferred|abstract|shared\\s+memory\\s+enabled|(global|local)*\\s*friends|(create\\s+(public|protected|private))|for\\s+testing|risk\\s+level\\s+(critical|dangerous|harmless))|duration\\s(short|medium|long)(?=\\s+|\\.)', + '(?ix)(^|\\s+)(definition|implementation|public|inheriting\\s+from|final|deferred|abstract|shared\\s+memory\\s+enabled|(global|local)*\\s*friends|(create\\s+(public|protected|private))|for\\s+behavior\\s+of|for\\s+testing|risk\\s+level\\s+(critical|dangerous|harmless))|duration\\s(short|medium|long)(?=\\s+|\\.)', name: 'storage.modifier.class.abap' }, { @@ -87,7 +91,7 @@ const grammar = { patterns: [ { match: - '(?ix)(?<=^|\\s)(BY\\s+DATABASE(\\s+PROCEDURE|\\s+FUNCTION|\\s+GRAPH\\s+WORKSPACE))(?=\\s+|\\.)', + '(?ix)(?<=^|\\s)(BY\\s+DATABASE(\\s+PROCEDURE|\\s+FUNCTION|\\s+GRAPH\\s+WORKSPACE)|BY\\s+KERNEL\\s+MODULE)(?=\\s+|\\.)', name: 'storage.modifier.method.abap' }, { @@ -131,7 +135,7 @@ const grammar = { ] }, { - begin: '(?ix)^\\s*(FORM)\\s([a-z_\\/][a-z_0-9\\/]*)', + begin: '(?ix)^\\s*(FORM)\\s([a-z_\\/][a-z_0-9\\/\\-\\?]*)', beginCaptures: { 1: {name: 'storage.type.block.abap'}, 2: {name: 'entity.name.type.abap'} @@ -139,10 +143,12 @@ const grammar = { end: '\\s*\\.\\s*\\n?', patterns: [ { - match: '(?ix)(?<=^|\\s)(USING|TABLES|CHANGING|RAISING)(?=\\s+|\\.)', + match: + '(?ix)(?<=^|\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\s+|\\.)', name: 'storage.modifier.form.abap' }, - {include: '#abaptypes'} + {include: '#abaptypes'}, + {include: '#keywords_followed_by_braces'} ] }, { @@ -159,24 +165,26 @@ const grammar = { {include: '#operators'}, {include: '#builtin_functions'}, {include: '#abaptypes'}, - {include: '#system_fields'} + {include: '#system_fields'}, + {include: '#sql_functions'}, + {include: '#sql_types'} ], repository: { abap_constants: { match: - '(?ix)(?<=\\s)(initial|null|space|abap_true|abap_false|table_line)(?=\\s|\\.|,)', + '(?ix)(?<=\\s)(initial|null|space|abap_true|abap_false|abap_undefined|table_line|\n\t\t\t\t%_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|\n\t\t\t\tadabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=\\s|\\.|,)', name: 'constant.language.abap' }, abaptypes: { patterns: [ { match: - '(?ix)\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|c|n|i|p|f|d|t|x)(?=\\s|\\.|,)', + '(?ix)\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|c|n|i|p|f|d|t|x)(?=\\s|\\.|,)', name: 'support.type.abap' }, { match: - '(?ix)\\s(TYPE|REF|TO|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\s|\\.|,)', + '(?ix)\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\s|\\.|,)', name: 'keyword.control.simple.abap' } ] @@ -198,7 +206,7 @@ const grammar = { }, control_keywords: { match: - '(?ix)(^|\\s)(\n\t at|case|catch|continue|do|elseif|else|endat|endcase|enddo|endif|\n\t endloop|endon|if|loop|on|raise|try)(?=\\s|\\.|:)', + '(?ix)(^|\\s)(\n\t at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|\n\t endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=\\s|\\.|:)', name: 'keyword.control.flow.abap' }, generic_names: {match: '[A-Za-z_][A-Za-z0-9_]*'}, @@ -216,7 +224,7 @@ const grammar = { 2: {name: 'variable.other.abap'} }, match: - '(?ix)\\b(data|value|field-symbol)\\((?)\\)' + '(?ix)\\b(data|value|field-symbol|final|reference|resumable)\\((?)\\)' }, logical_operator: { match: '(?i)(?<=\\s)(not|or|and)(?=\\s)', @@ -224,7 +232,7 @@ const grammar = { }, main_keywords: { match: - '(?ix)(?<=^|\\s)(\n\t abap-source|abstract|access|add|add-corresponding|adjacent|alias|aliases|all|amdp|append|appending|ascending|as|assert|assign|assigned|assigning|association|authority-check|\n\t back|badi|base|begin|between|binary|blanks|block|bound|break-point|by|by\\s+database|byte|\n\t call|calling|cast|casting|cds\\s+session|changing|check|checkbox|class-data|class-events|class-method|class-methods|class-pool|cleanup|clear|client|clients|close|cnt|collect|commit|comment|cond|character|\n\t corresponding|communication|comparing|component|components|compute|concatenate|condense|constants|conv|count|\n\t controls|convert|create|currency|current|\n\t data|database|date|ddl|decimals|default|define|deferred|delete|descending|describe|destination|detail|display|divide|divide-corresponding|display-mode|distinct|duplicates|\n\t deleting|\n\t editor-call|empty|end|endenhancement|endexec|endfunction|ending|endmodule|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|exit-command|extension|\n\t endprovide|endselect|entries|endtry|endwhile|enhancement|enhancement-point|enum|escape|event|events|excluding|exec|exit|export|\n\t exporting|extract|exception|exception-table|exceptions|\n\t field-symbols|field-groups|field|first|fetch|fields|format|frame|free|from|function|find|for|found|function-pool|\n\t generate|get|group|\n\t handle|handler|hide|hashed|header|help-request|\n\t include|import|importing|index|infotypes|initial|initialization|\n\t\tid|implemented|ignoring|is|in|inner|interface|interfaces|interface-pool|intervals|init|input|insert|instance|into|\n\t\tjoin|\n\t\tkey|keywords|\n\t language|language\\s+graph|language\\s+sql|left-justified|leave|let|like|line|lines|line-count|line-size|listbox|list-processing|load|local|log-point|length|left|leading|lower|\n\t matchcode|memory|method|mesh|message|message-id|methods|mode|modify|module|move|move-corresponding|multiply|multiply-corresponding|match|modif|\n\t\tnew|new-line|new-page|new-section|next|no|no-display|no-gap|no-gaps|no-sign|no-zero|non-unique|number|\n\t occurrence|object|obligatory|of|order|output|overlay|optional|others|occurrences|occurs|offset|options|\n\t pack|parameter|parameter-table|parameters|partially|perform|pf-status|places|position|preferred|primary|print-control|private|privileged|program|protected|provide|public|pushbutton|put|\n\t radiobutton\\s+group|raising|range|ranges|receive|receiving|redefinition|reduce|reference|refresh|regex|reject|results|requested|\n\t ref|replace|report|required|reserve|respecting|restore|result\\s+xml|result\\s+\\(|return|returning|right|right-justified|rollback|read|read-only|rp-provide-from-last|run|\n\t scan|screen|scroll|search|select|select-options|selection-screen|set|stamp|state|statements|source|subkey|\n\t seconds|selection-table|separated|set|shift|single|skip|sort|sorted|split|spots|stable|standard|stamp|starting|start-of-selection|sum|subscreen|subtract-corresponding|statics|step|stop|structure|structures|submatches|submit|subtract|summary|supplied|suppress|section|syntax-check|syntax-trace|system-call|switch|\n\t tabbed|tables|table|task|testing|test-seam|test-injection|textpool|then|time|times|title|titlebar|to|tokens|top-of-page|trailing|transaction|transfer|transformation|translate|transporting|types|type|type-pool|type-pools|\n\t unassign|unique|uline|union|unpack|until|update|upper|using|user-command|\n\t value|value-request|visible|\n\t wait|when|while|window|write|where|with|work|workspace|\n\t\txml|\n\t\tzone)(?=\\s|\\.|:|,)', + '(?ix)(?<=^|\\s)(\nabap-source|\nabstract|\naccept|\naccepting|\naccess|\naction|\nactivation|\nactual|\nadd|\nadd-corresponding|\nadjacent|\nalias|\naliases|\nalign|\nall|\nallocate|\nalpha|\namdp|\nanalysis|\nanalyzer|\nappend|\nappending|\napplication|\narchive|\narea|\narithmetic|\nas|\nascending|\nassert|\nassign|\nassigned|\nassigning|\nassociation|\nasynchronous|\nat|\nattributes|\nauthority|\nauthority-check|\nauthorization|\nauto|\nback|\nbackground|\nbackward|\nbadi|\nbase|\nbefore|\nbegin|\nbehavior|\nbetween|\nbinary|\nbit|\nblank|\nblanks|\nblock|\nblocks|\nbound|\nboundaries|\nbounds|\nboxed|\nbreak|\nbreak-point|\nbuffer|\nby|\nbypassing|\nbyte|\nbyte-order|\ncall|\ncalling|\ncast|\ncasting|\ncds|\ncenter|\ncentered|\nchange|\nchanging|\nchannels|\nchar-to-hex|\ncharacter|\ncheck|\ncheckbox|\ncid|\ncircular|\nclass|\nclass-data|\nclass-events|\nclass-method|\nclass-methods|\nclass-pool|\ncleanup|\nclear|\nclient|\nclients|\nclock|\nclone|\nclose|\ncnt|\ncode|\ncollect|\ncolor|\ncolumn|\ncomment|\ncomments|\ncommit|\ncommon|\ncommunication|\ncomparing|\ncomponent|\ncomponents|\ncompression|\ncompute|\nconcatenate|\ncond|\ncondense|\ncondition|\nconnection|\nconstant|\nconstants|\ncontext|\ncontexts|\ncontrol|\ncontrols|\nconv|\nconversion|\nconvert|\ncopy|\ncorresponding|\ncount|\ncountry|\ncover|\ncreate|\ncurrency|\ncurrent|\ncursor|\ncustomer-function|\ndata|\ndatabase|\ndatainfo|\ndataset|\ndate|\ndaylight|\nddl|\ndeallocate|\ndecimals|\ndeclarations|\ndeep|\ndefault|\ndeferred|\ndefine|\ndelete|\ndeleting|\ndemand|\ndescending|\ndescribe|\ndestination|\ndetail|\ndetermine|\ndialog|\ndid|\ndirectory|\ndiscarding|\ndisplay|\ndisplay-mode|\ndistance|\ndistinct|\ndivide|\ndivide-corresponding|\ndummy|\nduplicate|\nduplicates|\nduration|\nduring|\ndynpro|\nedit|\neditor-call|\nempty|\nenabled|\nenabling|\nencoding|\nend|\nend-enhancement-section|\nend-of-definition|\nend-of-page|\nend-of-selection|\nend-test-injection|\nend-test-seam|\nendenhancement|\nendexec|\nendfunction|\nendian|\nending|\nendmodule|\nendprovide|\nendselect|\nendwith|\nengineering|\nenhancement|\nenhancement-point|\nenhancement-section|\nenhancements|\nentities|\nentity|\nentries|\nentry|\nenum|\nenvironment|\nequiv|\nerrors|\nescape|\nescaping|\nevent|\nevents|\nexact|\nexcept|\nexception|\nexception-table|\nexceptions|\nexcluding|\nexec|\nexecute|\nexists|\nexit|\nexit-command|\nexpanding|\nexplicit|\nexponent|\nexport|\nexporting|\nextended|\nextension|\nextract|\nfail|\nfailed|\nfeatures|\nfetch|\nfield|\nfield-groups|\nfield-symbols|\nfields|\nfile|\nfill|\nfilter|\nfilters|\nfinal|\nfind|\nfirst|\nfirst-line|\nfixed-point|\nflush|\nfor|\nformat|\nforward|\nfound|\nframe|\nframes|\nfree|\nfrom|\nfull|\nfunction|\nfunction-pool|\ngenerate|\nget|\ngiving|\ngraph|\ngroup|\ngroups|\nhandle|\nhandler|\nhashed|\nhaving|\nheader|\nheaders|\nheading|\nhelp-id|\nhelp-request|\nhide|\nhint|\nhold|\nhotspot|\nicon|\nid|\nidentification|\nidentifier|\nignore|\nignoring|\nimmediately|\nimplemented|\nimplicit|\nimport|\nimporting|\nin|\ninactive|\nincl|\ninclude|\nincludes|\nincrement|\nindex|\nindex-line|\ninfotypes|\ninheriting|\ninit|\ninitial|\ninitialization|\ninner|\ninput|\ninsert|\ninstance|\ninstances|\nintensified|\ninterface|\ninterface-pool|\ninterfaces|\ninternal|\nintervals|\ninto|\ninverse|\ninverted-date|\nis|\niso|\njob|\njoin|\nkeep|\nkeeping|\nkernel|\nkey|\nkeys|\nkeywords|\nkind|\nlanguage|\nlast|\nlate|\nlayout|\nleading|\nleave|\nleft|\nleft-justified|\nleftplus|\nleftspace|\nlegacy|\nlength|\nlet|\nlevel|\nlevels|\nlike|\nline|\nline-count|\nline-selection|\nline-size|\nlinefeed|\nlines|\nlink|\nlist|\nlist-processing|\nlistbox|\nload|\nload-of-program|\nlocal|\nlocale|\nlock|\nlocks|\nlog-point|\nlogical|\nlower|\nmapped|\nmapping|\nmargin|\nmark|\nmask|\nmatch|\nmatchcode|\nmaximum|\nmembers|\nmemory|\nmesh|\nmessage|\nmessage-id|\nmessages|\nmessaging|\nmethod|\nmethods|\nmode|\nmodif|\nmodifier|\nmodify|\nmodule|\nmove|\nmove-corresponding|\nmultiply|\nmultiply-corresponding|\nname|\nnametab|\nnative|\nnested|\nnesting|\nnew|\nnew-line|\nnew-page|\nnew-section|\nnext|\nno|\nno-display|\nno-extension|\nno-gap|\nno-gaps|\nno-grouping|\nno-heading|\nno-scrolling|\nno-sign|\nno-title|\nno-zero|\nnodes|\nnon-unicode|\nnon-unique|\nnumber|\nobject|\nobjects|\nobjmgr|\nobligatory|\noccurence|\noccurences|\noccurrence|\noccurrences|\noccurs|\nof|\noffset|\non|\nonly|\nopen|\noptional|\noption|\noptions|\norder|\nothers|\nout|\nouter|\noutput|\noutput-length|\noverflow|\noverlay|\npack|\npackage|\npad|\npadding|\npage|\nparameter|\nparameter-table|\nparameters|\npart|\npartially|\npcre|\nperform|\nperforming|\npermissions|\npf-status|\nplaces|\npool|\nposition|\npragmas|\nprecompiled|\npreferred|\npreserving|\nprimary|\nprint|\nprint-control|\nprivate|\nprivileged|\nprocedure|\nprogram|\nproperty|\nprotected|\nprovide|\npush|\npushbutton|\nput|\nquery|\nqueue-only|\nqueueonly|\nquickinfo|\nradiobutton|\nraising|\nrange|\nranges|\nread|\nread-only|\nreceive|\nreceived|\nreceiving|\nredefinition|\nreduce|\nref|\nreference|\nrefresh|\nregex|\nreject|\nrenaming|\nreplace|\nreplacement|\nreplacing|\nreport|\nreported|\nrequest|\nrequested|\nrequired|\nreserve|\nreset|\nresolution|\nrespecting|\nresponse|\nrestore|\nresult|\nresults|\nresumable|\nresume|\nretry|\nreturn|\nreturning|\nright|\nright-justified|\nrightplus|\nrightspace|\nrollback|\nrows|\nrp-provide-from-last|\nrun|\nsap|\nsap-spool|\nsave|\nsaving|\nscale_preserving|\nscale_preserving_scientific|\nscan|\nscientific|\nscientific_with_leading_zero|\nscreen|\nscroll|\nscroll-boundary|\nscrolling|\nsearch|\nseconds|\nsection|\nselect|\nselect-options|\nselection|\nselection-screen|\nselection-set|\nselection-sets|\nselection-table|\nselections|\nsend|\nseparate|\nseparated|\nsession|\nset|\nshared|\nshift|\nshortdump|\nshortdump-id|\nsign|\nsign_as_postfix|\nsimple|\nsimulation|\nsingle|\nsize|\nskip|\nskipping|\nsmart|\nsome|\nsort|\nsortable|\nsorted|\nsource|\nspecified|\nsplit|\nspool|\nspots|\nsql|\nstable|\nstamp|\nstandard|\nstart-of-selection|\nstarting|\nstate|\nstatement|\nstatements|\nstatic|\nstatics|\nstatusinfo|\nstep|\nstep-loop|\nstop|\nstructure|\nstructures|\nstyle|\nsubkey|\nsubmatches|\nsubmit|\nsubroutine|\nsubscreen|\nsubstring|\nsubtract|\nsubtract-corresponding|\nsuffix|\nsum|\nsummary|\nsupplied|\nsupply|\nsuppress|\nswitch|\nsymbol|\nsyntax-check|\nsyntax-trace|\nsystem-call|\nsystem-exceptions|\ntab|\ntabbed|\ntable|\ntables|\ntableview|\ntabstrip|\ntarget|\ntask|\ntasks|\ntest|\ntest-injection|\ntest-seam|\ntesting|\ntext|\ntextpool|\nthen|\nthrow|\ntime|\ntimes|\ntimestamp|\ntimezone|\ntitle|\ntitlebar|\nto|\ntokens|\ntop-lines|\ntop-of-page|\ntrace-file|\ntrace-table|\ntrailing|\ntransaction|\ntransfer|\ntransformation|\ntranslate|\ntransporting|\ntrmac|\ntruncate|\ntruncation|\ntype|\ntype-pool|\ntype-pools|\ntypes|\nuline|\nunassign|\nunder|\nunicode|\nunion|\nunique|\nunit|\nunix|\nunpack|\nuntil|\nunwind|\nup|\nupdate|\nupper|\nuser|\nuser-command|\nusing|\nutf-8|\nuuid|\nvalid|\nvalidate|\nvalue|\nvalue-request|\nvalues|\nvary|\nvarying|\nversion|\nvia|\nvisible|\nwait|\nwhen|\nwhere|\nwidth|\nwindow|\nwindows|\nwith|\nwith-heading|\nwith-title|\nwithout|\nword|\nwork|\nworkspace|\nwrite|\nxml|\nxsd|\nyes|\nzero|\nzone\n\t\t \t)(?=\\s|\\.|:|,)', name: 'keyword.control.simple.abap' }, operators: { @@ -236,13 +244,23 @@ const grammar = { ] }, other_operator: { - match: '(?<=\\s)(&&|\\?=|\\+=|-=|\\/=|\\*=|&&=)(?=\\s)', + match: '(?<=\\s)(&&|&|\\?=|\\+=|-=|\\/=|\\*=|&&=|&=)(?=\\s)', name: 'keyword.control.simple.abap' }, reserved_names: { match: '(?ix)(?<=\\s)(me|super)(?=\\s|\\.|,|->)', name: 'constant.language.abap' }, + sql_functions: { + match: + '(?ix)(?<=\\s)(abs|ceil|div|division|floor|mod|round|concat|concat_with_space|instr|left|length|like_regexpr|lower|lpad|ltrim|occurrences_regexpr|replace|replace_regexpr|rigth|rpad|rtrim|substring|upper|coalesce|uuid|bintohex|hextobin|to_clob|to_blob|currency_conversion|datn_days_between|datn_add_days|datn_add_months|dats_is_valid|dats_days_between|dats_add_days|dats_add_months|tims_is_valid|utcl_current|utcl_add_seconds|utcl_seconds_between|tstmp_is_valid|tstmp_current_utctimestamp|tstmp_seconds_between|tstmp_add_seconds|abap_system_timezone|abap_user_timezone|tstmp_to_dats|tstmp_to_tims|tstmp_to_dst|dats_tims_to_tstmp|tstmpl_to_utcl|tstmpl_from_utcl|dats_to_datn|dats_from_datn|tims_to_timn|tims_from_timn|avg|median|max|min|sum|product|stddev|var|corr|corr_spearman|string_agg|count|grouping|allow_precision_loss|over|cast)(?=\\()', + name: 'entity.name.function.sql.abap' + }, + sql_types: { + match: + '(?ix)(?<=\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=\\s|\\(|\\))', + name: 'entity.name.type.sql.abap' + }, system_fields: { captures: { 1: {name: 'variable.language.abap'}, diff --git a/lang/source.abl.js b/lang/source.abl.js index 7e10a09..6c43db2 100644 --- a/lang/source.abl.js +++ b/lang/source.abl.js @@ -358,7 +358,7 @@ const grammar = { }, 'procedure-definition': { begin: - "(?i)\\b(proce|proced|procedu|procedur|procedure)\\b\\s+('[\\w\\.-]*':U|'[\\w\\.-]*'|[\\w\\.-]*)?(\\s+(EXTERNAL)\\s+(\")([\\w\\.-]*)(\"))?", + "(?i)\\b(proce|proced|procedu|procedur|procedure)\\b\\s+('[\\w\\.\\-\\{\\}\\&]*':U|'[\\w\\.\\-\\{\\}\\&]*'|[\\w\\.\\-\\{\\}\\&]*)?(\\s+(EXTERNAL)\\s+(\")([\\w\\.-]*)(\"))?", beginCaptures: { 1: {name: 'keyword.other.abl'}, 2: {name: 'entity.name.function.abl'}, diff --git a/lang/source.apex.js b/lang/source.apex.js new file mode 100644 index 0000000..fe72abd --- /dev/null +++ b/lang/source.apex.js @@ -0,0 +1,1631 @@ +// This is a TextMate grammar distributed by `starry-night`. +// This grammar is developed at +// +// and licensed `bsd-3-clause`. +// See for more info. +/** @type {import('../lib/index.js').Grammar} */ +const grammar = { + extensions: ['.cls', '.trigger'], + names: ['apex'], + patterns: [ + {include: '#javadoc-comment'}, + {include: '#comment'}, + {include: '#directives'}, + {include: '#declarations'}, + {include: '#script-top-level'} + ], + repository: { + 'annotation-declaration': { + begin: '([@][_[:alpha:]]+)\\b', + beginCaptures: {1: {name: 'storage.type.annotation.apex'}}, + end: '(?<=\\)|$)', + patterns: [ + { + begin: '\\(', + beginCaptures: {0: {name: 'punctuation.parenthesis.open.apex'}}, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.apex'}}, + patterns: [{include: '#expression'}] + }, + {include: '#statement'} + ] + }, + 'argument-list': { + begin: '\\(', + beginCaptures: {0: {name: 'punctuation.parenthesis.open.apex'}}, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.apex'}}, + patterns: [ + {include: '#named-argument'}, + {include: '#expression'}, + {include: '#punctuation-comma'} + ] + }, + 'array-creation-expression': { + begin: + '(?x)\n\\b(new)\\b\\s*\n(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)?\\s*\n(?=\\[)', + beginCaptures: { + 1: {name: 'keyword.control.new.apex'}, + 2: {patterns: [{include: '#support-type'}, {include: '#type'}]} + }, + end: '(?<=\\])', + patterns: [{include: '#bracketed-argument-list'}] + }, + block: { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}}, + patterns: [{include: '#statement'}] + }, + 'boolean-literal': { + patterns: [ + { + match: '(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s*\n(\\))(?=\\s*@?[_[:alnum:]\\(])' + }, + 'catch-clause': { + begin: '(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s*\n(?:(\\g)\\b)?' + } + ] + }, + {include: '#comment'}, + {include: '#block'} + ] + }, + 'class-declaration': { + begin: '(?=\\bclass\\b)', + end: '(?<=\\})', + patterns: [ + { + begin: '(?x)\n\\b(class)\\b\\s+\n(@?[_[:alpha:]][_[:alnum:]]*)\\s*', + beginCaptures: { + 1: {name: 'keyword.other.class.apex'}, + 2: {name: 'entity.name.type.class.apex'} + }, + end: '(?=\\{)', + patterns: [ + {include: '#javadoc-comment'}, + {include: '#comment'}, + {include: '#type-parameter-list'}, + {include: '#extends-class'}, + {include: '#implements-class'} + ] + }, + { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}}, + patterns: [{include: '#class-or-trigger-members'}] + }, + {include: '#javadoc-comment'}, + {include: '#comment'} + ] + }, + 'class-or-trigger-members': { + patterns: [ + {include: '#javadoc-comment'}, + {include: '#comment'}, + {include: '#storage-modifier'}, + {include: '#sharing-modifier'}, + {include: '#type-declarations'}, + {include: '#field-declaration'}, + {include: '#property-declaration'}, + {include: '#indexer-declaration'}, + {include: '#variable-initializer'}, + {include: '#constructor-declaration'}, + {include: '#method-declaration'}, + {include: '#punctuation-semicolon'} + ] + }, + 'colon-expression': { + match: ':', + name: 'keyword.operator.conditional.colon.apex' + }, + comment: { + patterns: [ + { + begin: '/\\*(\\*)?', + beginCaptures: {0: {name: 'punctuation.definition.comment.apex'}}, + end: '\\*/', + endCaptures: {0: {name: 'punctuation.definition.comment.apex'}}, + name: 'comment.block.apex' + }, + { + begin: '(^\\s+)?(?=//)', + beginCaptures: { + 1: {name: 'punctuation.whitespace.comment.leading.apex'} + }, + end: '(?=$)', + patterns: [ + { + begin: '(?)', + patterns: [{include: '#constructor-initializer'}] + }, + {include: '#parenthesized-parameter-list'}, + {include: '#comment'}, + {include: '#expression-body'}, + {include: '#block'} + ] + }, + 'constructor-initializer': { + begin: '\\b(?:(this))\\b\\s*(?=\\()', + beginCaptures: {1: {name: 'keyword.other.this.apex'}}, + end: '(?<=\\))', + patterns: [{include: '#argument-list'}] + }, + 'date-literal-with-params': { + captures: {1: {name: 'keyword.operator.query.date.apex'}}, + match: + '\\b((LAST_N_DAYS|NEXT_N_DAYS|NEXT_N_WEEKS|LAST_N_WEEKS|NEXT_N_MONTHS|LAST_N_MONTHS|NEXT_N_QUARTERS|LAST_N_QUARTERS|NEXT_N_YEARS|LAST_N_YEARS|NEXT_N_FISCAL_QUARTERS|LAST_N_FISCAL_QUARTERS|NEXT_N_FISCAL_YEARS|LAST_N_FISCAL_YEARS)\\s*\\:\\d+)\\b' + }, + 'date-literals': { + captures: {1: {name: 'keyword.operator.query.date.apex'}}, + match: + '\\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\\b\\s*' + }, + declarations: { + patterns: [ + {include: '#type-declarations'}, + {include: '#punctuation-semicolon'} + ] + }, + directives: {patterns: [{include: '#punctuation-semicolon'}]}, + 'do-statement': { + begin: '(?', + beginCaptures: {0: {name: 'keyword.operator.arrow.apex'}}, + end: '(?=[,\\);}])', + patterns: [{include: '#expression'}] + }, + 'expression-operators': { + patterns: [ + { + match: '\\*=|/=|%=|\\+=|-=', + name: 'keyword.operator.assignment.compound.apex' + }, + { + match: '\\&=|\\^=|<<=|>>=|\\|=', + name: 'keyword.operator.assignment.compound.bitwise.apex' + }, + {match: '<<|>>', name: 'keyword.operator.bitwise.shift.apex'}, + {match: '==|!=', name: 'keyword.operator.comparison.apex'}, + {match: '<=|>=|<|>', name: 'keyword.operator.relational.apex'}, + {match: '\\!|&&|\\|\\|', name: 'keyword.operator.logical.apex'}, + {match: '\\&|~|\\^|\\|', name: 'keyword.operator.bitwise.apex'}, + {match: '\\=', name: 'keyword.operator.assignment.apex'}, + {match: '--', name: 'keyword.operator.decrement.apex'}, + {match: '\\+\\+', name: 'keyword.operator.increment.apex'}, + {match: '%|\\*|/|-|\\+', name: 'keyword.operator.arithmetic.apex'} + ] + }, + 'extends-class': { + begin: '(extends)\\b\\s+([_[:alpha:]][_[:alnum:]]*)', + beginCaptures: { + 1: {name: 'keyword.other.extends.apex'}, + 2: {name: 'entity.name.type.extends.apex'} + }, + end: '(?={|implements)' + }, + 'field-declaration': { + begin: + '(?x)\n(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s+\n(\\g)\\s* # first field name\n(?!=>|==)(?=,|;|=|$)', + beginCaptures: { + 1: {patterns: [{include: '#support-type'}, {include: '#type'}]}, + 5: {name: 'entity.name.variable.field.apex'} + }, + end: '(?=;)', + patterns: [ + { + match: '@?[_[:alpha:]][_[:alnum:]]*', + name: 'entity.name.variable.field.apex' + }, + {include: '#punctuation-comma'}, + {include: '#comment'}, + {include: '#variable-initializer'}, + {include: '#class-or-trigger-members'} + ] + }, + 'finally-clause': { + begin: '(?\n (?\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n )\\s+\n)\n(?\\g\\s*\\.\\s*)?\n(?this)\\s*\n(?=\\[)', + beginCaptures: { + 1: {patterns: [{include: '#type'}]}, + 6: {patterns: [{include: '#type'}, {include: '#punctuation-accessor'}]}, + 7: {name: 'keyword.other.this.apex'} + }, + end: '(?<=\\})|(?=;)', + patterns: [ + {include: '#comment'}, + {include: '#property-accessors'}, + {include: '#expression-body'}, + {include: '#variable-initializer'} + ] + }, + 'initializer-expression': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}}, + patterns: [{include: '#expression'}, {include: '#punctuation-comma'}] + }, + 'interface-declaration': { + begin: '(?=\\binterface\\b)', + end: '(?<=\\})', + patterns: [ + { + begin: '(?x)\n(interface)\\b\\s+\n(@?[_[:alpha:]][_[:alnum:]]*)', + beginCaptures: { + 1: {name: 'keyword.other.interface.apex'}, + 2: {name: 'entity.name.type.interface.apex'} + }, + end: '(?=\\{)', + patterns: [ + {include: '#javadoc-comment'}, + {include: '#comment'}, + {include: '#type-parameter-list'}, + {include: '#extends-class'} + ] + }, + { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}}, + patterns: [{include: '#interface-members'}] + }, + {include: '#javadoc-comment'}, + {include: '#comment'} + ] + }, + 'interface-members': { + patterns: [ + {include: '#javadoc-comment'}, + {include: '#comment'}, + {include: '#property-declaration'}, + {include: '#indexer-declaration'}, + {include: '#method-declaration'}, + {include: '#punctuation-semicolon'} + ] + }, + 'invocation-expression': { + begin: + '(?x)\n(?:(\\??\\.)\\s*)? # safe navigator or accessor\n(@?[_[:alpha:]][_[:alnum:]]*)\\s* # method name\n(?\\s*<([^<>]|\\g)+>\\s*)?\\s* # type arguments\n(?=\\() # open paren of argument list', + beginCaptures: { + 1: { + patterns: [ + {include: '#punctuation-accessor'}, + {include: '#operator-safe-navigation'} + ] + }, + 2: {name: 'entity.name.function.apex'}, + 3: {patterns: [{include: '#type-arguments'}]} + }, + end: '(?<=\\))', + patterns: [{include: '#argument-list'}] + }, + 'javadoc-comment': { + patterns: [ + { + begin: '^\\s*(/\\*\\*)(?!/)', + beginCaptures: {1: {name: 'punctuation.definition.comment.apex'}}, + end: '\\*/', + endCaptures: {0: {name: 'punctuation.definition.comment.apex'}}, + name: 'comment.block.javadoc.apex', + patterns: [ + { + match: + '@(deprecated|author|return|see|serial|since|version|usage|name|link)\\b', + name: 'keyword.other.documentation.javadoc.apex' + }, + { + captures: { + 1: {name: 'keyword.other.documentation.javadoc.apex'}, + 2: {name: 'entity.name.variable.parameter.apex'} + }, + match: '(@param)\\s+(\\S+)' + }, + { + captures: { + 1: {name: 'keyword.other.documentation.javadoc.apex'}, + 2: {name: 'entity.name.type.class.apex'} + }, + match: '(@(?:exception|throws))\\s+(\\S+)' + }, + { + captures: {1: {name: 'string.quoted.single.apex'}}, + match: '(`([^`]+?)`)' + } + ] + } + ] + }, + literal: { + patterns: [ + {include: '#boolean-literal'}, + {include: '#null-literal'}, + {include: '#numeric-literal'}, + {include: '#string-literal'} + ] + }, + 'local-constant-declaration': { + begin: + '(?x)\n(?\\b(?:const)\\b)\\s*\n(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s+\n(\\g)\\s*\n(?=,|;|=)', + beginCaptures: { + 1: {name: 'storage.modifier.apex'}, + 2: {patterns: [{include: '#type'}]}, + 6: {name: 'entity.name.variable.local.apex'} + }, + end: '(?=;)', + patterns: [ + { + match: '@?[_[:alpha:]][_[:alnum:]]*', + name: 'entity.name.variable.local.apex' + }, + {include: '#punctuation-comma'}, + {include: '#comment'}, + {include: '#variable-initializer'} + ] + }, + 'local-declaration': { + patterns: [ + {include: '#local-constant-declaration'}, + {include: '#local-variable-declaration'} + ] + }, + 'local-variable-declaration': { + begin: + '(?x)\n(?:\n (?:(\\bref)\\s+)?(\\bvar\\b)| # ref local\n (?\n (?:\n (?:ref\\s+)? # ref local\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n )\n)\\s+\n(\\g)\\s*\n(?=,|;|=|\\))', + beginCaptures: { + 1: {name: 'storage.modifier.apex'}, + 2: {name: 'keyword.other.var.apex'}, + 3: {patterns: [{include: '#support-type'}, {include: '#type'}]}, + 7: {name: 'entity.name.variable.local.apex'} + }, + end: '(?=;|\\))', + patterns: [ + { + match: '@?[_[:alpha:]][_[:alnum:]]*', + name: 'entity.name.variable.local.apex' + }, + {include: '#punctuation-comma'}, + {include: '#comment'}, + {include: '#variable-initializer'} + ] + }, + 'member-access-expression': { + patterns: [ + { + captures: { + 1: { + patterns: [ + {include: '#punctuation-accessor'}, + {include: '#operator-safe-navigation'} + ] + }, + 2: {name: 'variable.other.object.property.apex'} + }, + match: + '(?x)\n(\\??\\.)\\s* # safe navigator or accessor\n(@?[_[:alpha:]][_[:alnum:]]*)\\s* # property name\n(?![_[:alnum:]]|\\(|(\\?)?\\[|<) # next character is not alpha-numeric, nor a (, [, or <. Also, test for ?[' + }, + { + captures: { + 1: { + patterns: [ + {include: '#punctuation-accessor'}, + {include: '#operator-safe-navigation'} + ] + }, + 2: {name: 'variable.other.object.apex'}, + 3: {patterns: [{include: '#type-arguments'}]} + }, + match: + '(?x)\n(\\??\\.)?\\s*\n(@?[_[:alpha:]][_[:alnum:]]*)\n(?\\s*<([^<>]|\\g)+>\\s*)\n(?=\n (\\s*\\?)?\n \\s*\\.\\s*@?[_[:alpha:]][_[:alnum:]]*\n)' + }, + { + captures: {1: {name: 'variable.other.object.apex'}}, + match: + '(?x)\n(@?[_[:alpha:]][_[:alnum:]]*)\n(?=\n (\\s*\\?)?\n \\s*\\.\\s*@?[_[:alpha:]][_[:alnum:]]*\n)' + } + ] + }, + 'merge-expression': { + begin: '(merge)\\b\\s+', + beginCaptures: {1: {name: 'support.function.apex'}}, + end: '(?<=\\;)', + patterns: [ + {include: '#object-creation-expression'}, + {include: '#merge-type-statement'}, + {include: '#expression'}, + {include: '#punctuation-semicolon'} + ] + }, + 'merge-type-statement': { + captures: { + 1: {name: 'variable.other.readwrite.apex'}, + 2: {name: 'variable.other.readwrite.apex'}, + 3: {name: 'punctuation.terminator.statement.apex'} + }, + match: '([_[:alpha:]]*)\\b\\s+([_[:alpha:]]*)\\b\\s*(\\;)' + }, + 'method-declaration': { + begin: + '(?x)\n(?\n (?\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n )\\s+\n)\n(?\\g\\s*\\.\\s*)?\n(\\g)\\s*\n(<([^<>]+)>)?\\s*\n(?=\\()', + beginCaptures: { + 1: {patterns: [{include: '#support-type'}, {include: '#type'}]}, + 6: {patterns: [{include: '#type'}, {include: '#punctuation-accessor'}]}, + 7: { + patterns: [ + {include: '#support-type'}, + {include: '#method-name-custom'} + ] + }, + 8: {patterns: [{include: '#type-parameter-list'}]} + }, + end: '(?<=\\})|(?=;)', + patterns: [ + {include: '#comment'}, + {include: '#parenthesized-parameter-list'}, + {include: '#expression-body'}, + {include: '#block'} + ] + }, + 'method-name-custom': { + match: '@?[_[:alpha:]][_[:alnum:]]*', + name: 'entity.name.function.apex' + }, + 'named-argument': { + begin: '(@?[_[:alpha:]][_[:alnum:]]*)\\s*(:)', + beginCaptures: { + 1: {name: 'entity.name.variable.parameter.apex'}, + 2: {name: 'punctuation.separator.colon.apex'} + }, + end: '(?=(,|\\)|\\]))', + patterns: [{include: '#expression'}] + }, + 'null-literal': { + match: '(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s*\n(?=\\{|$)' + }, + 'object-creation-expression-with-parameters': { + begin: + '(?x)\n(delete|insert|undelete|update|upsert)?\n\\s*(new)\\s+\n(?\n (?:\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s*\n(?=\\()', + beginCaptures: { + 1: {name: 'support.function.apex'}, + 2: {name: 'keyword.control.new.apex'}, + 3: {patterns: [{include: '#support-type'}, {include: '#type'}]} + }, + end: '(?<=\\))', + patterns: [{include: '#argument-list'}] + }, + 'operator-assignment': { + match: '(?\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s+\n(\\g)' + }, + 'parenthesized-expression': { + begin: '\\(', + beginCaptures: {0: {name: 'punctuation.parenthesis.open.apex'}}, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.apex'}}, + patterns: [{include: '#expression'}] + }, + 'parenthesized-parameter-list': { + begin: '(\\()', + beginCaptures: {0: {name: 'punctuation.parenthesis.open.apex'}}, + end: '(\\))', + endCaptures: {0: {name: 'punctuation.parenthesis.close.apex'}}, + patterns: [ + {include: '#comment'}, + {include: '#parameter'}, + {include: '#punctuation-comma'}, + {include: '#variable-initializer'} + ] + }, + 'property-accessors': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}}, + patterns: [ + {match: '\\b(private|protected)\\b', name: 'storage.modifier.apex'}, + {match: '\\b(get)\\b', name: 'keyword.other.get.apex'}, + {match: '\\b(set)\\b', name: 'keyword.other.set.apex'}, + {include: '#comment'}, + {include: '#expression-body'}, + {include: '#block'}, + {include: '#punctuation-semicolon'} + ] + }, + 'property-declaration': { + begin: + '(?x)\n(?!.*\\b(?:class|interface|enum)\\b)\\s*\n(?\n (?\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (? # identifier + type arguments (if any)\n \\g\\s*\n (?\\s*<(?:[^<>]|\\g)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n )\\s+\n)\n(?\\g\\s*\\.\\s*)?\n(?\\g)\\s*\n(?=\\{|=>|$)', + beginCaptures: { + 1: {patterns: [{include: '#type'}]}, + 6: {patterns: [{include: '#type'}, {include: '#punctuation-accessor'}]}, + 7: {name: 'entity.name.variable.property.apex'} + }, + end: '(?<=\\})|(?=;)', + patterns: [ + {include: '#comment'}, + {include: '#property-accessors'}, + {include: '#expression-body'}, + {include: '#variable-initializer'}, + {include: '#class-or-trigger-members'} + ] + }, + 'punctuation-accessor': {match: '\\.', name: 'punctuation.accessor.apex'}, + 'punctuation-comma': {match: ',', name: 'punctuation.separator.comma.apex'}, + 'punctuation-semicolon': { + match: ';', + name: 'punctuation.terminator.statement.apex' + }, + 'query-operators': { + captures: {1: {name: 'keyword.operator.query.apex'}}, + match: + '\\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\\b\\s*' + }, + 'return-statement': { + begin: '(?', + endCaptures: { + 0: {name: 'punctuation.definition.typeparameters.end.apex'} + }, + patterns: [ + {include: '#comment'}, + {include: '#support-type'}, + {include: '#punctuation-comma'} + ] + }, + 'support-class': { + captures: {1: {name: 'support.class.apex'}}, + match: + '\\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\\b' + }, + 'support-expression': { + begin: + '(?x)\n(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)(?=\\.|\\s) # supported apex namespaces', + beginCaptures: {1: {name: 'support.class.apex'}}, + end: '(?<=\\)|$)|(?=\\})|(?=;)|(?=\\)|(?=\\]))|(?=\\,)', + patterns: [ + {include: '#support-type'}, + { + captures: { + 1: {name: 'punctuation.accessor.apex'}, + 2: {name: 'support.function.apex'} + }, + match: '(?:(\\.))([[:alpha:]]*)(?=\\()' + }, + { + captures: { + 1: {name: 'punctuation.accessor.apex'}, + 2: {name: 'support.type.apex'} + }, + match: '(?:(\\.))([[:alpha:]]+)' + }, + { + begin: '\\(', + beginCaptures: {0: {name: 'punctuation.parenthesis.open.apex'}}, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.apex'}}, + patterns: [{include: '#expression'}, {include: '#punctuation-comma'}] + }, + {include: '#comment'}, + {include: '#statement'} + ] + }, + 'support-functions': { + captures: {1: {name: 'support.function.apex'}}, + match: '\\b(delete|execute|finish|insert|start|undelete|update|upsert)\\b' + }, + 'support-name': { + patterns: [ + { + captures: { + 1: {name: 'punctuation.accessor.apex'}, + 2: {name: 'support.function.apex'} + }, + match: '(\\.)\\s*([[:alpha:]]*)(?=\\()' + }, + { + begin: '\\(', + beginCaptures: {0: {name: 'punctuation.parenthesis.open.apex'}}, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.apex'}}, + patterns: [{include: '#expression'}, {include: '#punctuation-comma'}] + }, + { + captures: { + 1: {name: 'punctuation.accessor.apex'}, + 2: {name: 'support.type.apex'} + }, + match: '(\\.)\\s*([_[:alpha:]]*)' + } + ] + }, + 'support-type': { + name: 'support.apex', + patterns: [ + {include: '#comment'}, + {include: '#support-class'}, + {include: '#support-functions'}, + {include: '#support-name'} + ] + }, + 'switch-statement': { + begin: + "(?x)\n(switch)\\b\\s+\n(on)\\b\\s+\n(?:([_.?\\'\\(\\)[:alnum:]]+)\\s*)?\n(\\{)", + beginCaptures: { + 1: {name: 'keyword.control.switch.apex'}, + 2: {name: 'keyword.control.switch.on.apex'}, + 3: { + patterns: [ + {include: '#statement'}, + {include: '#parenthesized-expression'} + ] + }, + 4: {name: 'punctuation.curlybrace.open.apex'} + }, + end: '(\\})', + endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}}, + patterns: [ + {include: '#when-string'}, + {include: '#when-else-statement'}, + {include: '#when-sobject-statement'}, + {include: '#when-statement'}, + {include: '#when-multiple-statement'}, + {include: '#expression'}, + {include: '#punctuation-comma'}, + {include: '#punctuation-semicolon'} + ] + }, + 'this-expression': { + captures: {1: {name: 'keyword.other.this.apex'}}, + match: '\\b(?:(this))\\b' + }, + 'throw-expression': { + captures: {1: {name: 'keyword.control.flow.throw.apex'}}, + match: '(?', + endCaptures: { + 0: {name: 'punctuation.definition.typeparameters.end.apex'} + }, + patterns: [ + {include: '#comment'}, + {include: '#support-type'}, + {include: '#type'}, + {include: '#punctuation-comma'} + ] + }, + 'type-array-suffix': { + begin: '\\[', + beginCaptures: {0: {name: 'punctuation.squarebracket.open.apex'}}, + end: '\\]', + endCaptures: {0: {name: 'punctuation.squarebracket.close.apex'}}, + patterns: [{include: '#punctuation-comma'}] + }, + 'type-builtin': { + captures: {1: {name: 'keyword.type.apex'}}, + match: + '\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\\b' + }, + 'type-declarations': { + patterns: [ + {include: '#javadoc-comment'}, + {include: '#comment'}, + {include: '#annotation-declaration'}, + {include: '#storage-modifier'}, + {include: '#sharing-modifier'}, + {include: '#class-declaration'}, + {include: '#enum-declaration'}, + {include: '#interface-declaration'}, + {include: '#trigger-declaration'}, + {include: '#punctuation-semicolon'} + ] + }, + 'type-name': { + patterns: [ + { + captures: { + 1: {name: 'storage.type.apex'}, + 2: {name: 'punctuation.accessor.apex'} + }, + match: '(@?[_[:alpha:]][_[:alnum:]]*)\\s*(\\.)' + }, + { + captures: { + 1: {name: 'punctuation.accessor.apex'}, + 2: {name: 'storage.type.apex'} + }, + match: '(\\.)\\s*(@?[_[:alpha:]][_[:alnum:]]*)' + }, + {match: '@?[_[:alpha:]][_[:alnum:]]*', name: 'storage.type.apex'} + ] + }, + 'type-nullable-suffix': { + captures: {0: {name: 'punctuation.separator.question-mark.apex'}}, + match: '\\?' + }, + 'type-parameter-list': { + begin: '\\<', + beginCaptures: { + 0: {name: 'punctuation.definition.typeparameters.begin.apex'} + }, + end: '\\>', + endCaptures: { + 0: {name: 'punctuation.definition.typeparameters.end.apex'} + }, + patterns: [ + { + captures: {1: {name: 'entity.name.type.type-parameter.apex'}}, + match: '(@?[_[:alpha:]][_[:alnum:]]*)\\b' + }, + {include: '#comment'}, + {include: '#punctuation-comma'} + ] + }, + 'using-scope': { + captures: {1: {name: 'keyword.operator.query.using.apex'}}, + match: + '((USING SCOPE)\\b\\s*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\\b\\s*' + }, + 'variable-initializer': { + begin: '(?)', + beginCaptures: {1: {name: 'keyword.operator.assignment.apex'}}, + end: '(?=[,\\)\\];}])', + patterns: [{include: '#expression'}] + }, + 'when-else-statement': { + begin: '(when)\\b\\s+(else)\\b\\s*', + beginCaptures: { + 1: {name: 'keyword.control.switch.when.apex'}, + 2: {name: 'keyword.control.switch.else.apex'} + }, + end: '(?<=\\})', + patterns: [{include: '#block'}, {include: '#expression'}] + }, + 'when-multiple-statement': { + begin: '(when)\\b\\s*', + beginCaptures: {1: {name: 'keyword.control.switch.when.apex'}}, + end: '(?<=\\})', + patterns: [{include: '#block'}, {include: '#expression'}] + }, + 'when-sobject-statement': { + begin: '(when)\\b\\s+([_[:alnum:]]+)\\s+([_[:alnum:]]+)\\s*', + beginCaptures: { + 1: {name: 'keyword.control.switch.when.apex'}, + 2: {name: 'storage.type.apex'}, + 3: {name: 'entity.name.variable.local.apex'} + }, + end: '(?<=\\})', + patterns: [{include: '#block'}, {include: '#expression'}] + }, + 'when-statement': { + begin: "(when)\\b\\s+([\\'_\\-[:alnum:]]+)\\s*", + beginCaptures: { + 1: {name: 'keyword.control.switch.when.apex'}, + 2: {patterns: [{include: '#expression'}]} + }, + end: '(?<=\\})', + patterns: [{include: '#block'}, {include: '#expression'}] + }, + 'when-string': { + begin: "(when)(\\b\\s*)((\\')[_.\\,\\'\\s*[:alnum:]]+)", + beginCaptures: { + 1: {name: 'keyword.control.switch.when.apex'}, + 2: {name: 'punctuation.whitespace.apex'}, + 3: { + patterns: [ + {include: '#when-string-statement'}, + {include: '#punctuation-comma'} + ] + } + }, + end: '(?<=\\})', + patterns: [{include: '#block'}, {include: '#expression'}] + }, + 'when-string-statement': { + patterns: [ + { + begin: "\\'", + beginCaptures: { + 0: {name: 'punctuation.definition.string.begin.apex'} + }, + end: "\\'", + endCaptures: {0: {name: 'punctuation.definition.string.end.apex'}}, + name: 'string.quoted.single.apex' + } + ] + }, + 'where-clause': { + captures: {1: {name: 'keyword.operator.query.where.apex'}}, + match: '\\b(WHERE)\\b\\s*' + }, + 'while-statement': { + begin: '(?', + endCaptures: {0: {name: 'punctuation.definition.string.end.apex'}}, + name: 'string.unquoted.cdata.apex' + }, + 'xml-character-entity': { + patterns: [ + { + captures: { + 1: {name: 'punctuation.definition.constant.apex'}, + 3: {name: 'punctuation.definition.constant.apex'} + }, + match: + '(?x)\n(&)\n(\n (?:[[:alpha:]:_][[:alnum:]:_.-]*)|\n (?:\\#[[:digit:]]+)|\n (?:\\#x[[:xdigit:]]+)\n)\n(;)', + name: 'constant.character.entity.apex' + }, + {match: '&', name: 'invalid.illegal.bad-ampersand.apex'} + ] + }, + 'xml-comment': { + begin: '', + endCaptures: {0: {name: 'punctuation.definition.comment.apex'}}, + name: 'comment.block.apex' + }, + 'xml-doc-comment': { + patterns: [ + {include: '#xml-comment'}, + {include: '#xml-character-entity'}, + {include: '#xml-cdata'}, + {include: '#xml-tag'} + ] + }, + 'xml-string': { + patterns: [ + { + begin: "\\'", + beginCaptures: { + 0: {name: 'punctuation.definition.string.begin.apex'} + }, + end: "\\'", + endCaptures: {0: {name: 'punctuation.definition.string.end.apex'}}, + name: 'string.quoted.single.apex', + patterns: [{include: '#xml-character-entity'}] + }, + { + begin: '\\"', + beginCaptures: { + 0: {name: 'punctuation.definition.stringdoublequote.begin.apex'} + }, + end: '\\"', + endCaptures: { + 0: {name: 'punctuation.definition.stringdoublequote.end.apex'} + }, + name: 'string.quoted.double.apex', + patterns: [{include: '#xml-character-entity'}] + } + ] + }, + 'xml-tag': { + begin: + '(?x)\n()', + endCaptures: {1: {name: 'punctuation.definition.tag.apex'}}, + name: 'meta.tag.apex', + patterns: [{include: '#xml-attribute'}] + } + }, + scopeName: 'source.apex' +} + +export default grammar diff --git a/lang/source.astro.js b/lang/source.astro.js index 8477c0b..948ad41 100644 --- a/lang/source.astro.js +++ b/lang/source.astro.js @@ -172,7 +172,7 @@ const grammar = { name: 'string.unquoted.astro' }, { - begin: '([\'"])', + begin: '(["])', beginCaptures: { 0: {name: 'punctuation.definition.string.begin.astro'} }, @@ -206,6 +206,42 @@ const grammar = { name: 'comment.block.js' } ] + }, + { + begin: "(['])", + beginCaptures: { + 0: {name: 'punctuation.definition.string.begin.astro'} + }, + end: '\\1', + endCaptures: { + 0: {name: 'punctuation.definition.string.end.astro'} + }, + name: 'string.quoted.astro', + patterns: [ + { + captures: {0: {patterns: [{include: 'source.js'}]}}, + match: "([^\\n\\'/]|/(?![/*]))+" + }, + { + begin: '//', + beginCaptures: { + 0: {name: 'punctuation.definition.comment.js'} + }, + end: "(?=\\')|\\n", + name: 'comment.line.double-slash.js' + }, + { + begin: '/\\*', + beginCaptures: { + 0: {name: 'punctuation.definition.comment.begin.js'} + }, + end: "(?=\\')|\\*/", + endCaptures: { + 0: {name: 'punctuation.definition.comment.end.js'} + }, + name: 'comment.block.js' + } + ] } ] } diff --git a/lang/source.bicep.js b/lang/source.bicep.js index 420cf93..aefe874 100644 --- a/lang/source.bicep.js +++ b/lang/source.bicep.js @@ -71,7 +71,7 @@ const grammar = { }, keyword: { match: - '\\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with)\\b', + '\\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with|using|func)\\b', name: 'keyword.control.declaration.bicep' }, 'lambda-start': { diff --git a/lang/source.brs.js b/lang/source.brs.js index 05a80d6..17c2887 100644 --- a/lang/source.brs.js +++ b/lang/source.brs.js @@ -34,7 +34,7 @@ const grammar = { }, apostrophe_comment: { captures: {1: {name: 'punctuation.definition.comment.brs'}}, - match: "(').*$\\n?", + match: "('[^\\r\\n]*)$", name: 'comment.line.apostrophe.brs' }, class_declaration: { @@ -215,17 +215,48 @@ const grammar = { patterns: [ {include: '#comment'}, {include: '#annotation'}, - { - begin: '(?i)\\s*\\b([a-z0-9_]+)(?:[\\s\\t]*(as))?', - beginCaptures: { - 1: {name: 'variable.object.property.brs'}, - 2: {name: 'keyword.control.as.brs'} - }, - end: '\r?\n', - patterns: [{include: '#type_expression'}] - } + {include: '#interface_function'}, + {include: '#interface_field'} + ] + }, + interface_field: { + begin: '(?i)\\s*\\b([a-z0-9_]+)(?:[\\s\\t]*(as))?', + beginCaptures: { + 1: {name: 'variable.object.property.brs'}, + 2: {name: 'keyword.control.as.brs'} + }, + end: '\r?\n', + patterns: [{include: '#type_expression'}, {include: '#comment'}] + }, + interface_function: { + patterns: [ + {include: '#interface_function_with_return_type'}, + {include: '#interface_function_plain'} ] }, + interface_function_plain: { + captures: { + 1: {name: 'storage.type.function.brs'}, + 2: {name: 'entity.name.function.member.brs'}, + 3: {name: 'punctuation.definition.parameters.begin.brs'}, + 4: {name: 'punctuation.definition.parameters.end.brs'}, + 5: {name: 'keyword.control.as.brs'} + }, + match: '(?i:\\s*\\b(function|sub)[\\s\\t]+([a-z0-9_]+)(\\())(\\))[\\s\\t]' + }, + interface_function_with_return_type: { + begin: + '(?i:\\s*\\b(function|sub)[\\s\\t]+([a-z0-9_]+)(\\()).*?(\\))[\\s\\t]+(as)', + beginCaptures: { + 1: {name: 'storage.type.function.brs'}, + 2: {name: 'entity.name.function.member.brs'}, + 3: {name: 'punctuation.definition.parameters.begin.brs'}, + 4: {name: 'punctuation.definition.parameters.end.brs'}, + 5: {name: 'keyword.control.as.brs'} + }, + end: '\r?\n', + patterns: [{include: '#type_expression'}, {include: '#comment'}] + }, keyword_logical_operator: { match: '(?i:\\b(and|or|not)\\b)', name: 'keyword.operator.logical.word' @@ -446,7 +477,7 @@ const grammar = { }, rem_comment: { captures: {1: {name: 'punctuation.definition.comment.brs'}}, - match: '^\\s*?(?i:rem\\s).*$\\n?', + match: '^\\s*?(?i:rem\\s.*)$', name: 'comment.line.rem.brs' }, storage_types: { diff --git a/lang/source.bsl.js b/lang/source.bsl.js index 5785ab3..50e59aa 100644 --- a/lang/source.bsl.js +++ b/lang/source.bsl.js @@ -76,7 +76,7 @@ const grammar = { 1: {name: 'variable.assignment.bsl'}, 2: {name: 'keyword.operator.assignment.bsl'} }, - end: '(?=;)', + end: '(?i:(?=(;|Иначе|Конец|Els|End)))', name: 'meta.var-single-variable.bsl', patterns: [{include: '#basic'}, {include: '#miscellaneous'}] }, @@ -89,6 +89,7 @@ const grammar = { match: '(?i)#(Использовать|Use)(?=[^\\wа-яё\\.]|$)', name: 'keyword.control.import.bsl' }, + {match: '(?i)#native', name: 'keyword.control.native.bsl'}, { match: '(?i:(?<=[^\\wа-яё\\.]|^)(Прервать|Break|Продолжить|Continue|Возврат|Return)(?=[^\\wа-яё\\.]|$))', diff --git a/lang/source.c++.js b/lang/source.c++.js index 5656938..027a4a7 100644 --- a/lang/source.c++.js +++ b/lang/source.c++.js @@ -29,7 +29,8 @@ const grammar = { '.metal', '.re', '.tcc', - '.tpp' + '.tpp', + '.txx' ], names: [ 'ags', diff --git a/lang/source.cds.js b/lang/source.cds.js index f017709..3810ee7 100644 --- a/lang/source.cds.js +++ b/lang/source.cds.js @@ -334,7 +334,7 @@ const grammar = { }, elementDef: { begin: - '\\b(virtual(?:\\s+))?(key(?:\\s+))?(masked(?:\\s+))?(element(?:\\s+))?', + '(?=\\()|\\b(virtual(?:\\s+))?(key(?:\\s+))?(masked(?:\\s+))?(element(?:\\s+))?', beginCaptures: { 1: {name: 'keyword.cds'}, 2: {name: 'keyword.strong.cds'}, @@ -348,7 +348,20 @@ const grammar = { {include: '#strings'}, {include: '#comments'}, {include: '#keywords'}, - {match: ':', name: 'keyword.operator.cds'}, + { + begin: '\\(', + beginCaptures: {0: {name: 'punctuation.section.scope.begin.cds'}}, + end: '\\)', + endCaptures: {0: {name: 'punctuation.section.scope.end.cds'}}, + patterns: [ + { + captures: {0: {name: 'entity.name.type.attribute-name.cds'}}, + match: + '[$_a-zA-Z][$_a-zA-Z0-9]*|\\"[^\\"]*(\\"\\"[^\\"]*)*\\"|!\\\\[[^\\\\]]*(\\\\]\\\\][^\\\\]]*)*\\\\]' + }, + {include: '#operators'} + ] + }, { begin: '([$_a-zA-Z][$_a-zA-Z0-9]*|"[^"]*(""[^"]*)*"|!\\[[^\\]]*(\\]\\][^\\]]*)*\\])(?=\\s*[:{,])', @@ -356,6 +369,11 @@ const grammar = { end: '(,)|(?=\\s*[:{])', endCaptures: {1: {name: 'punctuation.separator.object.cds'}} }, + { + captures: {1: {name: 'entity.name.type.attribute-name.cds'}}, + match: + '^\\s*([$_a-zA-Z][$_a-zA-Z0-9]*|"[^"]*(""[^"]*)*"|!\\[[^\\]]*(\\]\\][^\\]]*)*\\])\\s*$' + }, {include: '#identifiers'}, {include: '#operators'}, {include: '#numbers'} @@ -456,7 +474,7 @@ const grammar = { patterns: [ { match: - '(? +// and licensed `mit`. // See for more info. /** @type {import('../lib/index.js').Grammar} */ const grammar = { diff --git a/lang/source.cs.js b/lang/source.cs.js index f461432..9c088e6 100644 --- a/lang/source.cs.js +++ b/lang/source.cs.js @@ -152,7 +152,7 @@ const grammar = { 'base-types': { begin: ':', beginCaptures: {0: {name: 'punctuation.separator.colon.cs'}}, - end: '(?=\\{|where)', + end: '(?=\\{|where|;)', patterns: [ {include: '#type'}, {include: '#punctuation-comma'}, @@ -286,19 +286,22 @@ const grammar = { patterns: [{include: '#block'}, {include: '#comment'}] }, 'class-declaration': { - begin: '(?=\\bclass\\b)', - end: '(?<=\\})', + begin: '(?=(\\brecord\\b\\s+)?\\bclass\\b)', + end: '(?<=\\})|(?=;)', patterns: [ { - begin: '(?x)\n\\b(class)\\b\\s+\n(@?[_[:alpha:]][_[:alnum:]]*)\\s*', + begin: + '(?x)\n(\\b(record)\\b\\s+)?\n\\b(class)\\b\\s+\n(@?[_[:alpha:]][_[:alnum:]]*)\\s*', beginCaptures: { - 1: {name: 'keyword.other.class.cs'}, - 2: {name: 'entity.name.type.class.cs'} + 2: {name: 'keyword.other.record.cs'}, + 3: {name: 'keyword.other.class.cs'}, + 4: {name: 'entity.name.type.class.cs'} }, - end: '(?=\\{)', + end: '(?=\\{)|(?=;)', patterns: [ {include: '#comment'}, {include: '#type-parameter-list'}, + {include: '#parenthesized-parameter-list'}, {include: '#base-types'}, {include: '#generic-constraints'} ] @@ -1339,7 +1342,7 @@ const grammar = { '(\\G(?=[0-9.])(?!0[xXbB]))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((? +// and licensed `bsd-3-clause`. +// See for more info. +/** @type {import('../lib/index.js').Grammar} */ +const grammar = { + extensions: ['.d2'], + names: ['d2', 'd2lang'], + patterns: [ + {include: '#comment'}, + {include: '#semicolon'}, + {include: '#key_value'}, + {include: '#spread_substitution'}, + {include: '#spread_import'}, + {include: '#key'}, + {include: '#error'} + ], + repository: { + array: { + begin: '\\[', + captures: {0: {name: 'punctuation.array.d2'}}, + end: '\\]', + name: 'meta.array.d2', + patterns: [ + {include: '#comment'}, + {include: '#semicolon'}, + {include: '#import'}, + {include: '#spread_substitution'}, + {include: '#spread_import'}, + {include: '#value'}, + {include: '#error'} + ] + }, + boolean: { + match: '(?:true|false)(?=\\s|\\n)', + name: 'constant.language.boolean.d2' + }, + comment: {match: '#.*', name: 'comment.line.number-sign.d2'}, + debug: { + patterns: [ + {match: '.*invalid\\.illegal.*', name: 'invalid.illegal'}, + {match: '.*punctuation.*', name: 'punctuation'}, + {match: '.*string.*', name: 'string'}, + { + match: '.*constant\\.character\\.escape.*', + name: 'constant.character.escape' + }, + {match: '.*entity\\.name\\.tag.*', name: 'entity.name.tag'}, + {match: '.*keyword.*', name: 'keyword'}, + {match: '.*keyword\\.operator.*', name: 'keyword.operator'}, + {match: '.*constant\\.numeric.*', name: 'constant.numeric'}, + { + match: '.*constant\\.language\\.boolean.*', + name: 'constant.language.boolean' + }, + { + match: '.*constant\\.language\\.null.*', + name: 'constant.language.null' + }, + {match: '.*comment.*', name: 'comment'} + ] + }, + error: {match: '\\S[^;\\n]*', name: 'invalid.illegal.d2'}, + escape: { + patterns: [ + {match: '\\\\U[[:xdigit:]]{8}', name: 'constant.character.escape.d2'}, + {match: '\\\\u[[:xdigit:]]{4}', name: 'constant.character.escape.d2'}, + {match: '\\\\[0-7]{3}', name: 'constant.character.escape.d2'}, + {match: '\\\\x[[:xdigit:]]{2}', name: 'constant.character.escape.d2'}, + {match: '\\\\.', name: 'constant.character.escape.d2'}, + {match: '\\\\\\n', name: 'constant.character.escape.d2'} + ] + }, + import: { + begin: '@', + captures: {0: {name: 'keyword.operator.import.d2'}}, + end: '(?=\\s*[\\n#;\\[\\]{}|$])', + name: 'meta.operator.import.d2', + patterns: [{include: '#key'}] + }, + key: { + patterns: [ + { + begin: "'", + captures: {0: {name: 'punctuation.quote.single.d2'}}, + contentName: 'entity.name.tag.quoted.single.d2', + end: "'|(?=\\n)", + name: 'meta.key.quoted.single.d2', + patterns: [{include: '#escape'}] + }, + { + begin: '"', + captures: {0: {name: 'punctuation.quote.double.d2'}}, + contentName: 'entity.name.tag.quoted.double.d2', + end: '"|(?=\\n)', + name: 'meta.key.quoted.double.d2', + patterns: [{include: '#escape'}] + }, + { + begin: '\\(', + captures: {0: {name: 'punctuation.parenthesis.d2'}}, + end: '\\)(?:\\[(?:[0-9_]+|\\*)\\])?', + name: 'meta.key.group.d2', + patterns: [{include: '#key'}, {include: '#error'}] + }, + { + match: + '(?:grid\\-gap|vertical\\-gap|horizontal\\-gap|classes|direction|grid\\-columns|grid\\-rows|text\\-transform|shape|layers|steps|tooltip|font|bold|italic|underline|top|left|icon|constraint|near|opacity|stroke|fill\\-pattern|fill|filled|stroke\\-width|width|height|double\\-border|border\\-radius|source\\-arrowhead|target\\-arrowhead|link|stroke\\-dash|font\\-size|font\\-color|shadow|multiple|3d|animated|class|label|style|import|vars|scenarios|on_click|src|dst)(?=\\s*[\\n#;\\[\\]{}|$\'":.<>*&()]|-+-|-+>|-+\\*)', + name: 'keyword.reserved.d2' + }, + {match: '\\.', name: 'punctuation.period.d2'}, + {match: '\\*', name: 'keyword.operator.glob.d2'}, + {match: '\\*\\*', name: 'keyword.operator.double_glob.d2'}, + {match: '&', name: 'keyword.operator.ampersand.d2'}, + { + begin: + '(?=[^[:space:]\\n#;\\[\\]{}|$\'":.<>*&()])(?!-+-)(?!-+>)(?!-+\\*)', + end: '(?=\\s*[\\n#;\\[\\]{}|$:.<>*&()]|-+-|-+>|-+\\*)', + name: 'entity.name.tag.unquoted.d2', + patterns: [{include: '#escape'}] + }, + { + begin: '[\\-<>]+', + captures: {0: {name: 'punctuation.edge.d2'}}, + end: '(?=[^\\-<>])', + name: 'meta.key.edge.d2', + patterns: [{include: '#line_continuation'}] + } + ] + }, + key_value: { + begin: ':', + beginCaptures: {0: {name: 'punctuation.colon.d2'}}, + end: '(?=\\s*[\\n#;\\]}])', + name: 'meta.key_value.d2', + patterns: [{include: '#value'}, {include: '#error'}] + }, + line_continuation: {match: '\\\\\\n', name: 'constant.character.escape.d2'}, + map: { + begin: '\\{', + captures: {0: {name: 'punctuation.map.d2'}}, + end: '\\}', + name: 'meta.map.d2', + patterns: [{include: '$self'}] + }, + null: {match: 'null(?=\\s|\\n)', name: 'constant.language.null.d2'}, + number: { + patterns: [ + { + match: + '[+-]?0[xX][[:xdigit:]_]*\\.?[[:xdigit:]_]*(?:[eEpP][+-]?[0-9_]*)?(?=\\s|\\n)', + name: 'constant.numeric.hexadecimal.d2' + }, + { + match: '[+-]?0[bB][01_]*\\.?[01_]*(?:[eEpP][+-]?[0-9_]*)?(?=\\s|\\n)', + name: 'constant.numeric.binary.d2' + }, + { + match: '[+-]?0[oO]?[0-7_]*\\.?[0-7_]*(?=\\s|\\n)', + name: 'constant.numeric.octal.d2' + }, + { + match: '[+-]?[0-9_]+(?:[eEpP][+-]?[0-9_]*)?(?=\\s|\\n)', + name: 'constant.numeric.decimal.d2' + }, + { + match: '[+-]?[0-9_]*\\.[0-9_]+(?:[eEpP][+-]?[0-9_]*)?(?=\\s|\\n)', + name: 'constant.numeric.decimal.d2' + } + ] + }, + semicolon: {match: ';', name: 'punctuation.semicolon.d2'}, + spread_import: { + begin: '\\.\\.\\.@', + captures: {0: {name: 'keyword.operator.import.d2'}}, + end: '(?=\\s*[\\n#;\\[\\]{}|$])', + name: 'meta.operator.import.d2', + patterns: [{include: '#key'}] + }, + spread_substitution: { + begin: '\\.\\.\\.\\$', + captures: {0: {name: 'keyword.operator.substitution.d2'}}, + end: '(?=\\s*[\\n#;\\[\\]{}|$])', + name: 'meta.operator.substitution.d2', + patterns: [{include: '#key'}] + }, + string: { + patterns: [ + { + begin: "'", + captures: {0: {name: 'punctuation.quote.single.d2'}}, + contentName: 'string.quoted.single.d2', + end: "'|(?=\\n)", + name: 'meta.string.quoted.single.d2', + patterns: [{include: '#escape'}] + }, + { + begin: '"', + captures: {0: {name: 'punctuation.quote.double.d2'}}, + contentName: 'string.quoted.double.d2', + end: '"|(?=\\n)', + name: 'meta.string.quoted.double.d2', + patterns: [{include: '#escape'}] + }, + { + begin: '\\|([^[:alnum:]]*)sh[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.shellscript.d2', + patterns: [{include: 'source.shell'}] + }, + { + begin: '\\|([^[:alnum:]]*)md[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.markdown.d2', + patterns: [{include: 'text.html.markdown.d2'}] + }, + { + begin: '\\|([^[:alnum:]]*)js[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.js.d2', + patterns: [{include: 'source.js'}] + }, + { + begin: '\\|([^[:alnum:]]*)go[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.go.d2', + patterns: [{include: 'source.go'}] + }, + { + begin: '\\|([^[:alnum:]]*)text[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.text.d2' + }, + { + begin: '\\|([^[:alnum:]]*)d2[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.d2.d2', + patterns: [{include: 'source.d2'}] + }, + { + begin: '\\|([^[:alnum:]]*)[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.markdown.d2', + patterns: [{include: 'text.html.markdown.d2'}] + }, + { + begin: '\\|([^[:alnum:]]*)[^[:space:]]+[\\n[:space:]]', + captures: {0: {name: 'punctuation.block.d2'}}, + end: '\\1\\|', + name: 'meta.string.block.d2' + }, + { + begin: '(?=[^[:space:]\\n#;\\[\\]{}|$\'"])', + end: '(?=\\s*[\\n#;\\[\\]{}])', + name: 'string.unquoted.d2', + patterns: [{include: '#escape'}] + } + ] + }, + substitution: { + begin: '\\$', + captures: {0: {name: 'keyword.operator.substitution.d2'}}, + end: '(?=\\s*[\\n#;\\[\\]{}|$])', + name: 'meta.operator.substitution.d2', + patterns: [{include: '#key'}] + }, + value: { + patterns: [ + {include: '#boolean'}, + {include: '#null'}, + {include: '#number'}, + {include: '#substitution'}, + {include: '#import'}, + {include: '#array'}, + {include: '#map'}, + {include: '#string'} + ] + } + }, + scopeName: 'source.d2' +} + +export default grammar diff --git a/lang/source.dart.js b/lang/source.dart.js index 940eed3..8a149d3 100644 --- a/lang/source.dart.js +++ b/lang/source.dart.js @@ -315,7 +315,8 @@ const grammar = { patterns: [ {include: '#class-identifier'}, {match: ','}, - {match: 'extends', name: 'keyword.declaration.dart'} + {match: 'extends', name: 'keyword.declaration.dart'}, + {include: '#comments'} ] } }, diff --git a/lang/source.denizenscript.js b/lang/source.denizenscript.js index 0c38bd2..6196d67 100644 --- a/lang/source.denizenscript.js +++ b/lang/source.denizenscript.js @@ -21,7 +21,7 @@ const grammar = { ], repository: { commands: { - begin: '^\\s*(-)\\s([^\\s<>"\']+)', + begin: '^\\s*(-)\\s([^\\s<>"\':]+)', captures: { 1: {name: 'operator.dash.denizenscript'}, 2: {name: 'entity.other.command.denizenscript'} @@ -34,7 +34,7 @@ const grammar = { name: 'comment.line.number-sign.denizenscript' }, def_brackets: { - begin: '(?<=\\w|<)\\[', + begin: '(?<=\\w|<|&)\\[', end: '\\]', name: 'entity.name.tag.def_brackets.denizenscript', patterns: [{include: '#tags'}] @@ -85,7 +85,7 @@ const grammar = { begin: '<(?!-|\\s|=)', end: '>', name: 'constant.language.tag.denizenscript', - patterns: [{include: '#def_brackets'}] + patterns: [{include: '#def_brackets'}, {include: '#tags'}] }, todo_comments: { begin: '(?i)^\\s*#\\s*(?:todo)', diff --git a/lang/source.dm.js b/lang/source.dm.js index c7977bd..df17d47 100644 --- a/lang/source.dm.js +++ b/lang/source.dm.js @@ -1,5 +1,7 @@ // This is a TextMate grammar distributed by `starry-night`. -// This grammar is licensed `mit`. +// This grammar is developed at +// +// and licensed `mit`. // See for more info. /** @type {import('../lib/index.js').Grammar} */ const grammar = { @@ -18,7 +20,7 @@ const grammar = { 5: {name: 'variable.other.dm'} }, match: - '(?x)\n(var)[\\/ ]\n(?:(static|global|tmp|const)\\/)?\n(?:(datum|atom(?:\\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\/)?\n(?:\n\t([a-zA-Z0-9_\\-$]*)\\/\n)*\n\n([A-Za-z0-9_$]*)\\b', + '(?x)\n(?:\\b(var))[\\/ ]\n(?:(static|global|tmp|const)\\/)?\n(?:(datum|atom(?:\\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\/)?\n(?:\n\t([a-zA-Z0-9_\\-$]*)\\/\n)*\n\n([A-Za-z0-9_$]*)\\b', name: 'meta.initialization.dm' }, { diff --git a/lang/source.fsharp.js b/lang/source.fsharp.js index 3e95686..9337904 100644 --- a/lang/source.fsharp.js +++ b/lang/source.fsharp.js @@ -35,7 +35,7 @@ const grammar = { 1: {name: 'keyword.fsharp'}, 2: {name: 'keyword.fsharp'}, 3: {name: 'support.function.attribute.fsharp'}, - 5: {name: 'keyword.fsharp'} + 5: {name: 'keyword.symbol.fsharp'} }, end: '\\s*(with)\\b|=|$', endCaptures: {1: {name: 'keyword.fsharp'}}, @@ -72,7 +72,7 @@ const grammar = { {include: '#comments'}, { begin: '(\\()', - beginCaptures: {1: {name: 'keyword.symbol.arrow.fsharp'}}, + beginCaptures: {1: {name: 'keyword.symbol.fsharp'}}, end: '\\s*(?=(->))', endCaptures: {1: {name: 'keyword.symbol.arrow.fsharp'}}, patterns: [{include: '#member_declaration'}] @@ -115,7 +115,7 @@ const grammar = { { captures: {0: {name: 'keyword.fsharp'}}, match: - '\\b(async|seq|promise|task|maybe|asyncMaybe|controller|scope|application|pipeline)\\s*\\{', + '\\b(async|seq|promise|task|maybe|asyncMaybe|controller|scope|application|pipeline)(?=\\s*\\{)', name: 'cexpr.fsharp' } ] @@ -234,7 +234,7 @@ const grammar = { }, { captures: { - 1: {name: 'keyword.symbol.fsharp'}, + 1: {name: 'keyword.symbol.arrow.fsharp'}, 2: {name: 'keyword.symbol.fsharp'}, 3: {name: 'entity.name.type.fsharp'} }, @@ -288,7 +288,7 @@ const grammar = { { begin: "\\s*(->)\\s*([[:alpha:]0-9'`^._ ]+)(<)", beginCaptures: { - 1: {name: 'keyword.symbol.fsharp'}, + 1: {name: 'keyword.symbol.arrow.fsharp'}, 2: {name: 'entity.name.type.fsharp'}, 3: {name: 'keyword.symbol.fsharp'} }, @@ -304,7 +304,7 @@ const grammar = { }, { captures: { - 1: {name: 'keyword.symbol.fsharp'}, + 1: {name: 'keyword.symbol.arrow.fsharp'}, 2: {name: 'entity.name.type.fsharp'} }, match: "\\s*(->)\\s*(?!with|get|set\\b)\\b([\\w0-9'`^._]+)" @@ -342,7 +342,7 @@ const grammar = { }, constants: { patterns: [ - {match: '\\(\\)', name: 'constant.language.unit.fsharp'}, + {match: '\\(\\)', name: 'keyword.symbol.fsharp'}, { match: '\\b-?[0-9][0-9_]*((\\.([0-9][0-9_]*([eE][+-]??[0-9][0-9_]*)?)?)|([eE][+-]??[0-9][0-9_]*))', @@ -354,7 +354,7 @@ const grammar = { name: 'constant.numeric.integer.nativeint.fsharp' }, {match: '\\b(true|false)\\b', name: 'constant.language.boolean.fsharp'}, - {match: '\\b(null|unit|void)\\b', name: 'constant.other.fsharp'} + {match: '\\b(null|void)\\b', name: 'constant.other.fsharp'} ] }, definition: { @@ -369,8 +369,11 @@ const grammar = { 4: {name: 'storage.modifier.fsharp'}, 5: {name: 'variable.fsharp'} }, - end: '\\s*(with\\b|=|\\n+=|(?<=\\=))', - endCaptures: {1: {name: 'keyword.fsharp'}}, + end: '\\s*((with\\b)|(=|\\n+=|(?<=\\=)))', + endCaptures: { + 2: {name: 'keyword.fsharp'}, + 3: {name: 'keyword.symbol.fsharp'} + }, name: 'binding.fsharp', patterns: [{include: '#common_binding_definition'}] }, @@ -379,7 +382,7 @@ const grammar = { '\\b(use|use!|and|and!)\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?', beginCaptures: {1: {name: 'keyword.fsharp'}}, end: '\\s*(=)', - endCaptures: {1: {name: 'keyword.fsharp'}}, + endCaptures: {1: {name: 'keyword.symbol.fsharp'}}, name: 'binding.fsharp', patterns: [{include: '#common_binding_definition'}] }, @@ -388,7 +391,7 @@ const grammar = { '(?<=with|and)\\s*\\b((get|set)\\s*(?=\\())(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?', beginCaptures: {4: {name: 'variable.fsharp'}}, end: '\\s*(=|\\n+=|(?<=\\=))', - endCaptures: {1: {name: 'keyword.fsharp'}}, + endCaptures: {1: {name: 'keyword.symbol.fsharp'}}, name: 'binding.fsharp', patterns: [{include: '#common_binding_definition'}] }, @@ -410,10 +413,10 @@ const grammar = { begin: '\\b(new)\\b\\s+(\\()', beginCaptures: { 1: {name: 'keyword.fsharp'}, - 2: {name: 'keyword.fsharp'} + 2: {name: 'keyword.symbol.fsharp'} }, end: '(\\))', - endCaptures: {1: {name: 'keyword.fsharp'}}, + endCaptures: {1: {name: 'keyword.symbol.fsharp'}}, name: 'binding.fsharp', patterns: [{include: '#common_binding_definition'}] } @@ -493,7 +496,7 @@ const grammar = { "\\b(private|to|public|internal|function|yield!|yield|class|exception|match|delegate|of|new|in|as|if|then|else|elif|for|begin|end|inherit|do|let\\!|return\\!|return|interface|with|abstract|enum|member|try|finally|and|when|or|use|use\\!|struct|while|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!')\\b", name: 'keyword.fsharp' }, - {match: ':', name: 'keyword.fsharp'}, + {match: ':', name: 'keyword.symbol.fsharp'}, {include: '#constants'}, { captures: {1: {name: 'entity.name.type.fsharp'}}, @@ -539,7 +542,7 @@ const grammar = { {match: '\\b(private|public|internal)\\b', name: 'storage.modifier'}, { match: - "\\b(private|to|public|internal|function|class|exception|delegate|of|as|begin|end|inherit|let!|interface|abstract|enum|member|and|when|or|use|use\\!|struct|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!')\\b", + "\\b(private|to|public|internal|function|class|exception|delegate|of|new|as|begin|end|inherit|let!|interface|abstract|enum|member|and|when|or|use|use\\!|struct|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!')\\b", name: 'keyword.fsharp' }, { @@ -547,10 +550,10 @@ const grammar = { "\\b(match|yield|yield!|with|if|then|else|elif|for|in|return!|return|try|finally|while|do)(?!')\\b", name: 'keyword.control' }, - {match: '\\b(new)\\b', name: 'keyword.symbol.new'}, + {match: '(\\->|\\<\\-)', name: 'keyword.symbol.arrow.fsharp'}, { match: - '(&&&|\\|\\|\\||\\^\\^\\^|~~~|<<<|>>>|\\|>|\\->|\\<\\-|:>|:\\?>|:|\\[|\\]|\\;|<>|=|@|\\|\\||&&|{|}|\\||_|\\.\\.|\\,|\\+|\\-|\\*|\\/|\\^|\\!|\\>|\\>\\=|\\>\\>|\\<|\\<\\=|\\(|\\)|\\<\\<)', + '(&&&|\\|\\|\\||\\^\\^\\^|~~~|<<<|>>>|\\|>|:>|:\\?>|:|\\[|\\]|\\;|<>|=|@|\\|\\||&&|{|}|\\||_|\\.\\.|\\,|\\+|\\-|\\*|\\/|\\^|\\!|\\>|\\>\\=|\\>\\>|\\<|\\<\\=|\\(|\\)|\\<\\<)', name: 'keyword.symbol.fsharp' } ] @@ -655,7 +658,7 @@ const grammar = { beginCaptures: { 1: {name: 'keyword.fsharp'}, 2: {name: 'entity.name.type.namespace.fsharp'}, - 3: {name: 'punctuation.separator.namespace-definition.fsharp'}, + 3: {name: 'keyword.symbol.fsharp'}, 4: {name: 'entity.name.section.fsharp'} }, end: '(\\s|$)', @@ -757,7 +760,7 @@ const grammar = { 4: {name: 'keyword.fsharp'}, 5: {name: 'variable.parameter.fsharp'}, 6: {name: 'keyword.symbol.fsharp'}, - 7: {name: 'constant.language.unit.fsharp'} + 7: {name: 'keyword.symbol.fsharp'} }, name: 'record.fsharp', patterns: [ @@ -769,9 +772,9 @@ const grammar = { }, { begin: '(<)', - beginCaptures: {1: {name: 'keyword.fsharp'}}, + beginCaptures: {1: {name: 'keyword.symbol.fsharp'}}, end: '((?)', - endCaptures: {1: {name: 'keyword.fsharp'}}, + endCaptures: {1: {name: 'keyword.symbol.fsharp'}}, patterns: [ { captures: {1: {name: 'entity.name.type.fsharp'}}, @@ -804,10 +807,7 @@ const grammar = { ] }, { - captures: { - 1: {name: 'keyword.symbol.fsharp'}, - 2: {name: 'storage.modifier.fsharp'} - }, + captures: {1: {name: 'storage.modifier.fsharp'}}, match: '\\s*(private|internal|public)' }, { @@ -959,7 +959,7 @@ const grammar = { }, variables: { patterns: [ - {match: '\\(\\)', name: 'constant.language.unit.fsharp'}, + {match: '\\(\\)', name: 'keyword.symbol.fsharp'}, { captures: { 1: {name: 'keyword.symbol.fsharp'}, diff --git a/lang/source.gfm.js b/lang/source.gfm.js index 9c94710..6a51636 100644 --- a/lang/source.gfm.js +++ b/lang/source.gfm.js @@ -1,983 +1,2 @@ -// This is a TextMate grammar distributed by `starry-night`. -// This grammar is developed at -// -// and licensed `mit`. -// See for more info. -/** @type {import('../lib/index.js').Grammar} */ -const grammar = { - extensions: [ - '.livemd', - '.markdown', - '.mdown', - '.mdwn', - '.mdx', - '.mkd', - '.mkdn', - '.mkdown', - '.qmd', - '.rmd', - '.ronn', - '.scd', - '.workbook' - ], - names: ['markdown', 'pandoc', 'rmarkdown'], - patterns: [ - {include: '#blocks'}, - {include: '#inlines'}, - {include: '#flavors'} - ], - repository: { - blocks: { - patterns: [ - {include: '#headings'}, - {include: '#fenced-code-blocks'}, - {include: '#fenced-code'}, - {include: '#comments'}, - {include: '#front-matter'}, - {include: '#hr'}, - {include: '#lists'}, - {include: '#quotes'}, - {include: '#github-blocks'} - ] - }, - code: { - patterns: [{begin: '(`+)(?!$)', end: '\\1', name: 'markup.raw.gfm'}] - }, - comments: { - patterns: [ - { - begin: ')', + name: 'comment.block.html' + }, + { + begin: + '(?i)((?!.*`\\|)(?:^|\\G))\\s*(?=<(script|style|pre)(\\s|$|>)(?!.*?))', + end: '(?i)(.*)(())', + endCaptures: { + 1: {patterns: []}, + 2: {name: 'meta.tag.structure.$4.end.html'}, + 3: {name: 'punctuation.definition.tag.begin.html'}, + 4: {name: 'entity.name.tag.html'}, + 5: {name: 'punctuation.definition.tag.end.html'} + }, + patterns: [ + { + begin: '(\\s*|$)', + patterns: [], + while: '(?i)^(?!.*)' + } + ] + }, + { + begin: + '(?i)((?!.*`\\|)(?:^|\\G))\\s*(?=))', + patterns: [], + while: '^(?!\\s*$)' + }, + { + begin: + '((?!.*`\\|)(?:^|\\G))\\s*(?=(<[a-zA-Z0-9\\-](/?>|\\s.*?>)|)\\s*$)', + patterns: [], + while: '^(?!\\s*$)' + } + ] + }, + 'image-inline': { + captures: { + 1: {name: 'punctuation.definition.link.description.begin.markdown'}, + 10: {name: 'punctuation.definition.string.markdown'}, + 11: {name: 'punctuation.definition.string.markdown'}, + 12: {name: 'string.other.link.description.title.markdown'}, + 13: {name: 'punctuation.definition.string.markdown'}, + 14: {name: 'punctuation.definition.string.markdown'}, + 15: {name: 'string.other.link.description.title.markdown'}, + 16: {name: 'punctuation.definition.string.markdown'}, + 17: {name: 'punctuation.definition.string.markdown'}, + 18: {name: 'punctuation.definition.metadata.markdown'}, + 2: {name: 'string.other.link.description.markdown'}, + 4: {name: 'punctuation.definition.link.description.end.markdown'}, + 5: {name: 'punctuation.definition.metadata.markdown'}, + 6: {name: 'punctuation.definition.link.markdown'}, + 7: {name: 'markup.underline.link.image.markdown'}, + 8: {name: 'punctuation.definition.link.markdown'}, + 9: {name: 'string.other.link.description.title.markdown'} + }, + match: + '(?x)\n (\\!\\[)((?[^\\[\\]\\\\]|\\\\.|\\[\\g*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n (?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((").+?(")) # or in double quotes…\n | ((\').+?(\')) # or in single quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n', + name: 'meta.image.inline.markdown' + }, + 'image-ref': { + captures: { + 1: {name: 'punctuation.definition.link.description.begin.markdown'}, + 2: {name: 'string.other.link.description.markdown'}, + 4: {name: 'punctuation.definition.link.description.end.markdown'}, + 5: {name: 'punctuation.definition.constant.markdown'}, + 6: {name: 'constant.other.reference.link.markdown'}, + 7: {name: 'punctuation.definition.constant.markdown'} + }, + match: + '(\\!\\[)((?[^\\[\\]\\\\]|\\\\.|\\[\\g*+\\])*+)(\\])[ ]?(\\[)(.*?)(\\])', + name: 'meta.image.reference.markdown' + }, + inline: { + patterns: [ + {include: '#ampersand'}, + {include: '#bracket'}, + {include: '#bold'}, + {include: '#italic'}, + {include: '#raw'}, + {include: '#strikethrough'}, + {include: '#escape'}, + {include: '#image-inline'}, + {include: '#image-ref'}, + {include: '#link-email'}, + {include: '#link-inet'}, + {include: '#link-inline'}, + {include: '#link-ref'}, + {include: '#link-ref-literal'}, + {include: '#link-ref-shortcut'} + ] + }, + italic: { + begin: + '(?x) (?(\\*(?=\\w)|(?]*+> # HTML tags\n | (?`+)([^`]|(?!(?(?!`))`)*+\\k\n # Raw\n | \\\\[\\\\`*_{}\\[\\]()#.!+\\->]?+ # Escapes\n | \\[\n (\n (? # Named group\n [^\\[\\]\\\\] # Match most chars\n | \\\\. # Escaped chars\n | \\[ \\g*+ \\] # Nested brackets\n )*+\n \\]\n (\n ( # Reference Link\n [ ]? # Optional space\n \\[[^\\]]*+\\] # Ref name\n )\n | ( # Inline Link\n \\( # Opening paren\n [ \\t]*+ # Optional whtiespace\n ? # URL\n [ \\t]*+ # Optional whtiespace\n ( # Optional Title\n (?[\'"])\n (.*?)\n \\k<title>\n )?\n \\)\n )\n )\n )\n | \\k<open>\\k<open> # Must be bold closer\n | (?!(?<=\\S)\\k<open>). # Everything besides\n # style closer\n )++\n (?<=\\S)(?=_\\b|\\*)\\k<open> # Close\n )\n', + captures: {1: {name: 'punctuation.definition.italic.markdown'}}, + end: '(?<=\\S)(\\1)((?!\\1)|(?=\\1\\1))', + name: 'markup.italic.markdown', + patterns: [ + { + applyEndPatternLast: true, + begin: '(?=<[^>]*?>)', + end: '(?<=>)', + patterns: [] + }, + {include: '#escape'}, + {include: '#ampersand'}, + {include: '#bracket'}, + {include: '#raw'}, + {include: '#bold'}, + {include: '#image-inline'}, + {include: '#link-inline'}, + {include: '#link-inet'}, + {include: '#link-email'}, + {include: '#image-ref'}, + {include: '#link-ref-literal'}, + {include: '#link-ref'}, + {include: '#link-ref-shortcut'}, + {include: '#strikethrough'} + ] + }, + 'link-def': { + captures: { + 1: {name: 'punctuation.definition.constant.markdown'}, + 10: {name: 'punctuation.definition.string.begin.markdown'}, + 11: {name: 'punctuation.definition.string.end.markdown'}, + 12: {name: 'string.other.link.description.title.markdown'}, + 13: {name: 'punctuation.definition.string.begin.markdown'}, + 14: {name: 'punctuation.definition.string.end.markdown'}, + 15: {name: 'string.other.link.description.title.markdown'}, + 16: {name: 'punctuation.definition.string.begin.markdown'}, + 17: {name: 'punctuation.definition.string.end.markdown'}, + 2: {name: 'constant.other.reference.link.markdown'}, + 3: {name: 'punctuation.definition.constant.markdown'}, + 4: {name: 'punctuation.separator.key-value.markdown'}, + 5: {name: 'punctuation.definition.link.markdown'}, + 6: {name: 'markup.underline.link.markdown'}, + 7: {name: 'punctuation.definition.link.markdown'}, + 8: {name: 'markup.underline.link.markdown'}, + 9: {name: 'string.other.link.description.title.markdown'} + }, + match: + '(?x)\n \\s* # Leading whitespace\n (\\[)([^]]+?)(\\])(:) # Reference name\n [ \\t]* # Optional whitespace\n (?:(<)([^\\>]+?)(>)|(\\S+?)) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((").+?(")) # or in double quotes…\n | ((\').+?(\')) # or in single quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n $\n', + name: 'meta.link.reference.def.markdown' + }, + 'link-email': { + captures: { + 1: {name: 'punctuation.definition.link.markdown'}, + 2: {name: 'markup.underline.link.markdown'}, + 4: {name: 'punctuation.definition.link.markdown'} + }, + match: + "(<)((?:mailto:)?[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)(>)", + name: 'meta.link.email.lt-gt.markdown' + }, + 'link-inet': { + captures: { + 1: {name: 'punctuation.definition.link.markdown'}, + 2: {name: 'markup.underline.link.markdown'}, + 3: {name: 'punctuation.definition.link.markdown'} + }, + match: '(<)((?:https?|ftp)://.*?)(>)', + name: 'meta.link.inet.markdown' + }, + 'link-inline': { + captures: { + 1: {name: 'punctuation.definition.link.title.begin.markdown'}, + 10: {name: 'string.other.link.description.title.markdown'}, + 11: {name: 'punctuation.definition.string.begin.markdown'}, + 12: {name: 'punctuation.definition.string.end.markdown'}, + 13: {name: 'string.other.link.description.title.markdown'}, + 14: {name: 'punctuation.definition.string.begin.markdown'}, + 15: {name: 'punctuation.definition.string.end.markdown'}, + 16: {name: 'string.other.link.description.title.markdown'}, + 17: {name: 'punctuation.definition.string.begin.markdown'}, + 18: {name: 'punctuation.definition.string.end.markdown'}, + 19: {name: 'punctuation.definition.metadata.markdown'}, + 2: {name: 'string.other.link.title.markdown'}, + 4: {name: 'punctuation.definition.link.title.end.markdown'}, + 5: {name: 'punctuation.definition.metadata.markdown'}, + 6: {name: 'punctuation.definition.link.markdown'}, + 7: {name: 'markup.underline.link.markdown'}, + 9: {name: 'punctuation.definition.link.markdown'} + }, + match: + '(?x)\n (\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n (<?)((?<url>(?>[^\\s()]+)|\\(\\g<url>*\\))*)(>?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((").+?(")) # or in double quotes…\n | ((\').+?(\')) # or in single quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n', + name: 'meta.link.inline.markdown' + }, + 'link-ref': { + captures: { + 1: {name: 'punctuation.definition.link.title.begin.markdown'}, + 2: {name: 'string.other.link.title.markdown'}, + 4: {name: 'punctuation.definition.link.title.end.markdown'}, + 5: {name: 'punctuation.definition.constant.begin.markdown'}, + 6: {name: 'constant.other.reference.link.markdown'}, + 7: {name: 'punctuation.definition.constant.end.markdown'} + }, + match: + '(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])(\\[)([^\\]]*+)(\\])', + name: 'meta.link.reference.markdown' + }, + 'link-ref-literal': { + captures: { + 1: {name: 'punctuation.definition.link.title.begin.markdown'}, + 2: {name: 'string.other.link.title.markdown'}, + 4: {name: 'punctuation.definition.link.title.end.markdown'}, + 5: {name: 'punctuation.definition.constant.begin.markdown'}, + 6: {name: 'punctuation.definition.constant.end.markdown'} + }, + match: + '(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])[ ]?(\\[)(\\])', + name: 'meta.link.reference.literal.markdown' + }, + 'link-ref-shortcut': { + captures: { + 1: {name: 'punctuation.definition.link.title.begin.markdown'}, + 2: {name: 'string.other.link.title.markdown'}, + 3: {name: 'punctuation.definition.link.title.end.markdown'} + }, + match: '(\\[)(\\S+?)(\\])', + name: 'meta.link.reference.markdown' + }, + list_paragraph: { + begin: '((?!.*`\\|)(?:^|\\G))(?=\\S)(?![*+->]\\s|[0-9]+\\.\\s)', + name: 'meta.paragraph.markdown', + patterns: [{include: '#inline'}, {include: '#heading-setext'}], + while: + '((?!.*`\\|)(?:^|\\G))(?!\\s*$|#|\\s*([-*_>]\\s*){3,}[ \\t]*$\\n?|[ ]{0,3}[*+->]|[ ]{0,3}[0-9]+\\.)' + }, + lists: { + patterns: [ + { + begin: '((?!.*`\\|)(?:^|\\G))(\\s*)([*+-])([ \\t])', + beginCaptures: { + 3: {name: 'punctuation.definition.list.begin.markdown'} + }, + name: 'markup.list.unnumbered.markdown', + patterns: [{include: '#block'}, {include: '#list_paragraph'}], + while: '(((?!.*`\\|)(?:^|\\G))(\\s*|\\t))|(^[ \\t]*$)' + }, + { + begin: '((?!.*`\\|)(?:^|\\G))(\\s*)([0-9]+\\.)([ \\t])', + beginCaptures: { + 3: {name: 'punctuation.definition.list.begin.markdown'} + }, + name: 'markup.list.numbered.markdown', + patterns: [{include: '#block'}, {include: '#list_paragraph'}], + while: '(((?!.*`\\|)(?:^|\\G))(\\s*|\\t))|(^[ \\t]*$)' + } + ] + }, + raw: { + captures: { + 1: {name: 'punctuation.definition.raw.markdown'}, + 3: {name: 'punctuation.definition.raw.markdown'} + }, + match: '(`+)((?:[^`]|(?!(?<!`)\\1(?!`))`)*+)(\\1)', + name: 'markup.inline.raw.string.markdown' + }, + raw_block: { + begin: '((?!.*`\\|)(?:^|\\G))(\\s*|\\t)', + name: 'markup.raw.block.markdown', + while: '((?!.*`\\|)(?:^|\\G))(\\s*|\\t)' + }, + separator: { + match: '((?!.*`\\|)(?:^|\\G))\\s*([\\*\\-\\_])(\\s*\\2){2,}[ \\t]*$\\n?', + name: 'meta.separator.markdown' + }, + strikethrough: { + captures: { + 1: {name: 'punctuation.definition.strikethrough.markdown'}, + 2: { + patterns: [ + { + applyEndPatternLast: true, + begin: '(?=<[^>]*?>)', + end: '(?<=>)', + patterns: [] + }, + {include: '#escape'}, + {include: '#ampersand'}, + {include: '#bracket'}, + {include: '#raw'}, + {include: '#bold'}, + {include: '#italic'}, + {include: '#image-inline'}, + {include: '#link-inline'}, + {include: '#link-inet'}, + {include: '#link-email'}, + {include: '#image-ref'}, + {include: '#link-ref-literal'}, + {include: '#link-ref'}, + {include: '#link-ref-shortcut'} + ] + }, + 3: {name: 'punctuation.definition.strikethrough.markdown'} + }, + match: '(~+)((?:[^~]|(?!(?<!~)\\1(?!~))~)*+)(\\1)', + name: 'markup.strikethrough.markdown' + } + }, + scopeName: 'text.html.markdown.d2' +} + +export default grammar diff --git a/lang/text.marko.js b/lang/text.marko.js index c01ff18..05533f4 100644 --- a/lang/text.marko.js +++ b/lang/text.marko.js @@ -5,301 +5,211 @@ // See <https://github.com/wooorm/starry-night> for more info. /** @type {import('../lib/index.js').Grammar} */ const grammar = { - dependencies: ['source.ts'], + dependencies: ['source.js'], extensions: ['.marko'], names: ['marko', 'markojs'], patterns: [ { - begin: '^\\s*(style)(\\b[^\\s]*\\.css)?\\s+({)', + begin: '^\\s*(style)\\s+(\\{)', beginCaptures: { - 1: {name: 'support.type.builtin.marko'}, - 2: {name: 'storage.modifier.marko.css'}, - 3: {name: 'punctuation.section.scope.begin.marko.css'} + 1: {name: 'storage.type.marko.css'}, + 2: {name: 'punctuation.section.scope.begin.marko.css'} }, contentName: 'source.css', - end: '}', + end: '\\}', endCaptures: {0: {name: 'punctuation.section.scope.end.marko.css'}}, name: 'meta.embedded.css', patterns: [{include: 'source.css'}] }, { - begin: '^\\s*(style)(\\b[^\\s]*\\.less)\\s+({)', + begin: '^\\s*(style)\\.(less)\\s+(\\{)', beginCaptures: { - 1: {name: 'support.type.builtin.marko'}, + 1: {name: 'storage.type.marko.css'}, 2: {name: 'storage.modifier.marko.css'}, 3: {name: 'punctuation.section.scope.begin.marko.css'} }, contentName: 'source.less', - end: '}', + end: '\\}', endCaptures: {0: {name: 'punctuation.section.scope.end.marko.css'}}, name: 'meta.embedded.less', patterns: [{include: 'source.css.less'}] }, { - begin: '^\\s*(style)(\\b[^\\s]*\\.scss)\\s+({)', + begin: '^\\s*(style)\\.(scss)\\s+(\\{)', beginCaptures: { - 1: {name: 'support.type.builtin.marko'}, + 1: {name: 'storage.type.marko.css'}, 2: {name: 'storage.modifier.marko.css'}, 3: {name: 'punctuation.section.scope.begin.marko.css'} }, contentName: 'source.scss', - end: '}', + end: '\\}', endCaptures: {0: {name: 'punctuation.section.scope.end.marko.css'}}, name: 'meta.embedded.scss', patterns: [{include: 'source.css.scss'}] }, { - begin: '^\\s*(style)(\\b[^\\s]*\\.[tj]s)\\s+({)', - beginCaptures: { - 1: {name: 'support.type.builtin.marko'}, - 2: {name: 'storage.modifier.marko.css'}, - 3: {name: 'punctuation.section.scope.begin.marko.css'} - }, - contentName: 'source.ts', - end: '}', - endCaptures: {0: {name: 'punctuation.section.scope.end.marko.css'}}, - name: 'meta.embedded.ts', - patterns: [{include: 'source.ts'}] - }, - { - begin: '^\\s*(?:(static\\b)|(?=(?:class|import|export)\\b))', + begin: '^\\s*(?:(static )|(?=(?:class|import|export) ))', beginCaptures: {1: {name: 'keyword.control.static.marko'}}, - contentName: 'source.ts', + contentName: 'source.js', end: '(?=\\n|$)', - name: 'meta.embedded.ts', - patterns: [{include: 'source.ts'}] + name: 'meta.embedded.js', + patterns: [{include: '#javascript-statement'}] }, {include: '#content-concise-mode'} ], repository: { - 'attr-value': { - begin: '\\s*(:?=)\\s*', - beginCaptures: {1: {patterns: [{include: 'source.ts'}]}}, - contentName: 'source.ts', - name: 'meta.embedded.ts', - patterns: [{include: '#javascript-expression'}] - }, attrs: { patterns: [ - {include: '#javascript-comments'}, { applyEndPatternLast: true, begin: - '(?:(key|on[a-zA-Z0-9_$-]+|[a-zA-Z0-9_$]+Change|no-update(?:-body)?(?:-if)?)|([a-zA-Z0-9_$][a-zA-Z0-9_$-]*)|(#[a-zA-Z0-9_$][a-zA-Z0-9_$-]*))(:[a-zA-Z0-9_$][a-zA-Z0-9_$-]*)?', + '(?:\\s+|,)(?:(key|on[a-zA-Z0-9_$-]+|[a-zA-Z0-9_$]+Change|no-update(?:-body)?(?:-if)?)|([a-zA-Z0-9_$][a-zA-Z0-9_$-]*))(:[a-zA-Z0-9_$][a-zA-Z0-9_$-]*)?', beginCaptures: { 1: {name: 'support.type.attribute-name.marko'}, 2: {name: 'entity.other.attribute-name.marko'}, - 3: {name: 'support.function.attribute-name.marko'}, - 4: {name: 'support.function.attribute-name.marko'} + 3: {name: 'support.function.attribute-name.marko'} }, end: '(?=.|$)', name: 'meta.marko-attribute', patterns: [ {include: '#html-args-or-method'}, - {include: '#attr-value'} + { + applyEndPatternLast: true, + begin: '\\s*(:?=)\\s*', + beginCaptures: {1: {patterns: [{include: 'source.js'}]}}, + contentName: 'source.js', + end: '(?=.|$)', + name: 'meta.embedded.js', + patterns: [{include: '#javascript-expression'}] + } ] }, { - begin: '(\\.\\.\\.)', + applyEndPatternLast: true, + begin: '(?:\\s+|,)\\.\\.\\.', beginCaptures: {1: {name: 'keyword.operator.spread.marko'}}, - contentName: 'source.ts', + contentName: 'source.js', + end: '(?=.|$)', name: 'meta.marko-spread-attribute', patterns: [{include: '#javascript-expression'}] }, { begin: '\\s*(,(?!,))', - captures: {1: {name: 'punctuation.separator.comma.marko'}}, - end: '(?=\\S)' + captures: {1: {patterns: [{include: 'source.js'}]}}, + end: '(?!\\S)' }, + {include: '#javascript-comment-multiline'}, {include: '#invalid'} ] }, - cdata: { - begin: '\\s*<!\\[CDATA\\[', - beginCaptures: {0: {name: 'punctuation.definition.tag.begin.marko'}}, - contentName: 'string.other.inline-data.marko', - end: ']]>', - endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, - name: 'meta.tag.metadata.cdata.marko' - }, - 'concise-attr-group': { - begin: '\\s*(\\[)', - beginCaptures: {1: {name: 'punctuation.section.scope.begin.marko'}}, - end: ']', - endCaptures: {0: {name: 'punctuation.section.scope.end.marko'}}, - patterns: [ - {include: '#concise-attr-group'}, - {begin: '\\s+', end: '(?=\\S)'}, - {include: '#attrs'}, - {include: '#invalid'} - ] - }, - 'concise-comment-block': { - begin: '\\s*(--+)\\s*$', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, - end: '\\1', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, - name: 'meta.section.marko-comment-block', - patterns: [{include: '#content-embedded-comment'}] - }, - 'concise-comment-line': { - applyEndPatternLast: true, - begin: '\\s*(--+)', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, - end: '$', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, - name: 'meta.section.marko-comment-line', - patterns: [{include: '#content-embedded-comment'}] - }, 'concise-html-block': { begin: '\\s*(--+)\\s*$', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + beginCaptures: {2: {name: 'punctuation.section.scope.begin.marko'}}, end: '\\1', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, + endCaptures: {1: {name: 'punctuation.section.scope.end.marko'}}, name: 'meta.section.marko-html-block', patterns: [{include: '#content-html-mode'}] }, 'concise-html-line': { captures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'}, + 1: {name: 'punctuation.section.scope.begin.marko'}, 2: { patterns: [ - {include: '#cdata'}, - {include: '#doctype'}, - {include: '#declaration'}, - {include: '#javascript-comments-after-whitespace'}, - {include: '#html-comment'}, + {include: '#html-comments'}, {include: '#tag-html'}, - {match: '\\\\.', name: 'text.marko'}, + {match: '\\\\.', name: 'string'}, {include: '#placeholder'}, - {match: '.+?', name: 'text.marko'} + {match: '.+?', name: 'string'} ] - }, - 3: {name: 'punctuation.section.embedded.scope.end.marko'} + } }, - match: '\\s*(--+)(?=\\s+\\S)(.*)($)', + match: '\\s*(--+)(?=\\s+\\S)(.*$)', name: 'meta.section.marko-html-line' }, 'concise-open-tag-content': { patterns: [ {include: '#tag-before-attrs'}, - {include: '#concise-semi-eol'}, { - begin: '(?!^)[ \\t]', - end: '(?=--)|(?=\\n)', - patterns: [ - {include: '#concise-semi-eol'}, - {include: '#concise-attr-group'}, - {begin: '[ \\t]+', end: '(?=\\S|\\n)'}, - {include: '#attrs'}, - {include: '#invalid'} - ] + begin: '\\s*\\[', + beginCaptures: {0: {name: 'punctuation.section.scope.begin.marko'}}, + end: ']', + endCaptures: {0: {name: 'punctuation.section.scope.end.marko'}}, + patterns: [{include: '#attrs'}, {include: '#invalid'}] + }, + { + begin: '(?!^)(?= )', + end: '(?=--)|(?<!,)(?=\\n)', + patterns: [{include: '#attrs'}, {include: '#invalid'}] } ] }, 'concise-script-block': { - begin: '\\s*(--+)\\s*$', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, - end: '\\1', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, + begin: '(\\s+)(--+)\\s*$', + beginCaptures: {2: {name: 'punctuation.section.scope.begin.marko'}}, + end: '(\\2)|(?=^(?!\\1)\\s*\\S)', + endCaptures: {1: {name: 'punctuation.section.scope.end.marko'}}, name: 'meta.section.marko-script-block', patterns: [{include: '#content-embedded-script'}] }, 'concise-script-line': { applyEndPatternLast: true, begin: '\\s*(--+)', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + beginCaptures: {1: {name: 'punctuation.section.scope.begin.marko'}}, end: '$', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, name: 'meta.section.marko-script-line', patterns: [{include: '#content-embedded-script'}] }, - 'concise-semi-eol': { - begin: '\\s*(;)', - beginCaptures: {1: {name: 'punctuation.terminator.marko'}}, - end: '$', - patterns: [ - {include: '#javascript-comments'}, - {include: '#html-comment'}, - {include: '#invalid'} - ] - }, 'concise-style-block': { - begin: '\\s*(--+)\\s*$', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + begin: '(\\s+)(--+)\\s*$', + beginCaptures: {2: {name: 'punctuation.section.scope.begin.marko'}}, contentName: 'source.css', - end: '\\1', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, + end: '(\\2)|(?=^(?!\\1)\\s*\\S)', + endCaptures: {1: {name: 'punctuation.section.scope.end.marko'}}, name: 'meta.section.marko-style-block', patterns: [{include: '#content-embedded-style'}] }, 'concise-style-block-less': { - begin: '\\s*(--+)\\s*$', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + begin: '(\\s+)(--+)\\s*$', + beginCaptures: {2: {name: 'punctuation.section.scope.begin.marko'}}, contentName: 'source.less', - end: '\\1', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, + end: '(\\2)|(?=^(?!\\1)\\s*\\S)', + endCaptures: {1: {name: 'punctuation.section.scope.end.marko'}}, name: 'meta.section.marko-style-block', patterns: [{include: '#content-embedded-style-less'}] }, 'concise-style-block-scss': { - begin: '\\s*(--+)\\s*$', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + begin: '(\\s+)(--+)\\s*$', + beginCaptures: {2: {name: 'punctuation.section.scope.begin.marko'}}, contentName: 'source.scss', - end: '\\1', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, + end: '(\\2)|(?=^(?!\\1)\\s*\\S)', + endCaptures: {1: {name: 'punctuation.section.scope.end.marko'}}, name: 'meta.section.marko-style-block', patterns: [{include: '#content-embedded-style-scss'}] }, 'concise-style-line': { applyEndPatternLast: true, begin: '\\s*(--+)', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + beginCaptures: {1: {name: 'punctuation.section.scope.begin.marko'}}, contentName: 'source.css', end: '$', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, name: 'meta.section.marko-style-line', patterns: [{include: '#content-embedded-style'}] }, 'concise-style-line-less': { applyEndPatternLast: true, begin: '\\s*(--+)', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + beginCaptures: {1: {name: 'punctuation.section.scope.begin.marko'}}, contentName: 'source.less', end: '$', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, name: 'meta.section.marko-style-line', patterns: [{include: '#content-embedded-style-less'}] }, 'concise-style-line-scss': { applyEndPatternLast: true, begin: '\\s*(--+)', - beginCaptures: { - 1: {name: 'punctuation.section.embedded.scope.begin.marko'} - }, + beginCaptures: {1: {name: 'punctuation.section.scope.begin.marko'}}, contentName: 'source.scss', end: '$', - endCaptures: {0: {name: 'punctuation.section.embedded.scope.end.marko'}}, name: 'meta.section.marko-style-line', patterns: [{include: '#content-embedded-style-scss'}] }, @@ -308,51 +218,29 @@ const grammar = { patterns: [ {include: '#scriptlet'}, {include: '#javascript-comments'}, - {include: '#cdata'}, - {include: '#doctype'}, - {include: '#declaration'}, - {include: '#html-comment'}, + {include: '#html-comments'}, {include: '#concise-html-block'}, {include: '#concise-html-line'}, - {include: '#invalid-close-tag'}, {include: '#tag-html'}, { patterns: [ { - begin: '^(\\s*)(?=html-comment\\b)', - patterns: [ - {include: '#concise-open-tag-content'}, - {include: '#concise-comment-block'}, - {include: '#concise-comment-line'} - ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' - }, - { - begin: '^(\\s*)(?=style\\b[^\\s]*\\.less\\b)', + begin: '^(\\s*)(?=style\\.less\\b)', patterns: [ {include: '#concise-open-tag-content'}, {include: '#concise-style-block-less'}, {include: '#concise-style-line-less'} ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' + while: '(?=^\\1\\s+(\\S|$))' }, { - begin: '^(\\s*)(?=style\\b[^\\s]*\\.scss\\b)', + begin: '^(\\s*)(?=style\\.scss\\b)', patterns: [ {include: '#concise-open-tag-content'}, {include: '#concise-style-block-scss'}, {include: '#concise-style-line-scss'} ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' - }, - { - begin: '^(\\s*)(?=style\\b[^\\s]*\\.[tj]s\\b)', - patterns: [ - {include: '#concise-open-tag-content'}, - {include: '#concise-script-block'}, - {include: '#concise-script-line'} - ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' + while: '(?=^\\1\\s+(\\S|$))' }, { begin: '^(\\s*)(?=style\\b)', @@ -361,7 +249,7 @@ const grammar = { {include: '#concise-style-block'}, {include: '#concise-style-line'} ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' + while: '(?=^\\1\\s+(\\S|$))' }, { begin: '^(\\s*)(?=script\\b)', @@ -370,29 +258,24 @@ const grammar = { {include: '#concise-script-block'}, {include: '#concise-script-line'} ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' + while: '(?=^\\1\\s+(\\S|$))' }, { - begin: '^([ \\t]*)(?=[a-zA-Z0-9_$@.#])', + begin: '^(\\s*)(?=[a-zA-Z0-9_$@])', patterns: [ {include: '#concise-open-tag-content'}, {include: '#content-concise-mode'} ], - while: '(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))' + while: '(?=^\\1\\s+(\\S|$))' } ] - } - ] - }, - 'content-embedded-comment': { - patterns: [ - {include: '#placeholder'}, - {match: '.', name: 'comment.block.marko'} + }, + {include: '#invalid'} ] }, 'content-embedded-script': { - name: 'meta.embedded.ts', - patterns: [{include: '#placeholder'}, {include: 'source.ts'}] + name: 'meta.embedded.js', + patterns: [{include: '#placeholder'}, {include: 'source.js'}] }, 'content-embedded-style': { name: 'meta.embedded.css', @@ -409,240 +292,177 @@ const grammar = { 'content-html-mode': { patterns: [ {include: '#scriptlet'}, - {include: '#cdata'}, - {include: '#doctype'}, - {include: '#declaration'}, - {include: '#javascript-comments-after-whitespace'}, - {include: '#html-comment'}, - {include: '#invalid-close-tag'}, + {include: '#html-comments'}, {include: '#tag-html'}, - {match: '\\\\.', name: 'text.marko'}, + {match: '\\\\.', name: 'string'}, {include: '#placeholder'}, - {match: '.+?', name: 'text.marko'} + {match: '.+?', name: 'string'} ] }, - declaration: { - begin: '(<\\?)\\s*([a-zA-Z0-9_$-]*)', - captures: { - 1: {name: 'punctuation.definition.tag.marko'}, - 2: {name: 'entity.name.tag.marko'} - }, - end: '(\\??>)', - name: 'meta.tag.metadata.processing.xml.marko', + 'html-args-or-method': { patterns: [ + {include: '#javascript-args'}, { - captures: { - 1: {name: 'entity.other.attribute-name.marko'}, - 2: {name: 'punctuation.separator.key-value.html'}, - 3: {name: 'string.quoted.double.marko'}, - 4: {name: 'string.quoted.single.marko'}, - 5: {name: 'string.unquoted.marko'} - }, - match: - '((?:[^\\s=?>]+|\\?(?!>))+)(=)(?:("(?:[^"\\\\]+|\\\\.)*")|(\'(?:[^\'\\\\]+|\\\\.)*\')|((?:[^\\s?>]+|\\?(?!>))+))' + begin: '(?<=\\))\\s*(?=\\{)', + contentName: 'source.js', + end: '(?<=\\})', + name: 'meta.embedded.js', + patterns: [{include: 'source.js'}] } ] }, - doctype: { - begin: '\\s*<!(?=(?i:DOCTYPE\\s))', - beginCaptures: {0: {name: 'punctuation.definition.tag.begin.marko'}}, - end: '>', - endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, - name: 'meta.tag.metadata.doctype.marko', - patterns: [ - {match: '\\G(?i:DOCTYPE)', name: 'entity.name.tag.marko'}, - {begin: '"', end: '"', name: 'string.quoted.double.marko'}, - {match: '[^\\s>]+', name: 'entity.other.attribute-name.marko'} - ] - }, - 'html-args-or-method': { + 'html-comments': { patterns: [ { - begin: '\\s*(?=\\()', - contentName: 'source.ts', - end: '(?<=\\))', - name: 'meta.embedded.ts', - patterns: [{include: 'source.ts'}] + begin: '\\s*(<!(--)?)', + beginCaptures: {1: {name: 'punctuation.definition.comment.marko'}}, + end: '\\2>', + endCaptures: {0: {name: 'punctuation.definition.comment.marko'}}, + name: 'comment.block.marko' }, { - begin: '(?<=\\))\\s*(?={)', - contentName: 'source.ts', - end: '(?<=})', - name: 'meta.embedded.ts', - patterns: [{include: 'source.ts'}] + begin: '\\s*(<html-comment>)', + beginCaptures: {1: {name: 'punctuation.definition.comment.marko'}}, + end: '</html-comment>', + endCaptures: {0: {name: 'punctuation.definition.comment.marko'}}, + name: 'comment.block.marko' } ] }, - 'html-comment': { - begin: '\\s*(<!(--)?)', - beginCaptures: {1: {name: 'punctuation.definition.comment.marko'}}, - end: '\\2>', - endCaptures: {0: {name: 'punctuation.definition.comment.marko'}}, - name: 'comment.block.marko' - }, invalid: { - match: '\\S', + match: '[^\\s]', name: 'invalid.illegal.character-not-allowed-here.marko' }, - 'invalid-close-tag': { - begin: '\\s*</.*?', - end: '>', - name: 'invalid.illegal.character-not-allowed-here.marko' + 'javascript-args': { + begin: '(?=\\()', + contentName: 'source.js', + end: '(?<=\\))', + name: 'meta.embedded.js', + patterns: [{include: 'source.js'}] + }, + 'javascript-comment-line': { + captures: {0: {patterns: [{include: 'source.js'}]}}, + contentName: 'source.js', + match: '\\s*//.*$' + }, + 'javascript-comment-multiline': { + begin: '\\s*(?=/\\*)', + contentName: 'source.js', + end: '(?<=\\*/)', + patterns: [{include: 'source.js'}] }, 'javascript-comments': { patterns: [ - { - begin: '\\s*(?=/\\*)', - contentName: 'source.ts', - end: '(?<=\\*/)', - patterns: [{include: 'source.ts'}] - }, - { - captures: {0: {patterns: [{include: 'source.ts'}]}}, - contentName: 'source.ts', - match: '\\s*//.*$' - } + {include: '#javascript-comment-multiline'}, + {include: '#javascript-comment-line'} ] }, - 'javascript-comments-after-whitespace': { + 'javascript-enclosed': { patterns: [ + {include: '#javascript-comments'}, + {include: '#javascript-args'}, + {begin: '(?={)', end: '(?<=})', patterns: [{include: 'source.js'}]}, + {begin: '(?=\\[)', end: '(?<=])', patterns: [{include: 'source.js'}]}, + {begin: '(?=")', end: '(?<=")', patterns: [{include: 'source.js'}]}, + {begin: "(?=')", end: "(?<=')", patterns: [{include: 'source.js'}]}, + {begin: '(?=`)', end: '(?<=`)', patterns: [{include: 'source.js'}]}, { - begin: '(?:^|\\s+)(?=/\\*)', - contentName: 'source.ts', - end: '(?<=\\*/)', - patterns: [{include: 'source.ts'}] + begin: '/(?!<[\\]})A-Z0-9.<%]\\s*/)(?!/?>|$)', + captures: {0: {name: 'string.regexp.js'}}, + contentName: 'source.js', + end: '/[gimsuy]*', + patterns: [{include: 'source.js#regexp'}, {include: 'source.js'}] }, { - captures: {0: {patterns: [{include: 'source.ts'}]}}, - contentName: 'source.ts', - match: '(?:^|\\s+)//.*$' + begin: + '(?x)\\s*(?:\n\t\t\t\t\t\t\t\t(?:\\b(?:new|typeof|instanceof|in)\\b)| # Keyword operators\n\t\t\t\t\t\t\t\t\\&\\&|\\|\\|| # Logical operators\n\t\t\t\t\t\t\t\t[\\^|&]| # Bitwise operators\n\t\t\t\t\t\t\t\t[!=]=|[!=]==|<|<[=<]|=>| # Comparison operators (Note you cannot use * or ? here)\n\t\t\t\t\t\t\t\t[?:]| # Ternary operators\n\t\t\t\t\t\t\t\t[-+*%](?!-) # Arithmetic operators\n\t\t\t\t\t\t\t)', + captures: {0: {patterns: [{include: 'source.js'}]}}, + end: '(?=\\S)' } ] }, 'javascript-expression': { patterns: [ - {include: '#javascript-comments'}, - { - captures: {0: {patterns: [{include: 'source.ts'}]}}, - match: - '(?:\\s*\\b(?:as|await|extends|in|instanceof|keyof|new|typeof|void))+\\s+(?![:=/,;>])[a-zA-Z0-9_$@#]*' - }, + {include: '#javascript-enclosed'}, { - applyEndPatternLast: true, - captures: { - 0: { - name: 'string.regexp.ts', - patterns: [{include: 'source.ts#regexp'}, {include: 'source.ts'}] - } - }, - contentName: 'source.ts', - match: - '(?<![a-zA-Z0-9%).<\\]}])\\s*/(?:[^\\\\\\[/]+|\\\\.|\\[(?:[^\\\\\\]]+|\\\\.)*\\])*/[a-zA-Z]*' - }, - {include: 'source.ts'} + captures: {0: {patterns: [{include: 'source.js'}]}}, + match: '[0-9a-zA-Z$_.]+' + } ] }, - 'javascript-placeholder': { - begin: '\\${', - beginCaptures: { - 0: {name: 'punctuation.definition.template-expression.begin.ts'} - }, - contentName: 'source.ts', - end: '}', - endCaptures: { - 0: {name: 'punctuation.definition.template-expression.end.ts'} - }, - patterns: [{include: 'source.ts'}] + 'javascript-statement': { + patterns: [{include: '#javascript-enclosed'}, {include: 'source.js'}] }, 'open-tag-content': { patterns: [ {include: '#tag-before-attrs'}, - {begin: '(?!/?>)', end: '(?=/?>)', patterns: [{include: '#attrs'}]} + {begin: '(?= )', end: '(?=/?>)', patterns: [{include: '#attrs'}]} ] }, placeholder: { begin: '\\$!?{', beginCaptures: { - 0: {name: 'punctuation.definition.template-expression.begin.ts'} + 0: {name: 'punctuation.definition.template-expression.begin.js'} }, - contentName: 'source.ts', + contentName: 'source.js', end: '}', endCaptures: { - 0: {name: 'punctuation.definition.template-expression.end.ts'} + 0: {name: 'punctuation.definition.template-expression.end.js'} }, - patterns: [{include: 'source.ts'}] + patterns: [{include: 'source.js'}] }, scriptlet: { begin: '^\\s*(\\$)\\s+', beginCaptures: {1: {name: 'keyword.control.scriptlet.marko'}}, - contentName: 'source.ts', + contentName: 'source.js', end: '$', - name: 'meta.embedded.ts', - patterns: [{include: 'source.ts'}] + name: 'meta.embedded.js', + patterns: [{include: '#javascript-statement'}] }, 'tag-before-attrs': { patterns: [ {include: '#tag-name'}, - {include: '#tag-shorthand-class-or-id'}, { - begin: '/(?![/*])', - beginCaptures: { - 0: {name: 'punctuation.separator.tag-variable.marko'} - }, - contentName: 'source.ts', - end: '(?=[,;(|/>]|:?=|\\s+[^:]|$)', - name: 'meta.embedded.ts', + match: '[#.][a-zA-Z0-9_$][a-zA-Z0-9_$-]*', + name: 'entity.other.attribute-name.marko' + }, + { + begin: '/(?!/)', + beginCaptures: {0: {name: 'punctuation.separator.key-value.marko'}}, + contentName: 'source.js', + end: '(?=:?\\=|\\s|>|$|\\||\\(|/)', + name: 'meta.embedded.js', patterns: [ { match: '[a-zA-Z$_][0-9a-zA-Z$_]*', - name: 'variable.other.constant.object.ts' - }, - { - begin: '{', - captures: { - 0: {name: 'punctuation.definition.binding-pattern.object.ts'} - }, - end: '}', - patterns: [ - {include: 'source.ts#object-binding-element'}, - {include: '#javascript-expression'} - ] - }, - { - begin: '\\[', - captures: { - 0: {name: 'punctuation.definition.binding-pattern.array.ts'} - }, - end: ']', - patterns: [ - {include: 'source.ts#array-binding-element'}, - {include: '#javascript-expression'} - ] - }, - { - begin: '\\s*(:)(?!=)', - beginCaptures: {1: {name: 'keyword.operator.type.annotation.ts'}}, - patterns: [ - {include: 'source.ts#type'}, - {include: '#javascript-expression'} - ] + name: 'variable.other.constant.object.js' }, + {include: 'source.js#object-binding-pattern'}, + {include: 'source.js#array-binding-pattern'}, + {include: 'source.js#var-single-variable'}, {include: '#javascript-expression'} ] }, + { + applyEndPatternLast: true, + begin: '\\s*(:?=)\\s*', + beginCaptures: {1: {patterns: [{include: 'source.js'}]}}, + contentName: 'source.js', + end: '(?=.|$)', + name: 'meta.embedded.js', + patterns: [{include: '#javascript-expression'}] + }, { begin: '\\|', beginCaptures: {0: {name: 'punctuation.section.scope.begin.marko'}}, - contentName: 'source.ts', end: '\\|', endCaptures: {0: {name: 'punctuation.section.scope.end.marko'}}, patterns: [ - {include: 'source.ts#function-parameters-body'}, - {include: 'source.ts'} + {include: 'source.js#function-parameters-body'}, + {include: 'source.js'} ] }, - {include: '#html-args-or-method'}, - {include: '#attr-value'} + {include: '#html-args-or-method'} ] }, 'tag-html': { @@ -650,35 +470,13 @@ const grammar = { { begin: '\\s*(<)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)\\b)', - beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, + beginCaptures: {1: {name: 'punctuation.definition.tag.end.marko'}}, end: '/?>', endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, patterns: [{include: '#open-tag-content'}] }, { - begin: '\\s*(<)(?=html-comment\\b)', - beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, - end: '/>|(?<=\\>)', - endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, - patterns: [ - {include: '#open-tag-content'}, - { - begin: '>', - beginCaptures: { - 0: {name: 'punctuation.definition.tag.end.marko'} - }, - end: '\\s*(</)(html-comment)?(>)', - endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, - 2: {patterns: [{include: '#tag-name'}]}, - 3: {name: 'punctuation.definition.tag.end.marko'} - }, - patterns: [{include: '#content-embedded-comment'}] - } - ] - }, - { - begin: '\\s*(<)(?=style\\b[^\\s]*\\.less\\b)', + begin: '\\s*(<)(?=style\\.less\\b)', beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, end: '/>|(?<=\\>)', endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, @@ -692,7 +490,7 @@ const grammar = { contentName: 'source.less', end: '\\s*(</)(style)?(>)', endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, + 1: {name: 'punctuation.definition.tag.end.marko'}, 2: {patterns: [{include: '#tag-name'}]}, 3: {name: 'punctuation.definition.tag.end.marko'} }, @@ -701,7 +499,7 @@ const grammar = { ] }, { - begin: '\\s*(<)(?=style\\b[^\\s]*\\.scss\\b)', + begin: '\\s*(<)(?=style\\.scss\\b)', beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, end: '/>|(?<=\\>)', endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, @@ -715,7 +513,7 @@ const grammar = { contentName: 'source.less', end: '\\s*(</)(style)?(>)', endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, + 1: {name: 'punctuation.definition.tag.end.marko'}, 2: {patterns: [{include: '#tag-name'}]}, 3: {name: 'punctuation.definition.tag.end.marko'} }, @@ -723,29 +521,6 @@ const grammar = { } ] }, - { - begin: '\\s*(<)(?=style\\b[^\\s]*\\.[tj]s\\b)', - beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, - end: '/>|(?<=\\>)', - endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, - patterns: [ - {include: '#open-tag-content'}, - { - begin: '>', - beginCaptures: { - 0: {name: 'punctuation.definition.tag.end.marko'} - }, - contentName: 'source.ts', - end: '\\s*(</)(style)?(>)', - endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, - 2: {patterns: [{include: '#tag-name'}]}, - 3: {name: 'punctuation.definition.tag.end.marko'} - }, - patterns: [{include: '#content-embedded-script'}] - } - ] - }, { begin: '\\s*(<)(?=style\\b)', beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, @@ -761,7 +536,7 @@ const grammar = { contentName: 'source.css', end: '\\s*(</)(style)?(>)', endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, + 1: {name: 'punctuation.definition.tag.end.marko'}, 2: {patterns: [{include: '#tag-name'}]}, 3: {name: 'punctuation.definition.tag.end.marko'} }, @@ -781,10 +556,10 @@ const grammar = { beginCaptures: { 0: {name: 'punctuation.definition.tag.end.marko'} }, - contentName: 'source.ts', + contentName: 'source.js', end: '\\s*(</)(script)?(>)', endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, + 1: {name: 'punctuation.definition.tag.end.marko'}, 2: {patterns: [{include: '#tag-name'}]}, 3: {name: 'punctuation.definition.tag.end.marko'} }, @@ -793,7 +568,7 @@ const grammar = { ] }, { - begin: '\\s*(<)(?=[a-zA-Z0-9_$@.#])', + begin: '\\s*(<)(?=[a-zA-Z0-9_$@])', beginCaptures: {1: {name: 'punctuation.definition.tag.begin.marko'}}, end: '/>|(?<=\\>)', endCaptures: {0: {name: 'punctuation.definition.tag.end.marko'}}, @@ -804,15 +579,10 @@ const grammar = { beginCaptures: { 0: {name: 'punctuation.definition.tag.end.marko'} }, - end: '\\s*(</)([a-zA-Z0-9_$:@.#-]+)?(.*?)(>)', + end: '\\s*(</)([a-zA-Z0-9_$:@-]+)?(.*?)(>)', endCaptures: { - 1: {name: 'punctuation.definition.tag.begin.marko'}, - 2: { - patterns: [ - {include: '#tag-name'}, - {include: '#tag-shorthand-class-or-id'} - ] - }, + 1: {name: 'punctuation.definition.tag.end.marko'}, + 2: {patterns: [{include: '#tag-name'}]}, 3: {patterns: [{include: '#invalid'}]}, 4: {name: 'punctuation.definition.tag.end.marko'} }, @@ -824,23 +594,30 @@ const grammar = { }, 'tag-name': { patterns: [ + { + begin: '\\${', + beginCaptures: { + 0: {name: 'punctuation.definition.template-expression.begin.js'} + }, + end: '}', + endCaptures: { + 0: {name: 'punctuation.definition.template-expression.end.js'} + }, + patterns: [{include: 'source.js'}] + }, { captures: { - 1: {name: 'support.type.builtin.marko'}, + 1: {name: 'entity.name.tag.marko'}, 2: {name: 'storage.type.marko.css'}, 3: { patterns: [ { - match: '(attrs|style|effect|lifecycle)(?=\\b)', + match: '(attrs|return|import)(?=\\b)', name: 'support.type.builtin.marko' }, - { - match: '(for|if|while|else-if|else|try|await|return)(?=\\b)', - name: 'keyword.control.flow.marko' - }, { match: - '(macro|tag|async|let|const|set|get|id|html-comment)(?=\\b)(?![-:@])', + '(for|if|while|else-if|else|macro|tag|await|let|const|effect|set|get|id|lifecycle)(?=\\b)', name: 'support.function.marko' }, {match: '@.+', name: 'entity.other.attribute-name.marko'}, @@ -849,29 +626,7 @@ const grammar = { } }, match: - '\\G(style)\\b(\\.[a-zA-Z0-9$_-]+(?:\\.[a-zA-Z0-9$_-]+)*)|([a-zA-Z0-9_@](?:[a-zA-Z0-9_@-]+|:(?!=))*)' - }, - { - begin: '(?=[a-zA-Z0-9$_]|-[^-])', - end: '(?=[^a-zA-Z0-9$_-]|$)', - patterns: [ - {include: '#javascript-placeholder'}, - { - match: '(?:[a-zA-Z0-9_-]+|\\$(?!{))+', - name: 'entity.name.tag.marko' - } - ] - } - ] - }, - 'tag-shorthand-class-or-id': { - begin: '(?=[#.])', - end: '$|(?=--|[^a-zA-Z0-9_$#.-])', - patterns: [ - {include: '#javascript-placeholder'}, - { - match: '(?:[#.a-zA-Z0-9_-]+|\\$(?!{))+', - name: 'entity.other.attribute-name.marko' + '(style)\\.([a-zA-Z0-9$_-]+(?:\\.[a-zA-Z0-9$_-]+)*)|([a-zA-Z0-9_$@][a-zA-Z0-9_$@:-]*)' } ] } diff --git a/lang/text.md.js b/lang/text.md.js new file mode 100644 index 0000000..f9337d4 --- /dev/null +++ b/lang/text.md.js @@ -0,0 +1,3261 @@ +// This is a TextMate grammar distributed by `starry-night`. +// This grammar is developed at +// <https://github.com/wooorm/markdown-tm-language> +// and licensed `mit`. +// See <https://github.com/wooorm/starry-night> for more info. +/** @type {import('../lib/index.js').Grammar} */ +const grammar = { + extensions: [ + '.livemd', + '.markdown', + '.mdown', + '.mdwn', + '.mkd', + '.mkdn', + '.mkdown', + '.qmd', + '.rmd', + '.ronn', + '.scd', + '.workbook' + ], + names: ['markdown', 'md', 'pandoc', 'rmarkdown'], + patterns: [ + {include: '#markdown-frontmatter'}, + {include: '#markdown-sections'} + ], + repository: { + 'commonmark-attention': { + patterns: [ + { + match: '(?<=\\S)\\*{3,}|\\*{3,}(?=\\S)', + name: 'string.other.strong.emphasis.asterisk.md' + }, + { + match: + '(?<=[\\p{L}\\p{N}])_{3,}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{3,}|(?<![\\p{L}\\p{N}]|\\p{P})_{3,}(?!\\s)', + name: 'string.other.strong.emphasis.underscore.md' + }, + { + match: '(?<=\\S)\\*{2}|\\*{2}(?=\\S)', + name: 'string.other.strong.asterisk.md' + }, + { + match: + '(?<=[\\p{L}\\p{N}])_{2}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{2}|(?<![\\p{L}\\p{N}]|\\p{P})_{2}(?!\\s)', + name: 'string.other.strong.underscore.md' + }, + { + match: '(?<=\\S)\\*|\\*(?=\\S)', + name: 'string.other.emphasis.asterisk.md' + }, + { + match: + '(?<=[\\p{L}\\p{N}])_(?![\\p{L}\\p{N}])|(?<=\\p{P})_|(?<![\\p{L}\\p{N}]|\\p{P})_(?!\\s)', + name: 'string.other.emphasis.underscore.md' + } + ] + }, + 'commonmark-autolink': { + patterns: [ + { + captures: { + 1: {name: 'string.other.begin.autolink.md'}, + 2: {name: 'string.other.link.autolink.email.md'}, + 3: {name: 'string.other.end.autolink.md'} + }, + match: + "(<)((?:[0-9A-Za-z!\"#$%&'*+\\-\\/=?^_`{|}~'])+@(?:[0-9A-Za-z](?:[0-9A-Za-z-]{0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:[0-9A-Za-z-]{0,61}[A-Za-z])?)*))(>)" + }, + { + captures: { + 1: {name: 'string.other.begin.autolink.md'}, + 2: {name: 'string.other.link.autolink.protocol.md'}, + 3: {name: 'string.other.end.autolink.md'} + }, + match: '(<)((?:[A-Za-z][+\\-.0-9A-Za-z]{0,31}):[^\\p{Cc}\\ ]*?)(>)' + } + ] + }, + 'commonmark-block-quote': { + begin: '(?:^|\\G)[ ]{0,3}(>)[ ]?', + beginCaptures: { + 0: {name: 'markup.quote.md'}, + 1: {name: 'punctuation.definition.quote.begin.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '(?:^|\\G)[ ]{0,3}(>)[ ]?', + whileCaptures: { + 0: {name: 'markup.quote.md'}, + 1: {name: 'punctuation.definition.quote.begin.md'} + } + }, + 'commonmark-character-escape': { + match: '\\\\(?:[!"#$%&\'()*+,\\-.\\/:;<=>?@\\[\\\\\\]^_`{|}~])', + name: 'constant.language.character-escape.md' + }, + 'commonmark-character-reference': { + patterns: [ + {include: '#whatwg-html-data-character-reference-named-terminated'}, + { + captures: { + 1: {name: 'punctuation.definition.character-reference.begin.html'}, + 2: { + name: 'punctuation.definition.character-reference.numeric.html' + }, + 3: { + name: 'punctuation.definition.character-reference.numeric.hexadecimal.html' + }, + 4: {name: 'constant.numeric.integer.hexadecimal.html'}, + 5: {name: 'punctuation.definition.character-reference.end.html'} + }, + match: '(&)(#)([Xx])([0-9A-Fa-f]{1,6})(;)', + name: 'constant.language.character-reference.numeric.hexadecimal.html' + }, + { + captures: { + 1: {name: 'punctuation.definition.character-reference.begin.html'}, + 2: { + name: 'punctuation.definition.character-reference.numeric.html' + }, + 3: {name: 'constant.numeric.integer.decimal.html'}, + 4: {name: 'punctuation.definition.character-reference.end.html'} + }, + match: '(&)(#)([0-9]{1,7})(;)', + name: 'constant.language.character-reference.numeric.decimal.html' + } + ] + }, + 'commonmark-code-fenced': { + patterns: [ + {include: '#commonmark-code-fenced-apib'}, + {include: '#commonmark-code-fenced-asciidoc'}, + {include: '#commonmark-code-fenced-c'}, + {include: '#commonmark-code-fenced-clojure'}, + {include: '#commonmark-code-fenced-coffee'}, + {include: '#commonmark-code-fenced-console'}, + {include: '#commonmark-code-fenced-cpp'}, + {include: '#commonmark-code-fenced-cs'}, + {include: '#commonmark-code-fenced-css'}, + {include: '#commonmark-code-fenced-diff'}, + {include: '#commonmark-code-fenced-dockerfile'}, + {include: '#commonmark-code-fenced-elixir'}, + {include: '#commonmark-code-fenced-elm'}, + {include: '#commonmark-code-fenced-erlang'}, + {include: '#commonmark-code-fenced-gitconfig'}, + {include: '#commonmark-code-fenced-go'}, + {include: '#commonmark-code-fenced-graphql'}, + {include: '#commonmark-code-fenced-haskell'}, + {include: '#commonmark-code-fenced-html'}, + {include: '#commonmark-code-fenced-ini'}, + {include: '#commonmark-code-fenced-java'}, + {include: '#commonmark-code-fenced-js'}, + {include: '#commonmark-code-fenced-json'}, + {include: '#commonmark-code-fenced-julia'}, + {include: '#commonmark-code-fenced-kotlin'}, + {include: '#commonmark-code-fenced-less'}, + {include: '#commonmark-code-fenced-less'}, + {include: '#commonmark-code-fenced-lua'}, + {include: '#commonmark-code-fenced-makefile'}, + {include: '#commonmark-code-fenced-md'}, + {include: '#commonmark-code-fenced-mdx'}, + {include: '#commonmark-code-fenced-objc'}, + {include: '#commonmark-code-fenced-perl'}, + {include: '#commonmark-code-fenced-php'}, + {include: '#commonmark-code-fenced-php'}, + {include: '#commonmark-code-fenced-python'}, + {include: '#commonmark-code-fenced-r'}, + {include: '#commonmark-code-fenced-raku'}, + {include: '#commonmark-code-fenced-ruby'}, + {include: '#commonmark-code-fenced-rust'}, + {include: '#commonmark-code-fenced-scala'}, + {include: '#commonmark-code-fenced-scss'}, + {include: '#commonmark-code-fenced-shell'}, + {include: '#commonmark-code-fenced-shell-session'}, + {include: '#commonmark-code-fenced-sql'}, + {include: '#commonmark-code-fenced-svg'}, + {include: '#commonmark-code-fenced-swift'}, + {include: '#commonmark-code-fenced-toml'}, + {include: '#commonmark-code-fenced-ts'}, + {include: '#commonmark-code-fenced-tsx'}, + {include: '#commonmark-code-fenced-vbnet'}, + {include: '#commonmark-code-fenced-xml'}, + {include: '#commonmark-code-fenced-yaml'}, + {include: '#commonmark-code-fenced-unknown'} + ] + }, + 'commonmark-code-fenced-apib': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:api\\x2dblueprint|(?:.*\\.)?apib))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.apib', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.apib.md', + patterns: [{include: 'text.html.markdown.source.gfm.apib'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:api\\x2dblueprint|(?:.*\\.)?apib))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.apib', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.apib.md', + patterns: [{include: 'text.html.markdown.source.gfm.apib'}] + } + ] + }, + 'commonmark-code-fenced-asciidoc': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.asciidoc', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.asciidoc.md', + patterns: [{include: 'text.html.asciidoc'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.asciidoc', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.asciidoc.md', + patterns: [{include: 'text.html.asciidoc'}] + } + ] + }, + 'commonmark-code-fenced-c': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:dtrace|dtrace\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.c', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.c.md', + patterns: [{include: 'source.c'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:dtrace|dtrace\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.c', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.c.md', + patterns: [{include: 'source.c'}] + } + ] + }, + 'commonmark-code-fenced-clojure': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.clojure', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.clojure.md', + patterns: [{include: 'source.clojure'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.clojure', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.clojure.md', + patterns: [{include: 'source.clojure'}] + } + ] + }, + 'commonmark-code-fenced-coffee': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:coffee\\x2dscript|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.coffee', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.coffee.md', + patterns: [{include: 'source.coffee'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:coffee\\x2dscript|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.coffee', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.coffee.md', + patterns: [{include: 'source.coffee'}] + } + ] + }, + 'commonmark-code-fenced-console': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:pycon|python\\x2dconsole))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.console', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.console.md', + patterns: [{include: 'text.python.console'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:pycon|python\\x2dconsole))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.console', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.console.md', + patterns: [{include: 'text.python.console'}] + } + ] + }, + 'commonmark-code-fenced-cpp': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.cpp', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.cpp.md', + patterns: [{include: 'source.c++'}, {include: 'source.c++'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.cpp', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.cpp.md', + patterns: [{include: 'source.c++'}, {include: 'source.c++'}] + } + ] + }, + 'commonmark-code-fenced-cs': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|csx|eq|linq|uno)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.cs', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.cs.md', + patterns: [{include: 'source.cs'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|csx|eq|linq|uno)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.cs', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.cs.md', + patterns: [{include: 'source.cs'}] + } + ] + }, + 'commonmark-code-fenced-css': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.css', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.css.md', + patterns: [{include: 'source.css'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.css', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.css.md', + patterns: [{include: 'source.css'}] + } + ] + }, + 'commonmark-code-fenced-diff': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.diff', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.diff.md', + patterns: [{include: 'source.diff'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.diff', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.diff.md', + patterns: [{include: 'source.diff'}] + } + ] + }, + 'commonmark-code-fenced-dockerfile': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:containerfile|(?:.*\\.)?dockerfile))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.dockerfile', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.dockerfile.md', + patterns: [{include: 'source.dockerfile'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:containerfile|(?:.*\\.)?dockerfile))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.dockerfile', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.dockerfile.md', + patterns: [{include: 'source.dockerfile'}] + } + ] + }, + 'commonmark-code-fenced-elixir': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:elixir|(?:.*\\.)?(?:ex|exs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.elixir', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.elixir.md', + patterns: [{include: 'source.elixir'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:elixir|(?:.*\\.)?(?:ex|exs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.elixir', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.elixir.md', + patterns: [{include: 'source.elixir'}] + } + ] + }, + 'commonmark-code-fenced-elm': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.elm', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.elm.md', + patterns: [{include: 'source.elm'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.elm', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.elm.md', + patterns: [{include: 'source.elm'}] + } + ] + }, + 'commonmark-code-fenced-erlang': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.erlang', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.erlang.md', + patterns: [{include: 'source.erlang'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.erlang', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.erlang.md', + patterns: [{include: 'source.erlang'}] + } + ] + }, + 'commonmark-code-fenced-gitconfig': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:git\\x2dconfig|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.gitconfig', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.gitconfig.md', + patterns: [{include: 'source.gitconfig'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:git\\x2dconfig|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.gitconfig', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.gitconfig.md', + patterns: [{include: 'source.gitconfig'}] + } + ] + }, + 'commonmark-code-fenced-go': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.go', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.go.md', + patterns: [{include: 'source.go'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.go', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.go.md', + patterns: [{include: 'source.go'}] + } + ] + }, + 'commonmark-code-fenced-graphql': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.graphql', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.graphql.md', + patterns: [{include: 'source.graphql'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.graphql', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.graphql.md', + patterns: [{include: 'source.graphql'}] + } + ] + }, + 'commonmark-code-fenced-haskell': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.haskell', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.haskell.md', + patterns: [{include: 'source.haskell'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.haskell', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.haskell.md', + patterns: [{include: 'source.haskell'}] + } + ] + }, + 'commonmark-code-fenced-html': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.html', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.html.md', + patterns: [{include: 'text.html.basic'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.html', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.html.md', + patterns: [{include: 'text.html.basic'}] + } + ] + }, + 'commonmark-code-fenced-ini': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.ini', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.ini.md', + patterns: [{include: 'source.ini'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.ini', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.ini.md', + patterns: [{include: 'source.ini'}] + } + ] + }, + 'commonmark-code-fenced-java': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:apex|chuck|unrealscript|(?:.*\\.)?(?:ck|cls|jav|java|jsh|uc)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.java', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.java.md', + patterns: [{include: 'source.java'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:apex|chuck|unrealscript|(?:.*\\.)?(?:ck|cls|jav|java|jsh|uc)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.java', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.java.md', + patterns: [{include: 'source.java'}] + } + ] + }, + 'commonmark-code-fenced-js': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.js', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.js.md', + patterns: [{include: 'source.js'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.js', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.js.md', + patterns: [{include: 'source.js'}] + } + ] + }, + 'commonmark-code-fenced-json': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|tfstate|tfstate\\.backup|topojson|webapp|webmanifest|yy|yyp)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.json', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.json.md', + patterns: [{include: 'source.json'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|tfstate|tfstate\\.backup|topojson|webapp|webmanifest|yy|yyp)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.json', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.json.md', + patterns: [{include: 'source.json'}] + } + ] + }, + 'commonmark-code-fenced-julia': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:julia|(?:.*\\.)?jl))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.julia', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.julia.md', + patterns: [{include: 'source.julia'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:julia|(?:.*\\.)?jl))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.julia', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.julia.md', + patterns: [{include: 'source.julia'}] + } + ] + }, + 'commonmark-code-fenced-kotlin': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:kotlin|(?:.*\\.)?(?:kt|ktm|kts)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.kotlin', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.kotlin.md', + patterns: [{include: 'source.kotlin'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:kotlin|(?:.*\\.)?(?:kt|ktm|kts)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.kotlin', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.kotlin.md', + patterns: [{include: 'source.kotlin'}] + } + ] + }, + 'commonmark-code-fenced-less': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:less\\x2dcss|(?:.*\\.)?less))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.less', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.less.md', + patterns: [{include: 'source.css.less'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:less\\x2dcss|(?:.*\\.)?less))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.less', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.less.md', + patterns: [{include: 'source.css.less'}] + } + ] + }, + 'commonmark-code-fenced-lua': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.lua', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.lua.md', + patterns: [{include: 'source.lua'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.lua', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.lua.md', + patterns: [{include: 'source.lua'}] + } + ] + }, + 'commonmark-code-fenced-makefile': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:bsdmake|mf|(?:.*\\.)?(?:mak|make|makefile|mk|mkfile)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.makefile', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.makefile.md', + patterns: [{include: 'source.makefile'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:bsdmake|mf|(?:.*\\.)?(?:mak|make|makefile|mk|mkfile)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.makefile', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.makefile.md', + patterns: [{include: 'source.makefile'}] + } + ] + }, + 'commonmark-code-fenced-md': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:pandoc|rmarkdown|(?:.*\\.)?(?:livemd|markdown|mdown|mdwn|mkd|mkdn|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.md', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.md.md', + patterns: [{include: 'source.gfm'}, {include: 'source.gfm'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:pandoc|rmarkdown|(?:.*\\.)?(?:livemd|markdown|mdown|mdwn|mkd|mkdn|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.md', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.md.md', + patterns: [{include: 'source.gfm'}, {include: 'source.gfm'}] + } + ] + }, + 'commonmark-code-fenced-mdx': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?mdx))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.mdx', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.mdx.md', + patterns: [{include: 'source.mdx'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?mdx))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.mdx', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.mdx.md', + patterns: [{include: 'source.mdx'}] + } + ] + }, + 'commonmark-code-fenced-objc': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:obj\\x2dc|objc|objective\\x2dc|objectivec))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.objc', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.objc.md', + patterns: [{include: 'source.objc'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:obj\\x2dc|objc|objective\\x2dc|objectivec))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.objc', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.objc.md', + patterns: [{include: 'source.objc'}] + } + ] + }, + 'commonmark-code-fenced-perl': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:cperl|(?:.*\\.)?(?:cgi|perl|ph|pl|plx|pm|psgi|t)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.perl', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.perl.md', + patterns: [{include: 'source.perl'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:cperl|(?:.*\\.)?(?:cgi|perl|ph|pl|plx|pm|psgi|t)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.perl', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.perl.md', + patterns: [{include: 'source.perl'}] + } + ] + }, + 'commonmark-code-fenced-php': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:html\\+php|inc|php|(?:.*\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.php', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.php.md', + patterns: [{include: 'text.html.php'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:html\\+php|inc|php|(?:.*\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.php', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.php.md', + patterns: [{include: 'text.html.php'}] + } + ] + }, + 'commonmark-code-fenced-python': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:bazel|easybuild|python|python3|rusthon|snakemake|starlark|xonsh|(?:.*\\.)?(?:bzl|eb|gyp|gypi|lmi|py|py3|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.python', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.python.md', + patterns: [{include: 'source.python'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:bazel|easybuild|python|python3|rusthon|snakemake|starlark|xonsh|(?:.*\\.)?(?:bzl|eb|gyp|gypi|lmi|py|py3|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.python', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.python.md', + patterns: [{include: 'source.python'}] + } + ] + }, + 'commonmark-code-fenced-r': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:rscript|splus|(?:.*\\.)?(?:r|rd|rsx)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.r', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.r.md', + patterns: [{include: 'source.r'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:rscript|splus|(?:.*\\.)?(?:r|rd|rsx)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.r', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.r.md', + patterns: [{include: 'source.r'}] + } + ] + }, + 'commonmark-code-fenced-raku': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:perl\\x2d6|perl6|pod\\x2d6|(?:.*\\.)?(?:6pl|6pm|nqp|p6|p6l|p6m|pl6|pm6|pod|pod6|raku|rakumod)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.raku', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.raku.md', + patterns: [{include: 'source.raku'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:perl\\x2d6|perl6|pod\\x2d6|(?:.*\\.)?(?:6pl|6pm|nqp|p6|p6l|p6m|pl6|pm6|pod|pod6|raku|rakumod)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.raku', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.raku.md', + patterns: [{include: 'source.raku'}] + } + ] + }, + 'commonmark-code-fenced-ruby': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:jruby|macruby|(?:.*\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rb|rbi|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.ruby', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.ruby.md', + patterns: [{include: 'source.ruby'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:jruby|macruby|(?:.*\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rb|rbi|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.ruby', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.ruby.md', + patterns: [{include: 'source.ruby'}] + } + ] + }, + 'commonmark-code-fenced-rust': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:rust|(?:.*\\.)?(?:rs|rs\\.in)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.rust', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.rust.md', + patterns: [{include: 'source.rust'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:rust|(?:.*\\.)?(?:rs|rs\\.in)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.rust', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.rust.md', + patterns: [{include: 'source.rust'}] + } + ] + }, + 'commonmark-code-fenced-scala': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:kojo|sbt|sc|scala)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.scala', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.scala.md', + patterns: [{include: 'source.scala'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:kojo|sbt|sc|scala)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.scala', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.scala.md', + patterns: [{include: 'source.scala'}] + } + ] + }, + 'commonmark-code-fenced-scss': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?scss))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.scss', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.scss.md', + patterns: [{include: 'source.css.scss'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?scss))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.scss', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.scss.md', + patterns: [{include: 'source.css.scss'}] + } + ] + }, + 'commonmark-code-fenced-shell': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:abuild|alpine\\x2dabuild|apkbuild|gentoo\\x2debuild|gentoo\\x2declass|openrc|openrc\\x2drunscript|shell|shell\\x2dscript|(?:.*\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\.in|tcsh|tmux|tool|zsh|zsh\\x2dtheme)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.shell', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.shell.md', + patterns: [{include: 'source.shell'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:abuild|alpine\\x2dabuild|apkbuild|gentoo\\x2debuild|gentoo\\x2declass|openrc|openrc\\x2drunscript|shell|shell\\x2dscript|(?:.*\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\.in|tcsh|tmux|tool|zsh|zsh\\x2dtheme)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.shell', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.shell.md', + patterns: [{include: 'source.shell'}] + } + ] + }, + 'commonmark-code-fenced-shell-session': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:bash\\x2dsession|console|shellsession|(?:.*\\.)?sh\\x2dsession))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.shell-session', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.shell-session.md', + patterns: [{include: 'text.shell-session'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:bash\\x2dsession|console|shellsession|(?:.*\\.)?sh\\x2dsession))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.shell-session', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.shell-session.md', + patterns: [{include: 'text.shell-session'}] + } + ] + }, + 'commonmark-code-fenced-sql': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:plpgsql|sqlpl|(?:.*\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|sql|sql|tab|udf|viw)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.sql', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.sql.md', + patterns: [{include: 'source.sql'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:plpgsql|sqlpl|(?:.*\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|sql|sql|tab|udf|viw)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.sql', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.sql.md', + patterns: [{include: 'source.sql'}] + } + ] + }, + 'commonmark-code-fenced-svg': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?svg))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.svg', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.svg.md', + patterns: [{include: 'text.xml.svg'}, {include: 'text.xml'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?svg))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.svg', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.svg.md', + patterns: [{include: 'text.xml.svg'}, {include: 'text.xml'}] + } + ] + }, + 'commonmark-code-fenced-swift': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?swift))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.swift', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.swift.md', + patterns: [{include: 'source.swift'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?swift))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.swift', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.swift.md', + patterns: [{include: 'source.swift'}] + } + ] + }, + 'commonmark-code-fenced-toml': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?toml))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.toml', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.toml.md', + patterns: [{include: 'source.toml'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?toml))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.toml', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.toml.md', + patterns: [{include: 'source.toml'}] + } + ] + }, + 'commonmark-code-fenced-ts': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:typescript|(?:.*\\.)?(?:cts|mts|ts)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.ts', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.ts.md', + patterns: [{include: 'source.ts'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:typescript|(?:.*\\.)?(?:cts|mts|ts)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.ts', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.ts.md', + patterns: [{include: 'source.ts'}] + } + ] + }, + 'commonmark-code-fenced-tsx': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?tsx))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.tsx', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.tsx.md', + patterns: [{include: 'source.tsx'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?tsx))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.tsx', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.tsx.md', + patterns: [{include: 'source.tsx'}] + } + ] + }, + 'commonmark-code-fenced-unknown': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?:[^\\t\\n\\r` ])+)(?:[\\t ]+((?:[^\\n\\r`])+))?)?(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'markup.raw.code.fenced.md', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.other.md' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?:[^\\t\\n\\r ])+)(?:[\\t ]+((?:[^\\n\\r])+))?)?(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'markup.raw.code.fenced.md', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.other.md' + } + ] + }, + 'commonmark-code-fenced-vbnet': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:classic\\x2dvisual\\x2dbasic|fb|freebasic|realbasic|vb\\x2d\\.net|vb\\x2d6|vb\\.net|vb6|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|visual\\x2dbasic\\x2d6|visual\\x2dbasic\\x2d6\\.0|visual\\x2dbasic\\x2dclassic|visual\\x2dbasic\\x2dfor\\x2dapplications|(?:.*\\.)?(?:bi|ctl|dsr|frm|frm|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vba|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.vbnet', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.vbnet.md', + patterns: [{include: 'source.vbnet'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:classic\\x2dvisual\\x2dbasic|fb|freebasic|realbasic|vb\\x2d\\.net|vb\\x2d6|vb\\.net|vb6|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|visual\\x2dbasic\\x2d6|visual\\x2dbasic\\x2d6\\.0|visual\\x2dbasic\\x2dclassic|visual\\x2dbasic\\x2dfor\\x2dapplications|(?:.*\\.)?(?:bi|ctl|dsr|frm|frm|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vba|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.vbnet', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.vbnet.md', + patterns: [{include: 'source.vbnet'}] + } + ] + }, + 'commonmark-code-fenced-xml': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:collada|eagle|labview|web\\x2dontology\\x2dlanguage|xpages|(?:.*\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|sch|scxml|sfproj|shproj|srdf|storyboard|sublime\\x2dsnippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\.dist|xmp|xpl|xproc|xproj|xsd|xsp\\x2dconfig|xsp\\.metadata|xspec|xul|zcml)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.xml', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.xml.md', + patterns: [{include: 'text.xml'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:collada|eagle|labview|web\\x2dontology\\x2dlanguage|xpages|(?:.*\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|sch|scxml|sfproj|shproj|srdf|storyboard|sublime\\x2dsnippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\.dist|xmp|xpl|xproc|xproj|xsd|xsp\\x2dconfig|xsp\\.metadata|xspec|xul|zcml)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.xml', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.xml.md', + patterns: [{include: 'text.xml'}] + } + ] + }, + 'commonmark-code-fenced-yaml': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:jar\\x2dmanifest|kaitai\\x2dstruct|oasv2\\x2dyaml|oasv3\\x2dyaml|unity3d\\x2dasset|yaml|yml|(?:.*\\.)?(?:anim|asset|ksy|lookml|mat|meta|mir|model\\.lkml|prefab|raml|reek|rviz|sublime\\x2dsyntax|syntax|unity|view\\.lkml|yaml\\x2dtmlanguage|yaml\\.sed|yml\\.mysql)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.yaml', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.yaml.md', + patterns: [{include: 'source.yaml'}] + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:jar\\x2dmanifest|kaitai\\x2dstruct|oasv2\\x2dyaml|oasv3\\x2dyaml|unity3d\\x2dasset|yaml|yml|(?:.*\\.)?(?:anim|asset|ksy|lookml|mat|meta|mir|model\\.lkml|prefab|raml|reek|rviz|sublime\\x2dsyntax|syntax|unity|view\\.lkml|yaml\\x2dtmlanguage|yaml\\.sed|yml\\.mysql)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + beginCaptures: { + 1: {name: 'string.other.begin.code.fenced.md'}, + 2: { + name: 'entity.name.function.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'meta.embedded.yaml', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, + name: 'markup.code.yaml.md', + patterns: [{include: 'source.yaml'}] + } + ] + }, + 'commonmark-code-indented': { + captures: {1: {name: 'markup.raw.code.indented.md'}}, + match: '(?:^|\\G)(?:[ ]{4}|\\t)(.+?)$', + name: 'markup.code.other.md' + }, + 'commonmark-code-text': { + captures: { + 1: {name: 'string.other.begin.code.md'}, + 2: {name: 'markup.raw.code.md markup.inline.raw.code.md'}, + 3: {name: 'string.other.end.code.md'} + }, + match: '(?<!`)(`+)(?!`)(.+?)(?<!`)(\\1)(?!`)', + name: 'markup.code.other.md' + }, + 'commonmark-definition': { + captures: { + 1: {name: 'string.other.begin.md'}, + 10: { + name: 'string.quoted.double.md', + patterns: [{include: '#markdown-string'}] + }, + 11: {name: 'string.other.end.md'}, + 12: {name: 'string.other.begin.md'}, + 13: { + name: 'string.quoted.single.md', + patterns: [{include: '#markdown-string'}] + }, + 14: {name: 'string.other.end.md'}, + 15: {name: 'string.other.begin.md'}, + 16: { + name: 'string.quoted.paren.md', + patterns: [{include: '#markdown-string'}] + }, + 17: {name: 'string.other.end.md'}, + 2: { + name: 'entity.name.identifier.md', + patterns: [{include: '#markdown-string'}] + }, + 3: {name: 'string.other.end.md'}, + 4: {name: 'punctuation.separator.key-value.md'}, + 5: {name: 'string.other.begin.destination.md'}, + 6: { + name: 'string.other.link.destination.md', + patterns: [{include: '#markdown-string'}] + }, + 7: {name: 'string.other.end.destination.md'}, + 8: { + name: 'string.other.link.destination.md', + patterns: [{include: '#markdown-string'}] + }, + 9: {name: 'string.other.begin.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(\\[)((?:[^\\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+?)(\\])(:)[ \\t]*(?:(<)((?:[^\\n<\\\\>]|\\\\[<\\\\>]?)*)(>)|(\\g<destination_raw>))(?:[\\t ]+(?:(")((?:[^"\\\\]|\\\\["\\\\]?)*)(")|(\')((?:[^\'\\\\]|\\\\[\'\\\\]?)*)(\')|(\\()((?:[^\\)\\\\]|\\\\[\\)\\\\]?)*)(\\))))?$(?<destination_raw>(?!\\<)(?:(?:[^\\p{Cc}\\ \\\\\\(\\)]|\\\\[\\(\\)\\\\]?)|\\(\\g<destination_raw>*\\))+){0}', + name: 'meta.link.reference.def.md' + }, + 'commonmark-hard-break-escape': { + match: '\\\\$', + name: 'constant.language.character-escape.line-ending.md' + }, + 'commonmark-hard-break-trailing': { + match: '( ){2,}$', + name: 'carriage-return constant.language.character-escape.line-ending.md' + }, + 'commonmark-heading-atx': { + patterns: [ + { + captures: { + 1: {name: 'punctuation.definition.heading.md'}, + 2: { + name: 'entity.name.section.md', + patterns: [{include: '#markdown-text'}] + }, + 3: {name: 'punctuation.definition.heading.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(#{1}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', + name: 'markup.heading.atx.1.md' + }, + { + captures: { + 1: {name: 'punctuation.definition.heading.md'}, + 2: { + name: 'entity.name.section.md', + patterns: [{include: '#markdown-text'}] + }, + 3: {name: 'punctuation.definition.heading.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(#{2}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', + name: 'markup.heading.atx.2.md' + }, + { + captures: { + 1: {name: 'punctuation.definition.heading.md'}, + 2: { + name: 'entity.name.section.md', + patterns: [{include: '#markdown-text'}] + }, + 3: {name: 'punctuation.definition.heading.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(#{3}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', + name: 'markup.heading.atx.2.md' + }, + { + captures: { + 1: {name: 'punctuation.definition.heading.md'}, + 2: { + name: 'entity.name.section.md', + patterns: [{include: '#markdown-text'}] + }, + 3: {name: 'punctuation.definition.heading.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(#{4}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', + name: 'markup.heading.atx.2.md' + }, + { + captures: { + 1: {name: 'punctuation.definition.heading.md'}, + 2: { + name: 'entity.name.section.md', + patterns: [{include: '#markdown-text'}] + }, + 3: {name: 'punctuation.definition.heading.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(#{5}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', + name: 'markup.heading.atx.2.md' + }, + { + captures: { + 1: {name: 'punctuation.definition.heading.md'}, + 2: { + name: 'entity.name.section.md', + patterns: [{include: '#markdown-text'}] + }, + 3: {name: 'punctuation.definition.heading.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(#{6}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', + name: 'markup.heading.atx.2.md' + } + ] + }, + 'commonmark-heading-setext': { + patterns: [ + { + match: '(?:^|\\G)[ ]{0,3}(={1,})[ \\t]*$', + name: 'markup.heading.setext.1.md' + }, + { + match: '(?:^|\\G)[ ]{0,3}(-{1,})[ \\t]*$', + name: 'markup.heading.setext.2.md' + } + ] + }, + 'commonmark-html-flow': { + patterns: [ + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '(?:^|\\G)[ ]{0,3}<!---?>[^\\n\\r]*$', + name: 'text.html.basic' + }, + { + begin: '(?=(?:^|\\G)[ ]{0,3}<!--)', + end: '(?<=-->)([^\\n\\r]*)$', + endCaptures: {1: {patterns: [{include: '#whatwg-html'}]}}, + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '(?:^|\\G)[ ]{0,3}<\\?>[^\\n\\r]*$', + name: 'text.html.basic' + }, + { + begin: '(?=(?:^|\\G)[ ]{0,3}<\\?)', + end: '(?<=\\?>)([^\\n\\r]*)$', + endCaptures: {1: {patterns: [{include: '#whatwg-html'}]}}, + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + begin: '(?=(?:^|\\G)[ ]{0,3}<![A-Za-z])', + end: '(?<=\\>)([^\\n\\r]*)$', + endCaptures: {1: {patterns: [{include: '#whatwg-html'}]}}, + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + begin: '(?=(?:^|\\G)[ ]{0,3}<!\\[CDATA\\[)', + end: '(?<=\\]\\]>)([^\\n\\r]*)$', + endCaptures: {1: {patterns: [{include: '#whatwg-html'}]}}, + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + begin: + '(?=(?:^|\\G)[ ]{0,3}<(?i:textarea|script|style|pre)[\\t\\n\\r >])', + end: '</(?i:textarea|script|style|pre)[^\\n\\r]*$', + endCaptures: {0: {patterns: [{include: '#whatwg-html'}]}}, + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + begin: + '(?=(?:^|\\G)[ ]{0,3}</?(?i:figcaption|(?:blockquot|ifram|figur)e|(?:menuite|para)m|optgroup|c(?:olgroup|aption|enter)|(?:f(?:rame|ield)se|tfoo)t|b(?:asefont|ody)|(?:noframe|detail)s|section|summary|a(?:(?:rticl|sid)e|ddress)|l(?:egend|ink)|d(?:i(?:alog|[rv])|[dlt])|header|footer|option|frame|track|thead|tbody|t(?:it|ab)le|menu|head|base|h(?:tml|[1-6r])|form|main|col|nav|t[hr]|li|td|ol|ul|p)(?:[\\t >]|\\/>|$))', + end: '^(?=[\\\\t ]*$)', + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + begin: + '(?=(?:^|\\G)[ ]{0,3}</[A-Za-z][-0-9A-Za-z]*[\\t\\n\\r ]*>(?:[\\t ]*$))', + end: '^(?=[\\t ]*$)', + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + }, + { + begin: + '(?=(?:^|\\G)[ ]{0,3}<[A-Za-z][-0-9A-Za-z]*(?:[\\t\\n\\r ]+[:A-Z_a-z][\\-\\.0-9:A-Z_a-z]*(?:[\\t\\n\\r ]*=[\\t\\n\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'\\/<=>`]+))?)*(?:[\\t\\n\\r ]*\\/)?[\\t\\n\\r ]*>(?:[\\t ]*$))', + end: '^(?=[\\t ]*$)', + name: 'text.html.basic', + patterns: [{include: '#whatwg-html'}] + } + ] + }, + 'commonmark-html-text': { + patterns: [ + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '<!--.*?-->', + name: 'text.html.basic' + }, + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '<\\?.*?\\?>', + name: 'text.html.basic' + }, + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '<![A-Za-z].*?>', + name: 'text.html.basic' + }, + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '<!\\[CDATA\\[.*?\\]\\]>', + name: 'text.html.basic' + }, + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: '</[A-Za-z][-0-9A-Za-z]*[\\t\\n\\r ]*>', + name: 'text.html.basic' + }, + { + captures: {0: {patterns: [{include: '#whatwg-html'}]}}, + match: + '<[A-Za-z][-0-9A-Za-z]*(?:[\\t\\n\\r ]+[:A-Z_a-z][\\-\\.0-9:A-Z_a-z]*(?:[\\t\\n\\r ]*=[\\t\\n\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'\\/<=>`]+))?)*(?:[\\t\\n\\r ]*\\/)?[\\t\\n\\r ]*>', + name: 'text.html.basic' + } + ] + }, + 'commonmark-label-end': { + patterns: [ + { + captures: { + 1: {name: 'string.other.end.md'}, + 10: {name: 'string.other.begin.md'}, + 11: { + name: 'string.quoted.single.md', + patterns: [{include: '#markdown-string'}] + }, + 12: {name: 'string.other.end.md'}, + 13: {name: 'string.other.begin.md'}, + 14: { + name: 'string.quoted.paren.md', + patterns: [{include: '#markdown-string'}] + }, + 15: {name: 'string.other.end.md'}, + 16: {name: 'string.other.end.md'}, + 2: {name: 'string.other.begin.md'}, + 3: {name: 'string.other.begin.destination.md'}, + 4: { + name: 'string.other.link.destination.md', + patterns: [{include: '#markdown-string'}] + }, + 5: {name: 'string.other.end.destination.md'}, + 6: { + name: 'string.other.link.destination.md', + patterns: [{include: '#markdown-string'}] + }, + 7: {name: 'string.other.begin.md'}, + 8: { + name: 'string.quoted.double.md', + patterns: [{include: '#markdown-string'}] + }, + 9: {name: 'string.other.end.md'} + }, + match: + '(\\])(\\()[\\t ]*(?:(?:(<)((?:[^\\n<\\\\>]|\\\\[<\\\\>]?)*)(>)|(\\g<destination_raw>))(?:[\\t ]+(?:(")((?:[^"\\\\]|\\\\["\\\\]?)*)(")|(\')((?:[^\'\\\\]|\\\\[\'\\\\]?)*)(\')|(\\()((?:[^\\)\\\\]|\\\\[\\)\\\\]?)*)(\\))))?)?[\\t ]*(\\))(?<destination_raw>(?!\\<)(?:(?:[^\\p{Cc}\\ \\\\\\(\\)]|\\\\[\\(\\)\\\\]?)|\\(\\g<destination_raw>*\\))+){0}' + }, + { + captures: { + 1: {name: 'string.other.end.md'}, + 2: {name: 'string.other.begin.md'}, + 3: { + name: 'entity.name.identifier.md', + patterns: [{include: '#markdown-string'}] + }, + 4: {name: 'string.other.end.md'} + }, + match: '(\\])(\\[)((?:[^\\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+?)(\\])' + }, + {captures: {1: {name: 'string.other.end.md'}}, match: '(\\])'} + ] + }, + 'commonmark-label-start': { + patterns: [ + {match: '\\!\\[(?!\\^)', name: 'string.other.begin.image.md'}, + {match: '\\[', name: 'string.other.begin.link.md'} + ] + }, + 'commonmark-list-item': { + patterns: [ + { + begin: + '(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{4}(?![ ])|\\t)(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'variable.unordered.list.md'}, + 2: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{1}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{3}(?![ ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'variable.unordered.list.md'}, + 2: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{2}(?![ ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'variable.unordered.list.md'}, + 2: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{3}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}((?:[*+-]))(?:[ ]{1}|(?=\\n))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'variable.unordered.list.md'}, + 2: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{2}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}([0-9]{9})((?:\\.|\\)))(?:[ ]{4}(?![ ])|\\t(?![\\t ]))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}[ ]{2}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{8})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}[ ]{1}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{8})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{7})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){3}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{9})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{8})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{7})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{6})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'string.other.number.md'}, + 8: {name: 'variable.ordered.list.md'}, + 9: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{3}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{8})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{7})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{6})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{5})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'string.other.number.md'}, + 8: {name: 'variable.ordered.list.md'}, + 9: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{2}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{7})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{6})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{5})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{4})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'string.other.number.md'}, + 8: {name: 'variable.ordered.list.md'}, + 9: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}[ ]{1}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{6})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{5})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{4})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{3})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'string.other.number.md'}, + 8: {name: 'variable.ordered.list.md'}, + 9: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t){2}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{5})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{4})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{3})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{2})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'string.other.number.md'}, + 8: {name: 'variable.ordered.list.md'}, + 9: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{3}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{4})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{3})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{2})((?:\\.|\\)))(?:[ ]{3}(?![ ]))|([0-9]{1})((?:\\.|\\)))(?:[ ]{4}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'string.other.number.md'}, + 8: {name: 'variable.ordered.list.md'}, + 9: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{2}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{3})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9]{2})((?:\\.|\\)))(?:[ ]{2}(?![ ]))|([0-9]{1})((?:\\.|\\)))(?:[ ]{3}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'string.other.number.md'}, + 6: {name: 'variable.ordered.list.md'}, + 7: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)[ ]{1}' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}(?:([0-9]{2})((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))|([0-9])((?:\\.|\\)))(?:[ ]{2}(?![ ])))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'string.other.number.md'}, + 4: {name: 'variable.ordered.list.md'}, + 5: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)' + }, + { + begin: + '(?:^|\\G)[ ]{0,3}([0-9])((?:\\.|\\)))(?:[ ]{1}|(?=[ \\t]*\\n))(\\[[\\t Xx]\\](?=[\\t\\n\\r ]+(?:$|[^\\t\\n\\r ])))?', + beginCaptures: { + 1: {name: 'string.other.number.md'}, + 2: {name: 'variable.ordered.list.md'}, + 3: {name: 'keyword.other.tasklist.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)[ ]{3}' + } + ] + }, + 'commonmark-paragraph': { + begin: '(?![\\t ]*$)', + name: 'meta.paragraph.md', + patterns: [{include: '#markdown-text'}], + while: '(?:^|\\G)(?:[ ]{4}|\\t)' + }, + 'commonmark-thematic-break': { + match: '(?:^|\\G)[ ]{0,3}([-*_])[ \\t]*(?:\\1[ \\t]*){2,}$', + name: 'meta.separator.md' + }, + 'extension-directive-attribute': { + captures: { + 1: {name: 'entity.other.attribute-name.md'}, + 10: {name: 'entity.other.attribute-name.class.md'}, + 11: { + name: 'string.unquoted.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 12: {name: 'entity.other.attribute-name.id.md'}, + 13: { + name: 'string.unquoted.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 2: {name: 'punctuation.separator.key-value.md'}, + 3: {name: 'string.other.begin.md'}, + 4: { + name: 'string.quoted.double.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 5: {name: 'string.other.end.md'}, + 6: {name: 'string.other.begin.md'}, + 7: { + name: 'string.quoted.single.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 8: {name: 'string.other.end.md'}, + 9: { + name: 'string.unquoted.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + } + }, + match: + '((?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*))(?:[\\t ]*(=)[\\t ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\r "\'<=>`\\}]+)))?|(\\.)((?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*))|(#)((?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*))' + }, + 'extension-directive-container': { + begin: + '(?:^|\\G)[ ]{0,3}(:{3,})((?:[A-Za-z][0-9A-Za-z\\-_]*))(?:(\\[)(\\g<directive_label>*)(\\]))?(?:(\\{)((?:(?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*)(?:[\\t ]*=[\\t ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'<=>`\\}]+))?|[\\.#](?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*)|[\\t ])*)(\\}))?(?:[\\t ]*$)(?<directive_label>(?:[^\\\\\\[\\]]|\\\\[\\\\\\[\\]]?)|\\[\\g<directive_label>*\\]){0}', + beginCaptures: { + 1: {name: 'string.other.begin.directive.md'}, + 2: {name: 'entity.name.function.md'}, + 3: {name: 'string.other.begin.directive.label.md'}, + 4: {patterns: [{include: '#markdown-text'}]}, + 5: {name: 'string.other.end.directive.label.md'}, + 6: {name: 'string.other.begin.directive.attributes.md'}, + 7: {patterns: [{include: '#extension-directive-attribute'}]}, + 8: {name: 'string.other.end.directive.attributes.md'} + }, + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.directive.md'}}, + patterns: [{include: '#markdown-sections'}] + }, + 'extension-directive-leaf': { + captures: { + 1: {name: 'string.other.begin.directive.md'}, + 2: {name: 'entity.name.function.md'}, + 3: {name: 'string.other.begin.directive.label.md'}, + 4: {patterns: [{include: '#markdown-text'}]}, + 5: {name: 'string.other.end.directive.label.md'}, + 6: {name: 'string.other.begin.directive.attributes.md'}, + 7: {patterns: [{include: '#extension-directive-attribute'}]}, + 8: {name: 'string.other.end.directive.attributes.md'} + }, + match: + '(?:^|\\G)[ ]{0,3}(:{2})((?:[A-Za-z][0-9A-Za-z\\-_]*))(?:(\\[)(\\g<directive_label>*)(\\]))?(?:(\\{)((?:(?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*)(?:[\\t ]*=[\\t ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'<=>`\\}]+))?|[\\.#](?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*)|[\\t ])*)(\\}))?(?:[\\t ]*$)(?<directive_label>(?:[^\\\\\\[\\]]|\\\\[\\\\\\[\\]]?)|\\[\\g<directive_label>*\\]){0}', + name: 'meta.tag.${2:/downcase}.md' + }, + 'extension-directive-text': { + captures: { + 1: {name: 'string.other.begin.directive.md'}, + 2: {name: 'entity.name.function.md'}, + 3: {name: 'string.other.begin.directive.label.md'}, + 4: {patterns: [{include: '#markdown-text'}]}, + 5: {name: 'string.other.end.directive.label.md'}, + 6: {name: 'string.other.begin.directive.attributes.md'}, + 7: {patterns: [{include: '#extension-directive-attribute'}]}, + 8: {name: 'string.other.end.directive.attributes.md'} + }, + match: + '(?<!:)(:)((?:[A-Za-z][0-9A-Za-z\\-_]*))(?![0-9A-Za-z\\-_:])(?:(\\[)(\\g<directive_label>*)(\\]))?(?:(\\{)((?:(?:[A-Za-z:_][0-9A-Za-z\\-\\.:_]*)(?:[\\t ]*=[\\t ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\r "\'<=>`\\}]+))?|[\\.#](?:[^\\t\\n\\r "#\'\\.<=>`\\}][^\\t\\n\\r "#\'\\.<=>`\\}]*)|[\\t ])*)(\\}))?(?<directive_label>(?:[^\\\\\\[\\]]|\\\\[\\\\\\[\\]]?)|\\[\\g<directive_label>*\\]){0}', + name: 'meta.tag.${2:/downcase}.md' + }, + 'extension-gfm-autolink-literal': { + patterns: [ + { + match: + '(?<=^|[\\t\\n\\r \\(\\*\\_\\[\\]~])(?=(?i:www)\\.[^\\n\\r])(?:(?:[\\p{L}\\p{N}]|-|[\\._](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+\\g<path>?)?(?<path>(?:(?:[^\\t\\n\\r !"&\'\\(\\)\\*,\\.:;<\\?\\]_~]|&(?![A-Za-z]*;(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))|[!"\'\\)\\*,\\.:;\\?_~](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))|\\(\\g<path>*\\))+){0}', + name: 'string.other.link.autolink.literal.www.md' + }, + { + match: + '(?<=^|[^A-Za-z])(?i:https?://)(?=[\\p{L}\\p{N}])(?:(?:[\\p{L}\\p{N}]|-|[\\._](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+\\g<path>?)?(?<path>(?:(?:[^\\t\\n\\r !"&\'\\(\\)\\*,\\.:;<\\?\\]_~]|&(?![A-Za-z]*;(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))|[!"\'\\)\\*,\\.:;\\?_~](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))|\\(\\g<path>*\\))+){0}', + name: 'string.other.link.autolink.literal.http.md' + }, + { + match: + '(?<=^|[^A-Za-z/])(?i:mailto:|xmpp:)?(?:[0-9A-Za-z+\\-\\._])+@(?:(?:[0-9A-Za-z]|[-_](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+(?:\\.(?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[])))))+(?:[A-Za-z]|[-_](?!(?:[!"\'\\)\\*,\\.:;<\\?_~]*(?:[\\s<]|\\][\\t\\n \\(\\[]))))+', + name: 'string.other.link.autolink.literal.email.md' + } + ] + }, + 'extension-gfm-footnote-call': { + captures: { + 1: {name: 'string.other.begin.link.md'}, + 2: {name: 'string.other.begin.footnote.md'}, + 3: { + name: 'entity.name.identifier.md', + patterns: [{include: '#markdown-string'}] + }, + 4: {name: 'string.other.end.footnote.md'} + }, + match: '(\\[)(\\^)((?:[^\\t\\n\\r \\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+)(\\])' + }, + 'extension-gfm-footnote-definition': { + begin: + '(?:^|\\G)[ ]{0,3}(\\[)(\\^)((?:[^\\t\\n\\r \\[\\\\\\]]|\\\\[\\[\\\\\\]]?)+)(\\])(:)[\\t ]*', + beginCaptures: { + 1: {name: 'string.other.begin.link.md'}, + 2: {name: 'string.other.begin.footnote.md'}, + 3: { + name: 'entity.name.identifier.md', + patterns: [{include: '#markdown-string'}] + }, + 4: {name: 'string.other.end.footnote.md'} + }, + patterns: [{include: '#markdown-sections'}], + while: '^(?=[\\t ]*$)|(?:^|\\G)(?:[ ]{4}|\\t)' + }, + 'extension-gfm-strikethrough': { + match: '(?<=\\S)(?<!~)~{1,2}(?!~)|(?<!~)~{1,2}(?=\\S)(?!~)', + name: 'string.other.strikethrough.md' + }, + 'extension-gfm-table': { + begin: '(?:^|\\G)[ ]{0,3}(?=\\|[^\\n\\r]+\\|[ \\t]*$)', + end: '^(?=[\\t ]*$)', + patterns: [ + { + captures: {1: {patterns: [{include: '#markdown-text'}]}}, + match: + '(?<=\\||(?:^|\\G))[\\t ]*((?:[^\\n\\r\\\\\\|]|\\\\[\\\\\\|]?)+?)[\\t ]*(?=\\||$)' + }, + {match: '(?:\\|)', name: 'markup.list.table-delimiter.md'} + ] + }, + 'extension-github-gemoji': { + captures: { + 1: {name: 'punctuation.definition.gemoji.begin.md'}, + 2: {name: 'keyword.control.gemoji.md'}, + 3: {name: 'punctuation.definition.gemoji.end.md'} + }, + match: + '(:)((?:(?:(?:hand_with_index_finger_and_thumb_cros|mailbox_clo|fist_rai|confu)s|r(?:aised_hand_with_fingers_splay|e(?:gister|l(?:iev|ax)))|disappointed_reliev|confound|(?:a(?:ston|ngu)i|flu)sh|unamus|hush)e|(?:chart_with_(?:down|up)wards_tre|large_orange_diamo|small_(?:orang|blu)e_diamo|large_blue_diamo|parasol_on_grou|loud_sou|rewi)n|(?:rightwards_pushing_h|hourglass_flowing_s|leftwards_(?:pushing_)?h|(?:raised_back_of|palm_(?:down|up)|call_me)_h|(?:(?:(?:clippert|ascensi)on|norfolk)_is|christmas_is|desert_is|bouvet_is|new_zea|thai|eng|fin|ire)l|rightwards_h|pinching_h|writing_h|s(?:w(?:itzer|azi)|cot)l|magic_w|ok_h|icel)an|s(?:un_behind_(?:large|small|rain)_clou|hallow_pan_of_foo|tar_of_davi|leeping_be|kateboar|a(?:tisfie|uropo)|hiel|oun|qui)|(?:ear_with_hearing_a|pouring_liqu)i|(?:identification_c|(?:arrow_(?:back|for)|fast_for)w|credit_c|woman_be|biohaz|man_be|l(?:eop|iz))ar|m(?:usical_key|ortar_)boar|(?:drop_of_bl|canned_f)oo|c(?:apital_abc|upi)|person_bal|(?:black_bi|(?:cust|plac)a)r|(?:clip|key)boar|mermai|pea_po|worrie|po(?:la|u)n|threa|dv)d|(?:(?:(?:face_with_open_eyes_and_hand_over|face_with_diagonal|open|no)_mou|h(?:and_over_mou|yacin)|mammo)t|running_shirt_with_sas|(?:(?:fishing_pole_and_|blow)fi|(?:tropical_f|petri_d)i|(?:paint|tooth)bru|banglade|jellyfi)s|(?:camera_fl|wavy_d)as|triump|menora|pouc|blus|watc|das|has)h|(?:s(?:o(?:(?:uth_georgia_south_sandwich|lomon)_island|ck)|miling_face_with_three_heart|t_kitts_nevi|weat_drop|agittariu|c(?:orpiu|issor)|ymbol|hort)|twisted_rightwards_arrow|(?:northern_mariana|heard_mcdonald|(?:british_virgi|us_virgi|pitcair|cayma)n|turks_caicos|us_outlying|(?:falk|a)land|marshall|c(?:anary|ocos)|faroe)_island|(?:face_holding_back_tea|(?:c(?:ard_index_divid|rossed_fing)|pinched_fing)e|night_with_sta)r|(?:two_(?:wo)?men_holding|people_holding|heart|open)_hand|(?:sunrise_over_mountai|(?:congratul|united_n)atio|jea)n|(?:caribbean_)?netherland|(?:f(?:lower_playing_car|ace_in_clou)|crossed_swor|prayer_bea)d|(?:money_with_win|nest_with_eg|crossed_fla|hotsprin)g|revolving_heart|(?:high_brightne|(?:expression|wire)le|(?:tumbler|wine)_gla|milk_gla|compa|dre)s|performing_art|earth_america|orthodox_cros|l(?:ow_brightnes|a(?:tin_cros|o)|ung)|no_pedestrian|c(?:ontrol_kno|lu)b|b(?:ookmark_tab|rick|ean)|nesting_doll|cook_island|(?:fleur_de_l|tenn)i|(?:o(?:ncoming_b|phiuch|ctop)|hi(?:ppopotam|bisc)|trolleyb|m(?:(?:rs|x)_cla|auriti|inib)|belar|cact|abac|(?:cyp|tau)r)u|medal_sport|(?:chopstic|firewor)k|rhinocero|(?:p(?:aw_prin|eanu)|footprin)t|two_heart|princes|(?:hondur|baham)a|barbado|aquariu|c(?:ustom|hain)|maraca|comoro|flag|wale|hug|vh)s|(?:(?:diamond_shape_with_a_dot_ins|playground_sl)id|(?:(?:first_quarter|last_quarter|full|new)_moon_with|(?:zipper|money)_mouth|dotted_line|upside_down|c(?:rying_c|owboy_h)at|(?:disguis|nauseat)ed|neutral|monocle|panda|tired|woozy|clown|nerd|zany|fox)_fac|s(?:t(?:uck_out_tongue_winking_ey|eam_locomotiv)|(?:lightly_(?:frown|smil)|neez|h(?:ush|ak))ing_fac|(?:tudio_micropho|(?:hinto_shr|lot_mach)i|ierra_leo|axopho)n|mall_airplan|un_with_fac|a(?:luting_fac|tellit|k)|haved_ic|y(?:nagogu|ring)|n(?:owfl)?ak|urinam|pong)|(?:black_(?:medium_)?small|white_(?:(?:medium_)?small|large)|(?:black|white)_medium|black_large|orange|purple|yellow|b(?:rown|lue)|red)_squar|(?:(?:perso|woma)n_with_|man_with_)?probing_can|(?:p(?:ut_litter_in_its_pl|outing_f)|frowning_f|cold_f|wind_f|hot_f)ac|(?:arrows_c(?:ounterc)?lockwi|computer_mou|derelict_hou|carousel_hor|c(?:ity_sunri|hee)|heartpul|briefca|racehor|pig_no|lacros)s|(?:(?:face_with_head_band|ideograph_advant|adhesive_band|under|pack)a|currency_exchan|l(?:eft_l)?ugga|woman_jud|name_bad|man_jud|jud)g|face_with_peeking_ey|(?:(?:e(?:uropean_post_off|ar_of_r)|post_off)i|information_sour|ambulan)c|artificial_satellit|(?:busts?_in_silhouet|(?:vulcan_sal|parach)u|m(?:usical_no|ayot)|ro(?:ller_ska|set)|timor_les|ice_ska)t|(?:(?:incoming|red)_envelo|s(?:ao_tome_princi|tethosco)|(?:micro|tele)sco|citysca)p|(?:(?:(?:convenience|department)_st|musical_sc)o|f(?:light_depar|ramed_pic)tu|love_you_gestu|heart_on_fi|japanese_og|cote_divoi|perseve|singapo)r|b(?:ullettrain_sid|eliz|on)|(?:(?:female_|male_)?dete|radioa)ctiv|(?:christmas|deciduous|evergreen|tanabata|palm)_tre|(?:vibration_mo|cape_ver)d|(?:fortune_cook|neckt|self)i|(?:fork_and_)?knif|athletic_sho|(?:p(?:lead|arty)|drool|curs|melt|yawn|ly)ing_fac|vomiting_fac|(?:(?:c(?:urling_st|ycl)|meat_on_b|repeat_|headst)o|(?:fire_eng|tanger|ukra)i|rice_sce|(?:micro|i)pho|champag|pho)n|(?:cricket|video)_gam|(?:boxing_glo|oli)v|(?:d(?:ragon|izzy)|monkey)_fac|(?:m(?:artin|ozamb)iq|fond)u|wind_chim|test_tub|flat_sho|m(?:a(?:ns_sho|t)|icrob|oos|ut)|(?:handsh|fish_c|moon_c|cupc)ak|nail_car|zimbabw|ho(?:neybe|l)|ice_cub|airplan|pensiv|c(?:a(?:n(?:dl|o)|k)|o(?:ffe|oki))|tongu|purs|f(?:lut|iv)|d(?:at|ov)|n(?:iu|os)|kit|rag|ax)e|(?:(?:british_indian_ocean_territo|(?:plate_with_cutl|batt)e|medal_milita|low_batte|hunga|wea)r|family_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy))_bo|person_feeding_bab|woman_feeding_bab|s(?:u(?:spension_railwa|nn)|t(?:atue_of_libert|_barthelem|rawberr))|(?:m(?:ountain_cable|ilky_)|aerial_tram)wa|articulated_lorr|man_feeding_bab|mountain_railwa|partly_sunn|(?:vatican_c|infin)it|(?:outbox_tr|inbox_tr|birthd|motorw|paragu|urugu|norw|x_r)a|butterfl|ring_buo|t(?:urke|roph)|angr|fogg)y|(?:(?:perso|woma)n_in_motorized_wheelchai|(?:(?:notebook_with_decorative_c|four_leaf_cl)ov|(?:index_pointing_at_the_vie|white_flo)w|(?:face_with_thermome|non\\-potable_wa|woman_firefigh|desktop_compu|m(?:an_firefigh|otor_scoo)|(?:ro(?:ller_coa|o)|oy)s|potable_wa|kick_scoo|thermome|firefigh|helicop|ot)t|(?:woman_factory_wor|(?:woman_office|woman_health|health)_wor|man_(?:factory|office|health)_wor|(?:factory|office)_wor|rice_crac|black_jo|firecrac)k|telephone_receiv|(?:palms_up_toget|f(?:ire_extinguis|eat)|teac)h|(?:(?:open_)?file_fol|level_sli)d|police_offic|f(?:lying_sauc|arm)|woman_teach|roll_of_pap|(?:m(?:iddle_f|an_s)in|woman_sin|hambur|plun|dag)g|do_not_litt|wilted_flow|woman_farm|man_(?:teach|farm)|(?:bell_pe|hot_pe|fli)pp|l(?:o(?:udspeak|ve_lett|bst)|edg|add)|tokyo_tow|c(?:ucumb|lapp|anc)|b(?:e(?:ginn|av)|adg)|print|hamst)e|(?:perso|woma)n_in_manual_wheelchai|m(?:an(?:_in_motorized|(?:_in_man)?ual)|otorized)_wheelchai|(?:person_(?:white|curly|red)_|wheelc)hai|triangular_rule|(?:film_project|e(?:l_salv|cu)ad|elevat|tract|anch)o|s(?:traight_rul|pace_invad|crewdriv|nowboard|unflow|peak|wimm|ing|occ|how|urf|ki)e|r(?:ed_ca|unne|azo)|d(?:o(?:lla|o)|ee)|barbe)r|(?:(?:cloud_with_(?:lightning_and_)?ra|japanese_gobl|round_pushp|liechtenste|mandar|pengu|dolph|bahra|pushp|viol)i|(?:couple(?:_with_heart_wo|kiss_)man|construction_worker|(?:mountain_bik|bow|row)ing|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|white_haired|curly_haired|raising_hand|super(?:villain|hero)|red_haired|basketball|s(?:(?:wimm|urf)ing|assy)|haircut|no_good|(?:vampir|massag)e|b(?:iking|ald)|zombie|fairy|mage|elf|ng)_(?:wo)?ma|(?:(?:couple_with_heart_man|isle_of)_m|(?:couplekiss_woman_|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_|frowning_|s(?:tanding|auna)_|po(?:uting_|lice)|running_|blonde_|o(?:lder|k)_)wom|(?:perso|woma)n_with_turb|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_m|f(?:olding_hand_f|rowning_m)|man_with_turb|(?:turkmen|afghan|pak)ist|s(?:tanding_m|(?:outh_s)?ud|auna_m)|po(?:uting_|lice)m|running_m|azerbaij|k(?:yrgyz|azakh)st|tajikist|uzbekist|o(?:lder_m|k_m|ce)|(?:orang|bh)ut|taiw|jord)a|s(?:mall_red_triangle_dow|(?:valbard_jan_may|int_maart|ev)e|afety_pi|top_sig|t_marti|(?:corpi|po|o)o|wede)|(?:heavy_(?:d(?:ivision|ollar)|equals|minus|plus)|no_entry|female|male)_sig|(?:arrow_(?:heading|double)_d|p(?:erson_with_cr|oint_d)|arrow_up_d|thumbsd)ow|(?:house_with_gard|l(?:ock_with_ink_p|eafy_gre)|dancing_(?:wo)?m|fountain_p|keycap_t|chick|ali|yem|od)e|(?:izakaya|jack_o)_lanter|(?:funeral_u|(?:po(?:stal_h|pc)|capric)o|unico)r|chess_paw|b(?:a(?:llo|c)o|eni|rai)|l(?:anter|io)|c(?:o(?:ff)?i|row)|melo|rame|oma|yar)n|(?:s(?:t(?:uck_out_tongue_closed_ey|_vincent_grenadin)|kull_and_crossbon|unglass|pad)|(?:french_souther|palestinia)n_territori|(?:face_with_spiral|kissing_smiling)_ey|united_arab_emirat|kissing_closed_ey|(?:clinking_|dark_sun|eye)glass|(?:no_mobile_|head)phon|womans_cloth|b(?:allet_sho|lueberri)|philippin|(?:no_bicyc|seychel)l|roll_ey|(?:cher|a)ri|p(?:ancak|isc)|maldiv|leav)es|(?:f(?:amily_(?:woman_(?:woman_)?|man_(?:woman_|man_)?)girl_gir|earfu)|(?:woman_playing_hand|m(?:an_playing_hand|irror_)|c(?:onfetti|rystal)_|volley|track|base|8)bal|(?:(?:m(?:ailbox_with_(?:no_)?m|onor)|cockt|e\\-m)a|(?:person|bride|woman)_with_ve|man_with_ve|light_ra|braz|ema)i|(?:transgender|baby)_symbo|passport_contro|(?:arrow_(?:down|up)_sm|rice_b|footb)al|(?:dromedary_cam|ferris_whe|love_hot|high_he|pretz|falaf|isra)e|page_with_cur|me(?:dical_symbo|ta)|(?:n(?:ewspaper_ro|o_be)|bellhop_be)l|rugby_footbal|s(?:chool_satche|(?:peak|ee)_no_evi|oftbal|crol|anda|nai|hel)|(?:peace|atom)_symbo|hear_no_evi|cora|hote|bage|labe|rof|ow)l|(?:(?:negative_squared_cross|heavy_exclamation|part_alternation)_mar|(?:eight_spoked_)?asteris|(?:ballot_box_with_che|(?:(?:mantelpiece|alarm|timer)_c|un)lo|(?:ha(?:(?:mmer_and|ir)_p|tch(?:ing|ed)_ch)|baby_ch|joyst)i|railway_tra|lipsti|peaco)c|heavy_check_mar|white_check_mar|tr(?:opical_drin|uc)|national_par|pickup_truc|diving_mas|floppy_dis|s(?:tar_struc|hamroc|kun|har)|chipmun|denmar|duc|hoo|lin)k|(?:leftwards_arrow_with_h|arrow_right_h|(?:o(?:range|pen)|closed|blue)_b)ook|(?:woman_playing_water_pol|m(?:an(?:_(?:playing_water_pol|with_gua_pi_ma|in_tuxed)|g)|ontenegr|o(?:roc|na)c|e(?:xic|tr|m))|(?:perso|woma)n_in_tuxed|(?:trinidad_toba|vir)g|water_buffal|b(?:urkina_fas|a(?:mbo|nj)|ent)|puerto_ric|water_pol|flaming|kangaro|(?:mosqu|burr)it|(?:avoc|torn)ad|curaca|lesoth|potat|ko(?:sov|k)|tomat|d(?:ang|od)|yo_y|hoch|t(?:ac|og)|zer)o|(?:c(?:entral_african|zech)|dominican)_republic|(?:eight_pointed_black_s|six_pointed_s|qa)tar|(?:business_suit_levitat|(?:classical_buil|breast_fee)d|(?:woman_cartwhee|m(?:an_(?:cartwhee|jugg)|en_wrest)|women_wrest|woman_jugg|face_exha|cartwhee|wrest|dump)l|c(?:hildren_cross|amp)|woman_facepalm|woman_shrugg|man_(?:facepalm|shrugg)|people_hugg|(?:person_fe|woman_da|man_da)nc|fist_oncom|horse_rac|(?:no_smo|thin)k|laugh|s(?:eedl|mok)|park|w(?:arn|edd))ing|f(?:a(?:mily(?:_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy)))?|ctory)|o(?:u(?:ntain|r)|ot|g)|r(?:owning)?|i(?:re|s[ht])|ly|u)|(?:(?:(?:information_desk|handball|bearded)_|(?:frowning|ok)_|juggling_|mer)pers|(?:previous_track|p(?:lay_or_p)?ause|black_square|white_square|next_track|r(?:ecord|adio)|eject)_butt|(?:wa[nx]ing_(?:crescent|gibbous)_m|bowl_with_sp|crescent_m|racc)o|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_pers|s(?:t(?:_pierre_miquel|op_butt|ati)|tanding_pers|peech_ballo|auna_pers)|r(?:eminder_r)?ibb|thought_ballo|watermel|badmint|c(?:amero|ray)|le(?:ban|m)|oni|bis)on|(?:heavy_heart_exclama|building_construc|heart_decora|exclama)tion|(?:(?:triangular_flag_on_po|(?:(?:woman_)?technolog|m(?:ountain_bicycl|an_technolog)|bicycl)i|(?:wo)?man_scienti|(?:wo)?man_arti|s(?:afety_ve|cienti)|empty_ne)s|(?:vertical_)?traffic_ligh|(?:rescue_worker_helm|military_helm|nazar_amul|city_suns|wastebask|dropl|t(?:rump|oil)|bouqu|buck|magn|secr)e|one_piece_swimsui|(?:(?:arrow_(?:low|upp)er|point)_r|bridge_at_n|copyr|mag_r)igh|(?:bullettrain_fro|(?:potted_pl|croiss|e(?:ggpl|leph))a)n|s(?:t(?:ar_and_cresc|ud)en|cream_ca|mi(?:ley?|rk)_ca|(?:peed|ail)boa|hir)|(?:arrow_(?:low|upp)er|point)_lef|woman_astronau|r(?:o(?:tating_ligh|cke)|eceip)|heart_eyes_ca|man_astronau|(?:woman_stud|circus_t|man_stud|trid)en|(?:ringed_pla|file_cabi)ne|nut_and_bol|(?:older_)?adul|k(?:i(?:ssing_ca|wi_frui)|uwai|no)|(?:pouting_c|c(?:ut_of_m|old_sw)e|womans_h|montserr|(?:(?:motor_|row)b|lab_c)o|heartbe|toph)a|(?:woman_pil|honey_p|man_pil|[cp]arr|teap|rob)o|hiking_boo|arrow_lef|fist_righ|flashligh|f(?:ist_lef|ee)|black_ca|astronau|(?:c(?:hest|oco)|dough)nu|innocen|joy_ca|artis|(?:acce|egy)p|co(?:me|a)|pilo)t|(?:heavy_multiplication_|t\\-re)x|(?:s(?:miling_face_with_te|piral_calend)|oncoming_police_c|chocolate_b|ra(?:ilway|cing)_c|police_c|polar_be|teddy_be|madagasc|blue_c|calend|myanm)ar|c(?:l(?:o(?:ud(?:_with_lightning)?|ck(?:1[0-2]?|[2-9]))|ap)?|o(?:uple(?:_with_heart|kiss)?|nstruction|mputer|ok|p|w)|a(?:r(?:d_index)?|mera)|r(?:icket|y)|h(?:art|ild))|(?:m(?:artial_arts_unifo|echanical_a)r|(?:cherry_)?blosso|b(?:aggage_clai|roo)|ice_?crea|facepal|mushroo|restroo|vietna|dru|yu)m|(?:woman_with_headscar|m(?:obile_phone_of|aple_lea)|fallen_lea|wol)f|(?:(?:closed_lock_with|old)_|field_hoc|ice_hoc|han|don)key|g(?:lobe_with_meridians|r(?:e(?:y_(?:exclama|ques)tion|e(?:n(?:_(?:square|circle|salad|apple|heart|book)|land)|ce)|y_heart|nada)|i(?:mac|nn)ing|apes)|u(?:inea_bissau|ernsey|am|n)|(?:(?:olfing|enie)_(?:wo)?|uards(?:wo)?)man|(?:inger_roo|oal_ne|hos)t|(?:uadeloup|ame_di|iraff|oos)e|ift_heart|i(?:braltar|rl)|(?:uatemal|(?:eorg|amb)i|orill|uyan|han)a|uide_dog|(?:oggl|lov)es|arlic|emini|uitar|abon|oat|ear|b)|construction_worker|(?:(?:envelope_with|bow_and)_ar|left_right_ar|raised_eyeb)row|(?:(?:oncoming_automob|crocod)i|right_anger_bubb|l(?:eft_speech_bubb|otion_bott|ady_beet)|congo_brazzavil|eye_speech_bubb|(?:large_blue|orange|purple|yellow|brown)_circ|(?:(?:european|japanese)_cas|baby_bot)t|b(?:alance_sca|eet)|s(?:ewing_need|weat_smi)|(?:black|white|red)_circ|(?:motor|re)cyc|pood|turt|tama|waff|musc|eag)le|first_quarter_moon|s(?:m(?:all_red_triangle|i(?:ley?|rk))|t(?:uck_out_tongue|ar)|hopping|leeping|p(?:arkle|ider)|unrise|nowman|chool|cream|k(?:ull|i)|weat|ix|a)|(?:(?:b(?:osnia_herzegovi|ana)|wallis_futu|(?:french_gui|botsw)a|argenti|st_hele)n|(?:(?:equatorial|papua_new)_guin|north_kor|eritr)e|t(?:ristan_da_cunh|ad)|(?:(?:(?:french_poly|indo)ne|tuni)s|(?:new_caledo|ma(?:urita|cedo)|lithua|(?:tanz|alb|rom)a|arme|esto)n|diego_garc|s(?:audi_arab|t_luc|lov(?:ak|en)|omal|erb)|e(?:arth_as|thiop)|m(?:icrone|alay)s|(?:austra|mongo)l|c(?:ambod|roat)|(?:bulga|alge)r|(?:colom|nami|zam)b|boliv|l(?:iber|atv))i|(?:wheel_of_dhar|cine|pana)m|(?:(?:(?:closed|beach|open)_)?umbrel|ceuta_melil|venezue|ang(?:uil|o)|koa)l|c(?:ongo_kinshas|anad|ub)|(?:western_saha|a(?:mpho|ndor)|zeb)r|american_samo|video_camer|m(?:o(?:vie_camer|ldov)|alt|eg)|(?:earth_af|costa_)ric|s(?:outh_afric|ri_lank|a(?:mo|nt))|bubble_te|(?:antarct|jama)ic|ni(?:caragu|geri|nj)|austri|pi(?:nat|zz)|arub|k(?:eny|aab)|indi|u7a7|l(?:lam|ib[ry])|dn)a|l(?:ast_quarter_moon|o(?:tus|ck)|ips|eo)|(?:hammer_and_wren|c(?:ockroa|hur)|facepun|wren|crut|pun)ch|s(?:nowman_with_snow|ignal_strength|weet_potato|miling_imp|p(?:ider_web|arkle[rs])|w(?:im_brief|an)|a(?:n(?:_marino|dwich)|lt)|topwatch|t(?:a(?:dium|r[2s])|ew)|l(?:e(?:epy|d)|oth)|hrimp|yria|carf|(?:hee|oa)p|ea[lt]|h(?:oe|i[pt])|o[bs])|(?:s(?:tuffed_flatbre|p(?:iral_notep|eaking_he))|(?:exploding_h|baguette_br|flatbr)e)ad|(?:arrow_(?:heading|double)_u|(?:p(?:lace_of_wor|assenger_)sh|film_str|tul)i|page_facing_u|biting_li|(?:billed_c|world_m)a|mouse_tra|(?:curly_lo|busst)o|thumbsu|lo(?:llip)?o|clam|im)p|(?:anatomical|light_blue|sparkling|kissing|mending|orange|purple|yellow|broken|b(?:rown|l(?:ack|ue))|pink)_heart|(?:(?:transgender|black)_fla|mechanical_le|(?:checkered|pirate)_fla|electric_plu|rainbow_fla|poultry_le|service_do|white_fla|luxembour|fried_eg|moneyba|h(?:edgeh|otd)o|shru)g|(?:cloud_with|mountain)_snow|(?:(?:antigua_barb|berm)u|(?:kh|ug)an|rwan)da|(?:3r|2n)d_place_medal|1(?:st_place_medal|234|00)|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|(?:(?:cup_with_str|auto_ricksh)a|carpentry_sa|windo|jigsa)w|(?:(?:couch_and|diya)_la|f(?:ried_shri|uelpu))mp|(?:woman_mechan|man_mechan|alemb)ic|(?:european_un|accord|collis|reun)ion|(?:flight_arriv|hospit|portug|seneg|nep)al|card_file_box|(?:(?:oncoming_)?tax|m(?:o(?:unt_fuj|ya)|alaw)|s(?:paghett|ush|ar)|b(?:r(?:occol|une)|urund)|(?:djibou|kiriba)t|hait|fij)i|(?:shopping_c|white_he|bar_ch)art|d(?:isappointed|ominica|e(?:sert)?)|raising_hand|super(?:villain|hero)|b(?:e(?:verage_box|ers|d)|u(?:bbles|lb|g)|i(?:k(?:ini|e)|rd)|o(?:o(?:ks|t)|a[rt]|y)|read|a[cn]k)|ra(?:ised_hands|bbit2|t)|(?:hindu_tem|ap)ple|thong_sandal|a(?:r(?:row_(?:right|down|up)|t)|bc?|nt)?|r(?:a(?:i(?:sed_hand|nbow)|bbit|dio|m)|u(?:nning)?|epeat|i(?:ng|ce)|o(?:ck|se))|takeout_box|(?:flying_|mini)disc|(?:(?:interrob|yin_y)a|b(?:o(?:omera|wli)|angba)|(?:ping_p|hong_k)o|calli|mahjo)ng|b(?:a(?:llot_box|sket|th?|by)|o(?:o(?:k(?:mark)?|m)|w)|u(?:tter|s)|e(?:ll|er?|ar))?|heart_eyes|basketball|(?:paperclip|dancer|ticket)s|point_up_2|(?:wo)?man_cook|n(?:ew(?:spaper)?|o(?:tebook|_entry)|iger)|t(?:e(?:lephone|a)|o(?:oth|p)|r(?:oll)?|wo)|h(?:o(?:u(?:rglass|se)|rse)|a(?:mmer|nd)|eart)|paperclip|full_moon|(?:b(?:lack_ni|athtu|om)|her)b|(?:long|oil)_drum|pineapple|(?:clock(?:1[0-2]?|[2-9])3|u6e8)0|p(?:o(?:int_up|ut)|r(?:ince|ay)|i(?:ck|g)|en)|e(?:nvelope|ight|u(?:ro)?|gg|ar|ye|s)|m(?:o(?:u(?:ntain|se)|nkey|on)|echanic|a(?:ilbox|g|n)|irror)?|new_moon|d(?:iamonds|olls|art)|question|k(?:iss(?:ing)?|ey)|haircut|no_good|(?:vampir|massag)e|g(?:olf(?:ing)?|u(?:inea|ard)|e(?:nie|m)|ift|rin)|h(?:a(?:ndbag|msa)|ouses|earts|ut)|postbox|toolbox|(?:pencil|t(?:rain|iger)|whale|cat|dog)2|belgium|(?:volca|kimo)no|(?:vanuat|tuval|pala|naur|maca)u|tokelau|o(?:range|ne?|m|k)?|office|dancer|ticket|dragon|pencil|zombie|w(?:o(?:mens|rm|od)|ave|in[gk]|c)|m(?:o(?:sque|use2)|e(?:rman|ns)|a(?:li|sk))|jersey|tshirt|w(?:heel|oman)|dizzy|j(?:apan|oy)|t(?:rain|iger)|whale|fairy|a(?:nge[lr]|bcd|tm)|c(?:h(?:a(?:ir|d)|ile)|a(?:ndy|mel)|urry|rab|o(?:rn|ol|w2)|[dn])|p(?:ager|e(?:a(?:ch|r)|ru)|i(?:g2|ll|e)|oop)|n(?:otes|ine)|t(?:onga|hree|ent|ram|[mv])|f(?:erry|r(?:ies|ee|og)|ax)|u(?:7(?:533|981|121)|5(?:5b6|408|272)|6(?:307|70[89]))|mage|e(?:yes|nd)|i(?:ra[nq]|t)|cat|dog|elf|z(?:zz|ap)|yen|j(?:ar|p)|leg|id|u[kps]|ng|o[2x]|vs|kr|[\\+\\x2D]1|x|v)(:)', + name: 'string.emoji.md' + }, + 'extension-github-mention': { + captures: { + 1: {name: 'punctuation.definition.mention.begin.md'}, + 2: {name: 'string.other.link.mention.md'} + }, + match: + '(?<![0-9A-Za-z_`])(@)((?:[0-9A-Za-z][0-9A-Za-z-]{0,38})(?:\\/(?:[0-9A-Za-z][0-9A-Za-z-]{0,38}))?)(?![0-9A-Za-z_`])', + name: 'string.mention.md' + }, + 'extension-github-reference': { + patterns: [ + { + captures: { + 1: {name: 'punctuation.definition.reference.begin.md'}, + 2: {name: 'string.other.link.reference.security-advisory.md'}, + 3: {name: 'punctuation.definition.reference.begin.md'}, + 4: {name: 'string.other.link.reference.issue-or-pr.md'} + }, + match: + '(?<![0-9A-Za-z_])(?:((?i:ghsa-|cve-))([A-Za-z0-9]+)|((?i:gh-|#))([0-9]+))(?![0-9A-Za-z_])', + name: 'string.reference.md' + }, + { + captures: { + 1: {name: 'string.other.link.reference.user.md'}, + 2: {name: 'punctuation.definition.reference.begin.md'}, + 3: {name: 'string.other.link.reference.issue-or-pr.md'} + }, + match: + '(?<![^\\t\\n\\r \\(@\\[\\{])((?:[0-9A-Za-z][0-9A-Za-z-]{0,38})(?:\\/(?:(?:\\.git[0-9A-Za-z_-]|\\.(?!git)|[0-9A-Za-z_-])+))?)(#)([0-9]+)(?![0-9A-Za-z_])', + name: 'string.reference.md' + } + ] + }, + 'extension-math-flow': { + begin: '(?:^|\\G)[ ]{0,3}(\\${2,})([^\\n\\r\\$]*)$', + beginCaptures: { + 1: {name: 'string.other.begin.math.flow.md'}, + 2: {patterns: [{include: '#markdown-string'}]} + }, + contentName: 'markup.raw.math.flow.md', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', + endCaptures: {1: {name: 'string.other.end.math.flow.md'}}, + name: 'markup.code.other.md' + }, + 'extension-math-text': { + captures: { + 1: {name: 'string.other.begin.math.md'}, + 2: {name: 'markup.raw.math.md markup.inline.raw.math.md'}, + 3: {name: 'string.other.end.math.md'} + }, + match: '(?<!\\$)(\\${2,})(?!\\$)(.+?)(?<!\\$)(\\1)(?!\\$)' + }, + 'extension-toml': { + begin: '\\A\\+{3}$', + beginCaptures: {0: {name: 'string.other.begin.toml'}}, + contentName: 'meta.embedded.toml', + end: '^\\+{3}$', + endCaptures: {0: {name: 'string.other.end.toml'}}, + patterns: [{include: 'source.toml'}] + }, + 'extension-yaml': { + begin: '\\A-{3}$', + beginCaptures: {0: {name: 'string.other.begin.yaml'}}, + contentName: 'meta.embedded.yaml', + end: '^-{3}$', + endCaptures: {0: {name: 'string.other.end.yaml'}}, + patterns: [{include: 'source.yaml'}] + }, + 'markdown-frontmatter': { + patterns: [{include: '#extension-toml'}, {include: '#extension-yaml'}] + }, + 'markdown-sections': { + patterns: [ + {include: '#commonmark-block-quote'}, + {include: '#commonmark-code-fenced'}, + {include: '#commonmark-code-indented'}, + {include: '#extension-gfm-footnote-definition'}, + {include: '#commonmark-definition'}, + {include: '#commonmark-heading-atx'}, + {include: '#commonmark-thematic-break'}, + {include: '#commonmark-heading-setext'}, + {include: '#commonmark-html-flow'}, + {include: '#commonmark-list-item'}, + {include: '#extension-directive-leaf'}, + {include: '#extension-directive-container'}, + {include: '#extension-gfm-table'}, + {include: '#extension-math-flow'}, + {include: '#commonmark-paragraph'} + ] + }, + 'markdown-string': { + patterns: [ + {include: '#commonmark-character-escape'}, + {include: '#commonmark-character-reference'} + ] + }, + 'markdown-text': { + patterns: [ + {include: '#commonmark-attention'}, + {include: '#commonmark-autolink'}, + {include: '#commonmark-character-escape'}, + {include: '#commonmark-character-reference'}, + {include: '#commonmark-code-text'}, + {include: '#commonmark-hard-break-trailing'}, + {include: '#commonmark-hard-break-escape'}, + {include: '#commonmark-html-text'}, + {include: '#commonmark-label-end'}, + {include: '#extension-gfm-footnote-call'}, + {include: '#commonmark-label-start'}, + {include: '#extension-directive-text'}, + {include: '#extension-gfm-autolink-literal'}, + {include: '#extension-gfm-strikethrough'}, + {include: '#extension-github-gemoji'}, + {include: '#extension-github-mention'}, + {include: '#extension-github-reference'}, + {include: '#extension-math-text'} + ] + }, + 'whatwg-html': { + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: '#whatwg-html-data-comment'}, + {include: '#whatwg-html-data-comment-bogus'}, + {include: '#whatwg-html-rawtext-tag'}, + {include: '#whatwg-html-rawtext-tag-style'}, + {include: '#whatwg-html-rcdata-tag'}, + {include: '#whatwg-html-script-data-tag'}, + {include: '#whatwg-html-data-tag'} + ] + }, + 'whatwg-html-attribute': { + patterns: [ + {include: '#whatwg-html-attribute-event-handler'}, + {include: '#whatwg-html-attribute-style'}, + {include: '#whatwg-html-attribute-unknown'} + ] + }, + 'whatwg-html-attribute-event-handler': { + captures: { + 1: {name: 'entity.other.attribute-name.html.md'}, + 2: {name: 'punctuation.separator.key-value.html.md'}, + 3: {name: 'string.other.begin.html.md'}, + 4: { + name: 'string.quoted.double.html.md', + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: 'source.js'} + ] + }, + 5: {name: 'string.other.end.html.md'}, + 6: {name: 'string.other.begin.html.md'}, + 7: { + name: 'string.quoted.single.html.md', + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: 'source.js'} + ] + }, + 8: {name: 'string.other.end.html.md'}, + 9: { + name: 'string.unquoted.html.md', + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: 'source.js'} + ] + } + }, + match: + '((?i:on[a-z]+))(?:[\\t\\n\\f\\r ]*(=)[\\t\\n\\f\\r ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\f\\r >]+)))' + }, + 'whatwg-html-attribute-style': { + captures: { + 1: {name: 'entity.other.attribute-name.html.md'}, + 2: {name: 'punctuation.separator.key-value.html.md'}, + 3: {name: 'string.other.begin.html.md'}, + 4: { + name: 'string.quoted.double.html.md', + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: 'source.css#rule-list-innards'} + ] + }, + 5: {name: 'string.other.end.html.md'}, + 6: {name: 'string.other.begin.html.md'}, + 7: { + name: 'string.quoted.single.html.md', + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: 'source.css#rule-list-innards'} + ] + }, + 8: {name: 'string.other.end.html.md'}, + 9: { + name: 'string.unquoted.html.md', + patterns: [ + {include: '#whatwg-html-data-character-reference'}, + {include: 'source.css#rule-list-innards'} + ] + } + }, + match: + '((?i:style))(?:[\\t\\n\\f\\r ]*(=)[\\t\\n\\f\\r ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\f\\r >]+)))' + }, + 'whatwg-html-attribute-unknown': { + captures: { + 1: {name: 'entity.other.attribute-name.html.md'}, + 2: {name: 'punctuation.separator.key-value.html.md'}, + 3: {name: 'string.other.begin.html.md'}, + 4: { + name: 'string.quoted.double.html.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 5: {name: 'string.other.end.html.md'}, + 6: {name: 'string.other.begin.html.md'}, + 7: { + name: 'string.quoted.single.html.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 8: {name: 'string.other.end.html.md'}, + 9: { + name: 'string.unquoted.html.md', + patterns: [{include: '#whatwg-html-data-character-reference'}] + } + }, + match: + '((?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+))(?:[\\t\\n\\f\\r ]*(=)[\\t\\n\\f\\r ]*(?:(")([^"]*)(")|(\')([^\']*)(\')|([^\\t\\n\\f\\r >]+)))?' + }, + 'whatwg-html-data-character-reference': { + patterns: [ + {include: '#whatwg-html-data-character-reference-named-terminated'}, + {include: '#whatwg-html-data-character-reference-named-unterminated'}, + {include: '#whatwg-html-data-character-reference-numeric-hexadecimal'}, + {include: '#whatwg-html-data-character-reference-numeric-decimal'} + ] + }, + 'whatwg-html-data-character-reference-named-terminated': { + captures: { + 1: {name: 'punctuation.definition.character-reference.begin.html'}, + 2: {name: 'keyword.control.character-reference.html'}, + 3: {name: 'punctuation.definition.character-reference.end.html'} + }, + match: + '(&)((?:C(?:(?:o(?:unterClockwiseCo)?|lockwiseCo)ntourIntegra|cedi)|(?:(?:Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)|Not(?:Righ|Lef)tTriangle|(?:Not(?:(?:Succeed|Precede|Les)s|Greater)|(?:Precede|Succeed)s|Less)Slant|SquareSu(?:per|b)set|(?:Not(?:Greater|Tilde)|Tilde|Less)Full|RightTriangle|LeftTriangle|Greater(?:Slant|Full)|Precedes|Succeeds|Superset|NotHump|Subset|Tilde|Hump)Equ|int(?:er)?c|DotEqu)a|DoubleContourIntegra|(?:n(?:short)?parall|shortparall|p(?:arall|rur))e|(?:rightarrowta|l(?:eftarrowta|ced|ata|Ata)|sced|rata|perm|rced|rAta|ced)i|Proportiona|smepars|e(?:qvpars|pars|xc|um)|Integra|suphso|rarr[pt]|n(?:pars|tg)|l(?:arr[pt]|cei)|Rarrt|(?:hybu|fora)l|ForAl|[GKLNR-Tcknt]cedi|rcei|iexc|gime|fras|[uy]um|oso|dso|ium|Ium)l|D(?:o(?:uble(?:(?:L(?:ong(?:Left)?R|eftR)ight|L(?:ongL)?eft|UpDown|Right|Up)Arrow|Do(?:wnArrow|t))|wn(?:ArrowUpA|TeeA|a)rrow)|iacriticalDot|strok|ashv|cy)|(?:(?:(?:N(?:(?:otN)?estedGreater|ot(?:Greater|Less))|Less(?:Equal)?)Great|GreaterGreat|l[lr]corn|mark|east)e|Not(?:Double)?VerticalBa|(?:Not(?:Righ|Lef)tTriangleB|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)VectorB|RightTriangleB|Left(?:Triangle|Arrow)B|RightArrowB|V(?:er(?:ticalB|b)|b)|UpArrowB|l(?:ur(?:ds|u)h|dr(?:us|d)h|trP|owb|H)|profal|r(?:ulu|dld)h|b(?:igst|rvb)|(?:wed|ve[er])b|s(?:wn|es)w|n(?:wne|ese|sp|hp)|gtlP|d(?:oll|uh|H)|(?:hor|ov)b|u(?:dh|H)|r(?:lh|H)|ohb|hb|St)a|D(?:o(?:wn(?:(?:Left(?:Right|Tee)|RightTee)Vecto|(?:(?:Righ|Lef)tVector|Arrow)Ba)|ubleVerticalBa)|a(?:gge|r)|sc|f)|(?:(?:(?:Righ|Lef)tDown|(?:Righ|Lef)tUp)Tee|(?:Righ|Lef)tUpDown)Vecto|VerticalSeparato|(?:Left(?:Right|Tee)|RightTee)Vecto|less(?:eqq?)?gt|e(?:qslantgt|sc)|(?:RightF|LeftF|[lr]f)loo|u(?:[lr]corne|ar)|timesba|(?:plusa|cirs|apa)ci|U(?:arroci|f)|(?:dzigr|s(?:u(?:pl|br)|imr|[lr])|zigr|angz|nvH|l(?:tl|B)|r[Br])ar|UnderBa|(?:plus|harr|top|mid|of)ci|O(?:verBa|sc|f)|dd?agge|s(?:olba|sc)|g(?:t(?:rar|ci)|sc|f)|c(?:opys|u(?:po|ep)|sc|f)|(?:n(?:(?:v[lr]|w|r)A|l[Aa]|h[Aa]|eA)|x[hlr][Aa]|u(?:ua|da|A)|s[ew]A|rla|o[lr]a|rba|rAa|l[Ablr]a|h(?:oa|A)|era|d(?:ua|A)|cra|vA)r|o(?:lci|sc|ro|pa)|ropa|roar|l(?:o(?:pa|ar)|sc|Ar)|i(?:ma|s)c|ltci|dd?ar|a(?:ma|s)c|R(?:Bar|sc|f)|I(?:mac|f)|(?:u(?:ma|s)|oma|ema|Oma|Ema|[wyz]s|qs|ks|fs|Zs|Ys|Xs|Ws|Vs|Us|Ss|Qs|Ns|Ms|Ks|Is|Gs|Fs|Cs|Bs)c|Umac|x(?:sc|f)|v(?:sc|f)|rsc|n(?:ld|f)|m(?:sc|ld|ac|f)|rAr|h(?:sc|f)|b(?:sc|f)|psc|P(?:sc|f)|L(?:sc|ar|f)|jsc|J(?:sc|f)|E(?:sc|f)|[HT]sc|[yz]f|wf|tf|qf|pf|kf|jf|Zf|Yf|Xf|Wf|Vf|Tf|Sf|Qf|Nf|Mf|Kf|Hf|Gf|Ff|Cf|Bf)r|(?:Diacritical(?:Double)?A|[EINOSYZaisz]a)cute|(?:(?:N(?:egative(?:VeryThin|Thi(?:ck|n))|onBreaking)|NegativeMedium|ZeroWidth|VeryThin|Medium|Thi(?:ck|n))Spac|Filled(?:Very)?SmallSquar|Empty(?:Very)?SmallSquar|(?:N(?:ot(?:Succeeds|Greater|Tilde|Less)T|t)|DiacriticalT|VerticalT|PrecedesT|SucceedsT|NotEqualT|GreaterT|TildeT|EqualT|LessT|at|Ut|It)ild|(?:(?:DiacriticalG|[EIOUaiu]g)ra|(?:u|U)?bre|(?:o|e)?gra)v|(?:doublebar|curly|big|x)wedg|H(?:orizontalLin|ilbertSpac)|Double(?:Righ|Lef)tTe|(?:(?:measured|uw)ang|exponentia|dwang|ssmi|fema)l|(?:Poincarepla|reali|pho|oli)n|(?:black)?lozeng|(?:VerticalL|(?:prof|imag)l)in|SmallCircl|(?:black|dot)squar|rmoustach|l(?:moustach|angl)|(?:b(?:ack)?pr|(?:tri|xo)t|[qt]pr)im|[Tt]herefor|(?:DownB|[Gag]b)rev|(?:infint|nv[lr]tr)i|b(?:arwedg|owti)|an(?:dslop|gl)|(?:cu(?:rly)?v|rthr|lthr|b(?:ig|ar)v|xv)e|n(?:s(?:qsu[bp]|ccu)|prcu)|orslop|NewLin|maltes|Becaus|rangl|incar|(?:otil|Otil|t(?:ra|il))d|[inu]tild|s(?:mil|imn)|(?:sc|pr)cu|Wedg|Prim|Brev)e|(?:CloseCurly(?:Double)?Quo|OpenCurly(?:Double)?Quo|[ry]?acu)te|(?:Reverse(?:Up)?|Up)Equilibrium|C(?:apitalDifferentialD|(?:oproduc|(?:ircleD|enterD|d)o)t|on(?:grue|i)nt|conint|upCap|o(?:lone|pf)|OPY|hi)|(?:(?:(?:left)?rightsquig|(?:longleftr|twoheadr|nleftr|nLeftr|longr|hookr|nR|Rr)ight|(?:twohead|hook)left|longleft|updown|Updown|nright|Right|nleft|nLeft|down|up|Up)a|L(?:(?:ong(?:left)?righ|(?:ong)?lef)ta|eft(?:(?:right)?a|RightA|TeeA))|RightTeeA|LongLeftA|UpTeeA)rrow|(?:(?:RightArrow|Short|Upper|Lower)Left|(?:L(?:eftArrow|o(?:wer|ng))|LongLeft|Short|Upper)Right|ShortUp)Arrow|(?:b(?:lacktriangle(?:righ|lef)|ulle|no)|RightDoubleBracke|RightAngleBracke|Left(?:Doub|Ang)leBracke|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow)righ|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow|mapsto)lef|(?:UnderBrack|OverBrack|emptys|targ|Sups)e|diamondsui|c(?:ircledas|lubsui|are)|(?:spade|heart)sui|(?:(?:c(?:enter|t)|lmi|ino)d|(?:Triple|mD)D|n(?:otin|e)d|(?:ncong|doteq|su[bp]e|e[gl]s)d|l(?:ess|t)d|isind|c(?:ong|up|ap)?d|b(?:igod|N)|t(?:(?:ri)?d|opb)|s(?:ub|im)d|midd|g(?:tr?)?d|Lmid|DotD|(?:xo|ut|z)d|e(?:s?d|rD|fD|DD)|dtd|Zd|Id|Gd|Ed)o|realpar|i(?:magpar|iin)|S(?:uchTha|qr)|su[bp]mul|(?:(?:lt|i)que|gtque|(?:mid|low)a|e(?:que|xi))s|Produc|s(?:updo|e[cx])|r(?:parg|ec)|lparl|vangr|hamil|(?:homt|[lr]fis|ufis|dfis)h|phmma|t(?:wix|in)|quo|o(?:do|as)|fla|eDo)t|(?:(?:Square)?Intersecti|(?:straight|back|var)epsil|SquareUni|expectati|upsil|epsil|Upsil|eq?col|Epsil|(?:omic|Omic|rca|lca|eca|Sca|[NRTt]ca|Lca|Eca|[Zdz]ca|Dca)r|scar|ncar|herc|ccar|Ccar|iog|Iog)on|Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)?|(?:(?:(?:Not(?:Reverse)?|Reverse)E|comp|E)leme|NotCongrue|(?:n[gl]|l)eqsla|geqsla|q(?:uat)?i|perc|iiii|coni|cwi|awi|oi)nt|(?:(?:rightleftharpo|leftrightharpo|quaterni)on|(?:(?:N(?:ot(?:NestedLess|Greater|Less)|estedLess)L|(?:eqslant|gtr(?:eqq?)?)l|LessL)e|Greater(?:Equal)?Le|cro)s|(?:rightright|leftleft|upup)arrow|rightleftarrow|(?:(?:(?:righ|lef)tthree|divideon|b(?:igo|ox)|[lr]o)t|InvisibleT)ime|downdownarrow|(?:(?:smallset|tri|dot|box)m|PlusM)inu|(?:RoundImpli|complex|Impli|Otim)e|C(?:ircle(?:Time|Minu|Plu)|ayley|ros)|(?:rationa|mode)l|NotExist|(?:(?:UnionP|MinusP|(?:b(?:ig[ou]|ox)|tri|s(?:u[bp]|im)|dot|xu|mn)p)l|(?:xo|u)pl|o(?:min|pl)|ropl|lopl|epl)u|otimesa|integer|e(?:linter|qual)|setminu|rarrbf|larrb?f|olcros|rarrf|mstpo|lesge|gesle|Exist|[lr]time|strn|napo|fltn|ccap|apo)s|(?:b(?:(?:lack|ig)triangledow|etwee)|(?:righ|lef)tharpoondow|(?:triangle|mapsto)dow|(?:nv|i)infi|ssetm|plusm|lagra|d(?:[lr]cor|isi)|c(?:ompf|aro)|s?frow|(?:hyph|curr)e|kgree|thor|ogo|ye)n|Not(?:Righ|Lef)tTriangle|(?:Up(?:Arrow)?|Short)DownArrow|(?:(?:n(?:triangle(?:righ|lef)t|succ|prec)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|backsim)e|lvertneq|gvertneq|(?:suc|pre)cneq|a(?:pprox|symp)e|(?:succ|prec|vee)e|circe)q|(?:UnderParenthes|OverParenthes|xn)is|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)Vector|D(?:o(?:wn(?:RightVector|LeftVector|Arrow|Tee)|t)|el|D)|l(?:eftrightarrows|br(?:k(?:sl[du]|e)|ac[ek])|tri[ef]|s(?:im[eg]|qb|h)|hard|a(?:tes|ngd|p)|o[pz]f|rm|gE|fr|eg|cy)|(?:NotHumpDownHum|(?:righ|lef)tharpoonu|big(?:(?:triangle|sqc)u|c[au])|HumpDownHum|m(?:apstou|lc)|(?:capbr|xsq)cu|smash|rarr[al]|(?:weie|sha)r|larrl|velli|(?:thin|punc)s|h(?:elli|airs)|(?:u[lr]c|vp)ro|d[lr]cro|c(?:upc[au]|apc[au])|thka|scna|prn?a|oper|n(?:ums|va|cu|bs)|ens|xc[au]|Ma)p|l(?:eftrightarrow|e(?:ftarrow|s(?:dot)?)?|moust|a(?:rrb?|te?|ng)|t(?:ri)?|sim|par|oz|l|g)|n(?:triangle(?:righ|lef)t|succ|prec)|SquareSu(?:per|b)set|(?:I(?:nvisibleComm|ot)|(?:varthe|iio)t|varkapp|(?:vars|S)igm|(?:diga|mco)mm|Cedill|lambd|Lambd|delt|Thet|omeg|Omeg|Kapp|Delt|nabl|zet|to[es]|rdc|ldc|iot|Zet|Bet|Et)a|b(?:lacktriangle|arwed|u(?:mpe?|ll)|sol|o(?:x[HVhv]|t)|brk|ne)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|RightT(?:riangl|e)e|(?:(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|nsu[bp]seteq|colone|(?:wedg|sim)e|nsime|lneq|gneq)q|DifferentialD|(?:(?:fall|ris)ingdots|(?:suc|pre)ccurly|ddots)eq|A(?:pplyFunction|ssign|(?:tild|grav|brev)e|acute|o(?:gon|pf)|lpha|(?:mac|sc|f)r|c(?:irc|y)|ring|Elig|uml|nd|MP)|(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|L(?:eft(?:T(?:riangl|e)e|Arrow)|l)|G(?:reaterEqual|amma)|E(?:xponentialE|quilibrium|sim|cy|TH|NG)|(?:(?:RightCeil|LeftCeil|varnoth|ar|Ur)in|(?:b(?:ack)?co|uri)n|vzigza|roan|loan|ffli|amal|sun|rin|n(?:tl|an)|Ran|Lan)g|(?:thick|succn?|precn?|less|g(?:tr|n)|ln|n)approx|(?:s(?:traightph|em)|(?:rtril|xu|u[lr]|xd|v[lr])tr|varph|l[lr]tr|b(?:sem|eps)|Ph)i|(?:circledd|osl|n(?:v[Dd]|V[Dd]|d)|hsl|V(?:vd|D)|Osl|v[Dd]|md)ash|(?:(?:RuleDelay|imp|cuw)e|(?:n(?:s(?:hort)?)?|short|rn)mi|D(?:Dotrah|iamon)|(?:i(?:nt)?pr|peri)o|odsol|llhar|c(?:opro|irmi)|(?:capa|anda|pou)n|Barwe|napi|api)d|(?:cu(?:rlyeq(?:suc|pre)|es)|telre|[ou]dbla|Udbla|Odbla|radi|lesc|gesc|dbla)c|(?:circled|big|eq|[is]|c|x|a|S|[hw]|W|H|G|E|C)circ|rightarrow|R(?:ightArrow|arr|e)|Pr(?:oportion)?|(?:longmapst|varpropt|p(?:lustw|ropt)|varrh|numer|(?:rsa|lsa|sb)qu|m(?:icr|h)|[lr]aqu|bdqu|eur)o|UnderBrace|ImaginaryI|B(?:ernoullis|a(?:ckslash|rv)|umpeq|cy)|(?:(?:Laplace|Mellin|zee)tr|Fo(?:uriertr|p)|(?:profsu|ssta)r|ordero|origo|[ps]op|nop|mop|i(?:op|mo)|h(?:op|al)|f(?:op|no)|dop|bop|Rop|Pop|Nop|Lop|Iop|Hop|Dop|[GJKMOQSTV-Zgjkoqvwyz]op|Bop)f|nsu[bp]seteq|t(?:ri(?:angleq|e)|imesd|he(?:tav|re4)|au)|O(?:verBrace|r)|(?:(?:pitchfo|checkma|t(?:opfo|b)|rob|rbb|l[bo]b)r|intlarh|b(?:brktbr|l(?:oc|an))|perten|NoBrea|rarrh|s[ew]arh|n[ew]arh|l(?:arrh|hbl)|uhbl|Hace)k|(?:NotCupC|(?:mu(?:lti)?|x)m|cupbrc)ap|t(?:riangle|imes|heta|opf?)|Precedes|Succeeds|Superset|NotEqual|(?:n(?:atural|exist|les)|s(?:qc[au]p|mte)|prime)s|c(?:ir(?:cled[RS]|[Ee])|u(?:rarrm|larrp|darr[lr]|ps)|o(?:mmat|pf)|aps|hi)|b(?:sol(?:hsu)?b|ump(?:eq|E)|ox(?:box|[Vv][HLRhlr]|[Hh][DUdu]|[DUdu][LRlr])|e(?:rnou|t[ah])|lk(?:34|1[24])|cy)|(?:l(?:esdot|squ|dqu)o|rsquo|rdquo|ngt)r|a(?:n(?:g(?:msda[a-h]|st|e)|d[dv])|st|p[Ee]|mp|fr|c[Edy])|(?:g(?:esdoto|E)|[lr]haru)l|(?:angrtvb|lrhar|nis)d|(?:(?:th(?:ic)?k|succn?|p(?:r(?:ecn?|n)?|lus)|rarr|l(?:ess|arr)|su[bp]|par|scn|g(?:tr|n)|ne|sc|n[glv]|ln|eq?)si|thetasy|ccupss|alefsy|botto)m|trpezium|(?:hks[ew]|dr?bk|bk)arow|(?:(?:[lr]a|d|c)empty|b(?:nequi|empty)|plank|nequi|odi)v|(?:(?:sc|rp|n)pol|point|fpart)int|(?:c(?:irf|wco)|awco)nint|PartialD|n(?:s(?:u[bp](?:set)?|c)|rarr|ot(?:ni|in)?|warr|e(?:arr)?|a(?:tur|p)|vlt|p(?:re?|ar)|um?|l[et]|ge|i)|n(?:atural|exist|les)|d(?:i(?:am(?:ond)?|v(?:ide)?)|tri|ash|ot|d)|backsim|l(?:esdot|squ|dqu)o|g(?:esdoto|E)|U(?:p(?:Arrow|si)|nion|arr)|angrtvb|p(?:l(?:anckh|us(?:d[ou]|[be]))|ar(?:sl|t)|r(?:od|nE|E)|erp|iv|m)|n(?:ot(?:niv[a-c]|in(?:v[a-c]|E))|rarr[cw]|s(?:u[bp][Ee]|c[er])|part|v(?:le|g[et])|g(?:es|E)|c(?:ap|y)|apE|lE|iv|Ll|Gg)|m(?:inus(?:du|b)|ale|cy|p)|rbr(?:k(?:sl[du]|e)|ac[ek])|(?:suphsu|tris|rcu|lcu)b|supdsub|(?:s[ew]a|n[ew]a)rrow|(?:b(?:ecaus|sim)|n(?:[lr]tri|bump)|csu[bp])e|equivDD|u(?:rcorn|lcorn|psi)|timesb|s(?:u(?:p(?:set)?|b(?:set)?)|q(?:su[bp]|u)|i(?:gma|m)|olb?|dot|mt|fr|ce?)|p(?:l(?:anck|us)|r(?:op|ec?)?|ara?|i)|o(?:times|r(?:d(?:er)?)?)|m(?:i(?:nusd?|d)|a(?:p(?:sto)?|lt)|u)|rmoust|g(?:e(?:s(?:dot|l)?|q)?|sim|n(?:ap|e)|t|l|g)|(?:spade|heart)s|c(?:u(?:rarr|larr|p)|o(?:m(?:ma|p)|lon|py|ng)|lubs|heck|cups|irc?|ent|ap)|colone|a(?:p(?:prox)?|n(?:g(?:msd|rt)?|d)|symp|f|c)|S(?:quare|u[bp]|c)|Subset|b(?:ecaus|sim)|vsu[bp]n[Ee]|s(?:u(?:psu[bp]|b(?:su[bp]|n[Ee]|E)|pn[Ee]|p[1-3E]|m)|q(?:u(?:ar[ef]|f)|su[bp]e)|igma[fv]|etmn|dot[be]|par|mid|hc?y|c[Ey])|f(?:rac(?:78|5[68]|45|3[458]|2[35]|1[2-68])|fr)|e(?:m(?:sp1[34]|ptyv)|psiv|c(?:irc|y)|t[ah]|ng|ll|fr|e)|(?:kappa|isins|vBar|fork|rho|phi|n[GL]t)v|divonx|V(?:dashl|ee)|gammad|G(?:ammad|cy|[Tgt])|[Ldhlt]strok|[HT]strok|(?:c(?:ylct|hc)|(?:s(?:oft|hch)|hard|S(?:OFT|HCH)|jser|J(?:ser|uk)|HARD|tsh|TSH|juk|iuk|I(?:uk|[EO])|zh|yi|nj|lj|k[hj]|gj|dj|ZH|Y[AIU]|NJ|LJ|K[HJ]|GJ|D[JSZ])c|ubrc|Ubrc|(?:yu|i[eo]|dz|v|p|f)c|TSc|SHc|CHc|Vc|Pc|Mc|Fc)y|(?:(?:wre|jm)at|dalet|a(?:ngs|le)p|imat|[lr]ds)h|[CLRUceglnou]acute|ff?llig|(?:f(?:fi|[ij])|sz|oe|ij|ae|OE|IJ)lig|r(?:a(?:tio|rr|ng)|tri|par|eal)|s[ew]arr|s(?:qc[au]p|mte)|prime|rarrb|i(?:n(?:fin|t)?|sin|t|i|c)|e(?:quiv|m(?:pty|sp)|p(?:si|ar)|cir|l|g)|kappa|isins|ncong|doteq|(?:wedg|sim)e|nsime|rsquo|rdquo|[lr]haru|V(?:dash|ert)|Tilde|lrhar|gamma|Equal|UpTee|n(?:[lr]tri|bump)|C(?:olon|up|ap)|v(?:arpi|ert)|u(?:psih|ml)|vnsu[bp]|r(?:tri[ef]|e(?:als|g)|a(?:rr[cw]|ng[de]|ce)|sh|lm|x)|rhard|sim[gl]E|i(?:sin[Ev]|mage|f[fr]|cy)|harrw|(?:n[gl]|l)eqq|g(?:sim[el]|tcc|e(?:qq|l)|nE|l[Eaj]|gg|ap)|ocirc|starf|utrif|d(?:trif|i(?:ams|e)|ashv|sc[ry]|fr|eg)|[du]har[lr]|T(?:HORN|a[bu])|(?:TRAD|[gl]vn)E|odash|[EUaeu]o(?:gon|pf)|alpha|[IJOUYgjuy]c(?:irc|y)|v(?:arr|ee)|succ|sim[gl]|harr|ln(?:ap|e)|lesg|(?:n[gl]|l)eq|ocir|star|utri|vBar|fork|su[bp]e|nsim|lneq|gneq|csu[bp]|zwn?j|yacy|x(?:opf|i)|scnE|o(?:r(?:d[fm]|v)|mid|lt|hm|gt|fr|cy|S)|scap|rsqb|ropf|ltcc|tsc[ry]|QUOT|[EOUYao]uml|rho|phi|n[GL]t|e[gl]s|ngt|I(?:nt|m)|nis|rfr|rcy|lnE|lEg|ufr|S(?:um|cy)|R(?:sh|ho)|psi|Ps?i|[NRTt]cy|L(?:sh|cy|[Tt])|kcy|Kcy|Hat|REG|[Zdz]cy|wr|lE|wp|Xi|Nu|Mu)(;)', + name: 'constant.language.character-reference.named.html' + }, + 'whatwg-html-data-character-reference-named-unterminated': { + captures: { + 1: {name: 'punctuation.definition.character-reference.begin.html'}, + 2: {name: 'keyword.control.character-reference.html'} + }, + match: + '(&)(frac(?:34|1[24])|(?:plusm|thor|ye)n|(?:middo|iques|sec|quo|no|g)t|c(?:urren|opy|ent)|brvbar|oslash|Oslash|(?:ccedi|Ccedi|iexc|cedi|um)l|(?:(?:divi|[NOano]til)d|[EIOUaeiou]grav)e|[EIOUYaeiouy]acute|A(?:(?:tild|grav)e|acute|circ|ring|Elig|uml|MP)|times|p(?:ound|ara)|micro|raquo|l(?:aquo|t)|THORN|acirc|[EIOUeiou]circ|acute|(?:arin|[dr]e)g|(?:sz|ae)lig|sup[1-3]|ord[fm]|macr|nbsp|(?:QUO|[GL])T|COPY|[EIOUaeiouy]uml|shy|amp|REG|eth|ETH)', + name: 'constant.language.character-reference.named.html' + }, + 'whatwg-html-data-character-reference-numeric-decimal': { + captures: { + 1: {name: 'punctuation.definition.character-reference.begin.html'}, + 2: {name: 'punctuation.definition.character-reference.numeric.html'}, + 3: {name: 'constant.numeric.integer.decimal.html'}, + 4: {name: 'punctuation.definition.character-reference.end.html'} + }, + match: '(&)(#)([0-9]*)(;)?', + name: 'constant.language.character-reference.numeric.decimal.html' + }, + 'whatwg-html-data-character-reference-numeric-hexadecimal': { + captures: { + 1: {name: 'punctuation.definition.character-reference.begin.html'}, + 2: {name: 'punctuation.definition.character-reference.numeric.html'}, + 3: { + name: 'punctuation.definition.character-reference.numeric.hexadecimal.html' + }, + 4: {name: 'constant.numeric.integer.hexadecimal.html'}, + 5: {name: 'punctuation.definition.character-reference.end.html'} + }, + match: '(&)(#)([Xx])([A-Fa-f0-9]*)(;)?', + name: 'constant.language.character-reference.numeric.hexadecimal.html' + }, + 'whatwg-html-data-comment': { + patterns: [ + { + captures: { + 1: {name: 'punctuation.definition.comment.start.html'}, + 2: {name: 'punctuation.definition.comment.end.html'} + }, + match: '(<!--)(>|->)', + name: 'comment.block.html' + }, + { + begin: '(<!--)', + beginCaptures: { + 1: {name: 'punctuation.definition.comment.start.html'} + }, + end: '(--!?>)', + endCaptures: {1: {name: 'punctuation.definition.comment.end.html'}}, + name: 'comment.block.html' + } + ] + }, + 'whatwg-html-data-comment-bogus': { + patterns: [ + { + begin: '(<!)', + beginCaptures: { + 1: {name: 'punctuation.definition.comment.start.html'} + }, + end: '(>)', + endCaptures: {1: {name: 'punctuation.definition.comment.end.html'}}, + name: 'comment.block.html' + }, + { + begin: '(<\\?)', + beginCaptures: { + 1: {name: 'punctuation.definition.comment.start.html'} + }, + end: '(>)', + endCaptures: {1: {name: 'punctuation.definition.comment.end.html'}}, + name: 'comment.block.html' + } + ] + }, + 'whatwg-html-data-tag': { + patterns: [ + { + captures: { + 1: {name: 'punctuation.definition.tag.begin.html'}, + 2: {name: 'punctuation.definition.tag.closing.html'}, + 3: {name: 'entity.name.tag.html'}, + 4: { + patterns: [ + {include: '#whatwg-html-attribute'}, + {include: '#whatwg-html-self-closing-start-tag'} + ] + }, + 5: {name: 'punctuation.definition.tag.end.html'} + }, + match: + '(<)(/)?((?:[A-Za-z][^\\t\\n\\f\\r />]*))((?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*))(>)', + name: 'meta.tag.${3:/downcase}.html' + }, + {match: '</>', name: 'comment.block.html'}, + { + begin: '(?:</)', + beginCaptures: { + 0: {name: 'punctuation.definition.comment.start.html'} + }, + end: '(?:>)', + endCaptures: {0: {name: 'punctuation.definition.comment.end.html'}}, + name: 'comment.block.html' + } + ] + }, + 'whatwg-html-rawtext-tag': { + begin: + '<((?i:iframe|noembed|noframes|xmp))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>', + beginCaptures: {0: {patterns: [{include: '#whatwg-html-data-tag'}]}}, + contentName: 'markup.raw.text.html', + end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))' + }, + 'whatwg-html-rawtext-tag-style': { + begin: + '<((?i:style))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>', + beginCaptures: {0: {patterns: [{include: '#whatwg-html-data-tag'}]}}, + end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))', + patterns: [{include: 'source.css'}] + }, + 'whatwg-html-rcdata-tag': { + begin: + '<((?i:textarea|title))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>', + beginCaptures: {0: {patterns: [{include: '#whatwg-html-data-tag'}]}}, + contentName: 'markup.raw.text.html', + end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))', + patterns: [{include: '#whatwg-html-data-character-reference'}] + }, + 'whatwg-html-script-data-tag': { + begin: + '<((?i:script))(?![A-Za-z])(?:(?:[\\t\\n\\f\\r ]+|(?:=(?:[^\\t\\n\\f\\r />=])*|(?:[^\\t\\n\\f\\r />=])+)(?:[\\t\\n\\f\\r ]*=[\\t\\n\\f\\r ]*(?:"[^"]*"|\'[^\']*\'|[^\\t\\n\\f\\r >]+))?|\\/)*)>', + beginCaptures: {0: {patterns: [{include: '#whatwg-html-data-tag'}]}}, + end: '(?=</(?i:\\1)(?:[\\t\\n\\f\\r \\/>]|$))', + patterns: [{include: 'source.js'}] + }, + 'whatwg-html-self-closing-start-tag': { + match: '\\/', + name: 'punctuation.definition.tag.self-closing.html' + } + }, + scopeName: 'text.md' +} + +export default grammar diff --git a/lib/all.js b/lib/all.js index 65c0766..aafabd5 100644 --- a/lib/all.js +++ b/lib/all.js @@ -28,6 +28,7 @@ import sourceAmpl from '../lang/source.ampl.js' import sourceAngelscript from '../lang/source.angelscript.js' import sourceAntlr from '../lang/source.antlr.js' import sourceApacheConfig from '../lang/source.apache-config.js' +import sourceApex from '../lang/source.apex.js' import sourceApl from '../lang/source.apl.js' import sourceApplescript from '../lang/source.applescript.js' import sourceArr from '../lang/source.arr.js' @@ -105,6 +106,7 @@ import sourceCwl from '../lang/source.cwl.js' import sourceCypher from '../lang/source.cypher.js' import sourceCython from '../lang/source.cython.js' import sourceD from '../lang/source.d.js' +import sourceD2 from '../lang/source.d2.js' import sourceDart from '../lang/source.dart.js' import sourceDataWeave from '../lang/source.data-weave.js' import sourceDebControl from '../lang/source.deb-control.js' @@ -161,7 +163,6 @@ import sourceGenero from '../lang/source.genero.js' import sourceGeneroForms from '../lang/source.genero-forms.js' import sourceGerber from '../lang/source.gerber.js' import sourceGf from '../lang/source.gf.js' -import sourceGfm from '../lang/source.gfm.js' import sourceGitRevlist from '../lang/source.git-revlist.js' import sourceGitattributes from '../lang/source.gitattributes.js' import sourceGitconfig from '../lang/source.gitconfig.js' @@ -187,6 +188,7 @@ import sourceHc from '../lang/source.hc.js' import sourceHlsl from '../lang/source.hlsl.js' import sourceHocon from '../lang/source.hocon.js' import sourceHoon from '../lang/source.hoon.js' +import sourceHosts from '../lang/source.hosts.js' import sourceHql from '../lang/source.hql.js' import sourceHttpspec from '../lang/source.httpspec.js' import sourceHx from '../lang/source.hx.js' @@ -244,6 +246,7 @@ import sourceLivescript from '../lang/source.livescript.js' import sourceLlvm from '../lang/source.llvm.js' import sourceLogos from '../lang/source.logos.js' import sourceLogtalk from '../lang/source.logtalk.js' +import sourceLolcode from '../lang/source.lolcode.js' import sourceLoomscript from '../lang/source.loomscript.js' import sourceLsl from '../lang/source.lsl.js' import sourceLtspiceSymbol from '../lang/source.ltspice.symbol.js' @@ -258,6 +261,7 @@ import sourceMatlab from '../lang/source.matlab.js' import sourceMaxscript from '../lang/source.maxscript.js' import sourceMc from '../lang/source.mc.js' import sourceMcfunction from '../lang/source.mcfunction.js' +import sourceMdx from '../lang/source.mdx.js' import sourceMercury from '../lang/source.mercury.js' import sourceMermaid from '../lang/source.mermaid.js' import sourceMermaidCCDiagram from '../lang/source.mermaid.c4c-diagram.js' @@ -289,6 +293,7 @@ import sourceMql5 from '../lang/source.mql5.js' import sourceMsl from '../lang/source.msl.js' import sourceMupad from '../lang/source.mupad.js' import sourceNanorc from '../lang/source.nanorc.js' +import sourceNasal from '../lang/source.nasal.js' import sourceNasl from '../lang/source.nasl.js' import sourceNcl from '../lang/source.ncl.js' import sourceNe from '../lang/source.ne.js' @@ -307,6 +312,7 @@ import sourceNix from '../lang/source.nix.js' import sourceNsis from '../lang/source.nsis.js' import sourceNu from '../lang/source.nu.js' import sourceNunjucks from '../lang/source.nunjucks.js' +import sourceNushell from '../lang/source.nushell.js' import sourceNut from '../lang/source.nut.js' import sourceObjc from '../lang/source.objc.js' import sourceObjcpp from '../lang/source.objc++.js' @@ -324,6 +330,7 @@ import sourceOpts from '../lang/source.opts.js' import sourceOx from '../lang/source.ox.js' import sourceOz from '../lang/source.oz.js' import sourceP4 from '../lang/source.p4.js' +import sourcePact from '../lang/source.pact.js' import sourcePan from '../lang/source.pan.js' import sourcePapyrusSkyrim from '../lang/source.papyrus.skyrim.js' import sourceParrotPir from '../lang/source.parrot.pir.js' @@ -373,6 +380,7 @@ import sourceR from '../lang/source.r.js' import sourceRacket from '../lang/source.racket.js' import sourceRaku from '../lang/source.raku.js' import sourceRascal from '../lang/source.rascal.js' +import sourceRbs from '../lang/source.rbs.js' import sourceReason from '../lang/source.reason.js' import sourceRebol from '../lang/source.rebol.js' import sourceRecordJar from '../lang/source.record-jar.js' @@ -446,6 +454,7 @@ import sourceTextproto from '../lang/source.textproto.js' import sourceThrift from '../lang/source.thrift.js' import sourceTl from '../lang/source.tl.js' import sourceTla from '../lang/source.tla.js' +import sourceTlverilog from '../lang/source.tlverilog.js' import sourceTmProperties from '../lang/source.tm-properties.js' import sourceToc from '../lang/source.toc.js' import sourceToml from '../lang/source.toml.js' @@ -459,6 +468,7 @@ import sourceUr from '../lang/source.ur.js' import sourceV from '../lang/source.v.js' import sourceVala from '../lang/source.vala.js' import sourceVarnishVcl from '../lang/source.varnish.vcl.js' +import sourceVba from '../lang/source.vba.js' import sourceVbnet from '../lang/source.vbnet.js' import sourceVelocity from '../lang/source.velocity.js' import sourceVerilog from '../lang/source.verilog.js' @@ -472,8 +482,10 @@ import sourceWdl from '../lang/source.wdl.js' import sourceWebassembly from '../lang/source.webassembly.js' import sourceWebidl from '../lang/source.webidl.js' import sourceWgetrc from '../lang/source.wgetrc.js' +import sourceWgsl from '../lang/source.wgsl.js' import sourceWhiley from '../lang/source.whiley.js' import sourceWin2Messages from '../lang/source.win32-messages.js' +import sourceWit from '../lang/source.wit.js' import sourceWitcherscript from '../lang/source.witcherscript.js' import sourceWollok from '../lang/source.wollok.js' import sourceWren from '../lang/source.wren.js' @@ -544,6 +556,7 @@ import textHtmlTwig from '../lang/text.html.twig.js' import textHtmlVue from '../lang/text.html.vue.js' import textJade from '../lang/text.jade.js' import textMarko from '../lang/text.marko.js' +import textMd from '../lang/text.md.js' import textMuse from '../lang/text.muse.js' import textPythonConsole from '../lang/text.python.console.js' import textPythonTraceback from '../lang/text.python.traceback.js' @@ -601,6 +614,7 @@ export const grammars = [ sourceAngelscript, sourceAntlr, sourceApacheConfig, + sourceApex, sourceApl, sourceApplescript, sourceArr, @@ -678,6 +692,7 @@ export const grammars = [ sourceCypher, sourceCython, sourceD, + sourceD2, sourceDart, sourceDataWeave, sourceDebControl, @@ -734,7 +749,6 @@ export const grammars = [ sourceGeneroForms, sourceGerber, sourceGf, - sourceGfm, sourceGitRevlist, sourceGitattributes, sourceGitconfig, @@ -760,6 +774,7 @@ export const grammars = [ sourceHlsl, sourceHocon, sourceHoon, + sourceHosts, sourceHql, sourceHttpspec, sourceHx, @@ -817,6 +832,7 @@ export const grammars = [ sourceLlvm, sourceLogos, sourceLogtalk, + sourceLolcode, sourceLoomscript, sourceLsl, sourceLtspiceSymbol, @@ -831,6 +847,7 @@ export const grammars = [ sourceMaxscript, sourceMc, sourceMcfunction, + sourceMdx, sourceMercury, sourceMermaid, sourceMermaidCCDiagram, @@ -862,6 +879,7 @@ export const grammars = [ sourceMsl, sourceMupad, sourceNanorc, + sourceNasal, sourceNasl, sourceNcl, sourceNe, @@ -880,6 +898,7 @@ export const grammars = [ sourceNsis, sourceNu, sourceNunjucks, + sourceNushell, sourceNut, sourceObjc, sourceObjcpp, @@ -897,6 +916,7 @@ export const grammars = [ sourceOx, sourceOz, sourceP4, + sourcePact, sourcePan, sourcePapyrusSkyrim, sourceParrotPir, @@ -946,6 +966,7 @@ export const grammars = [ sourceRacket, sourceRaku, sourceRascal, + sourceRbs, sourceReason, sourceRebol, sourceRecordJar, @@ -1019,6 +1040,7 @@ export const grammars = [ sourceThrift, sourceTl, sourceTla, + sourceTlverilog, sourceTmProperties, sourceToc, sourceToml, @@ -1032,6 +1054,7 @@ export const grammars = [ sourceV, sourceVala, sourceVarnishVcl, + sourceVba, sourceVbnet, sourceVelocity, sourceVerilog, @@ -1045,8 +1068,10 @@ export const grammars = [ sourceWebassembly, sourceWebidl, sourceWgetrc, + sourceWgsl, sourceWhiley, sourceWin2Messages, + sourceWit, sourceWitcherscript, sourceWollok, sourceWren, @@ -1117,6 +1142,7 @@ export const grammars = [ textHtmlVue, textJade, textMarko, + textMd, textMuse, textPythonConsole, textPythonTraceback, diff --git a/lib/common.js b/lib/common.js index 104f321..688189a 100644 --- a/lib/common.js +++ b/lib/common.js @@ -10,7 +10,6 @@ import sourceCss from '../lang/source.css.js' import sourceCssLess from '../lang/source.css.less.js' import sourceCssScss from '../lang/source.css.scss.js' import sourceDiff from '../lang/source.diff.js' -import sourceGfm from '../lang/source.gfm.js' import sourceGo from '../lang/source.go.js' import sourceGraphql from '../lang/source.graphql.js' import sourceIni from '../lang/source.ini.js' @@ -35,6 +34,7 @@ import sourceVbnet from '../lang/source.vbnet.js' import sourceYaml from '../lang/source.yaml.js' import textHtmlBasic from '../lang/text.html.basic.js' import textHtmlPhp from '../lang/text.html.php.js' +import textMd from '../lang/text.md.js' import textXml from '../lang/text.xml.js' import textXmlSvg from '../lang/text.xml.svg.js' @@ -48,7 +48,6 @@ export const grammars = [ sourceCssLess, sourceCssScss, sourceDiff, - sourceGfm, sourceGo, sourceGraphql, sourceIni, @@ -73,6 +72,7 @@ export const grammars = [ sourceYaml, textHtmlBasic, textHtmlPhp, + textMd, textXml, textXmlSvg ] diff --git a/lib/index.js b/lib/index.js index 0d3ed67..d503179 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,9 +21,10 @@ * * @typedef RuleInclude * @property {string} include - * @property {never} [name] - * @property {never} [begin] - * @property {never} [match] + * @property {string} [name] + * @property {string} [begin] + * @property {string} [end] + * @property {string} [match] * * @typedef RuleDefinition * @property {string} [match] @@ -105,7 +106,7 @@ export async function createStarryNight(grammars, options) { } /** - * Get the grammar scope (such as `source.gfm`) associated with a grammar name + * Get the grammar scope (such as `text.md`) associated with a grammar name * (such as `markdown` or `pandoc`) or grammar extension (such as `.mdwn` or * `.rmd`). * @@ -138,7 +139,7 @@ export async function createStarryNight(grammars, options) { * (such as `'.mdwn'` or `'.rmd'`), or entire file path ending in * extension. * @returns {string | undefined} - * Grammar scope (such as `'source.gfm'`). + * Grammar scope (such as `'text.md'`). */ function flagToScope(flag) { if (typeof flag !== 'string') { @@ -170,7 +171,7 @@ export async function createStarryNight(grammars, options) { * List all registered scopes. * * @returns {Array<string>} - * List of grammar scopes (such as `'source.gfm'`). + * List of grammar scopes (such as `'text.md'`). */ function scopes() { return [...registered.keys()].sort() @@ -185,7 +186,7 @@ export async function createStarryNight(grammars, options) { * here. * * @returns {Array<string>} - * List of grammar scopes (such as `'source.gfm'`). + * List of grammar scopes (such as `'text.md'`). */ function missingScopes() { /** @type {Set<string>} */ @@ -211,7 +212,7 @@ export async function createStarryNight(grammars, options) { * @param {string} value * Code to highlight. * @param {string} scope - * Registered grammar scope to highlight as (such as `'source.gfm'`). + * Registered grammar scope to highlight as (such as `'text.md'`). * @returns {Root} * Node representing highlighted code. */ diff --git a/notice b/notice index 4199ef4..94745db 100644 --- a/notice +++ b/notice @@ -283,7 +283,7 @@ SPDX: isc --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md -Copyright (c) 2019-2022, John Gardner +Copyright (c) 2019-2023, John Gardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -715,6 +715,35 @@ License from source file: README.md Provided under an MIT License +========================================================================================================= +Files in `starry-night`: lang/source.lolcode.js +From source: <https://github.com/KrazIvan/LOLCODE-grammar-vscode> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.md + +MIT License + +Copyright (c) 2023 Ivan Shabalin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ========================================================================================================= Files in `starry-night`: lang/source.ligo.js, lang/source.mligo.js, lang/source.religo.js From source: <https://github.com/pewulfman/Ligo-grammar> @@ -1114,6 +1143,36 @@ Apache License See the License for the specific language governing permissions and limitations under the License. +========================================================================================================= +Files in `starry-night`: lang/source.nasal.js +From source: <https://github.com/BobDotCom/Nasal.tmbundle> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2023 BobDotCom + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ========================================================================================================= Files in `starry-night`: lang/source.nim.js From source: <https://github.com/nim-lang/NimLime> @@ -3429,7 +3488,7 @@ THE SOFTWARE. ========================================================================================================= Files in `starry-night`: lang/text.adblock.js -From source: <https://github.com/ameshkov/VscodeAdblockSyntax> +From source: <https://github.com/AdguardTeam/VscodeAdblockSyntax> SPDX: mit --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md @@ -3456,6 +3515,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +License from source file: README.md + +This extension is licensed under the MIT License. See the [LICENSE][license] +file for details. + +[license]: https://github.com/AdguardTeam/VscodeAdblockSyntax/blob/master/LICENSE.md + ========================================================================================================= Files in `starry-night`: lang/source.whiley.js From source: <https://github.com/Whiley/WhileySyntaxBundle> @@ -4679,6 +4745,44 @@ If not otherwise specified (see below), files in this repository fall under the An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. +========================================================================================================= +Files in `starry-night`: lang/source.apex.js +From source: <https://github.com/forcedotcom/apex-tmLanguage> +SPDX: bsd-3-clause +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +License for modifications and not otherwise marked: + +Copyright (c) 2018, Salesforce.com, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +* Neither the name of Salesforce.com nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ========================================================================================================= Files in `starry-night`: lang/text.html.markdown.source.gfm.apib.js, lang/text.html.markdown.source.gfm.mson.js From source: <https://github.com/apiaryio/api-blueprint-sublime-plugin> @@ -5541,10 +5645,10 @@ suitability for any purpose. ========================================================================================================= Files in `starry-night`: lang/source.dm.js -From source: <> +From source: <https://github.com/PJB3005/atomic-dreams> SPDX: mit --------------------------------------------------------------------------------------------------------- -License from source file: ? +License from source file: LICENSE Copyright (c) 2016 Pieter-Jan Briers, Kyle J. Kemp @@ -5554,6 +5658,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + ========================================================================================================= Files in `starry-night`: lang/source.ats.js From source: <> @@ -7268,6 +7373,40 @@ If not otherwise specified (see below), files in this repository fall under the An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. +========================================================================================================= +Files in `starry-night`: lang/source.d2.js +From source: <https://github.com/terrastruct/d2-vscode> +SPDX: bsd-3-clause +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.txt + +Copyright 2022 Terrastruct, Inc. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of + conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used + to endorse or promote products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ========================================================================================================= Files in `starry-night`: lang/source.dart.js From source: <https://github.com/dart-lang/dart-syntax-highlight> @@ -7343,7 +7482,7 @@ License from source file: LICENSE.md The MIT License (MIT) -Copyright (c) 2022 The Denizen Script Team +Copyright (c) 2022-2023 The Denizen Script Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -8109,7 +8248,7 @@ SPDX: bsd-2-clause --------------------------------------------------------------------------------------------------------- License from source file: LICENSE -Copyright (c) elvish developers and contributors, All rights reserved. +Copyright (c) Elvish developers and contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -9178,14 +9317,15 @@ An exception is made for files in readable text which contain their own license ========================================================================================================= Files in `starry-night`: lang/source.jflex.js -From source: <> +From source: <https://github.com/jflex-de/jflex.tmbundle> SPDX: bsd-2-clause --------------------------------------------------------------------------------------------------------- -License from source file: ? +License from source file: LICENSE.md JFlex TextMate Bundle +===================== -Copyright (c) 2015 Gerwin Klein and contributors. +Copyright (c) 2023 Gerwin Klein and contributors. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -9211,6 +9351,11 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License from source file: README.md + +The bundle is released under a BSD-2-Clause license. See [`LICENSE.md`](LICENSE.md) + ========================================================================================================= Files in `starry-night`: lang/source.python.kivy.js From source: <https://github.com/p0lygun/kivy-language-grammer> @@ -10055,10 +10200,10 @@ OTHER DEALINGS IN THE SOFTWARE. ========================================================================================================= Files in `starry-night`: lang/source.crystal.js, lang/text.html.ecr.js -From source: <> +From source: <https://github.com/atom-crystal/language-crystal> SPDX: mit --------------------------------------------------------------------------------------------------------- -License from source file: ? +License from source file: LICENSE.md Copyright (c) 2014 GitHub Inc. @@ -10092,6 +10237,7 @@ software is granted. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose. + ========================================================================================================= Files in `starry-night`: lang/source.csound.js, lang/source.csound-document.js, lang/source.csound-score.js From source: <https://github.com/nwhetsell/language-csound> @@ -10284,13 +10430,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ========================================================================================================= -Files in `starry-night`: lang/etc.js, lang/injections.etc.js, lang/source.2da.js, lang/source.c.nwscript.js, lang/source.curlrc.js, lang/source.dotenv.js, lang/source.futhark.js, lang/source.generic-db.js, lang/source.gitattributes.js, lang/source.gitconfig.js, lang/source.gitignore.js, lang/source.ini.npmrc.js, lang/source.inputrc.js, lang/source.m4.js, lang/source.nanorc.js, lang/source.neon.js, lang/source.odin-ehr.js, lang/source.opts.js, lang/source.record-jar.js, lang/source.sfv.js, lang/source.shellcheckrc.js, lang/source.sieve.js, lang/source.smpl.js, lang/source.ssh-config.js, lang/source.star.js, lang/source.stl.js, lang/source.string-template.js, lang/source.wgetrc.js, lang/text.checksums.js, lang/text.codeowners.js, lang/text.html.ecmarkup.js, lang/text.xml.svg.js +Files in `starry-night`: lang/etc.js, lang/injections.etc.js, lang/source.2da.js, lang/source.c.nwscript.js, lang/source.curlrc.js, lang/source.dotenv.js, lang/source.futhark.js, lang/source.generic-db.js, lang/source.gitattributes.js, lang/source.gitconfig.js, lang/source.gitignore.js, lang/source.hosts.js, lang/source.ini.npmrc.js, lang/source.inputrc.js, lang/source.m4.js, lang/source.nanorc.js, lang/source.neon.js, lang/source.odin-ehr.js, lang/source.opts.js, lang/source.record-jar.js, lang/source.sfv.js, lang/source.shellcheckrc.js, lang/source.sieve.js, lang/source.smpl.js, lang/source.ssh-config.js, lang/source.star.js, lang/source.stl.js, lang/source.string-template.js, lang/source.wgetrc.js, lang/text.checksums.js, lang/text.codeowners.js, lang/text.html.ecmarkup.js, lang/text.xml.svg.js From source: <https://github.com/Alhadis/language-etc> SPDX: isc --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md -Copyright (c) 2018-2022, John Gardner +Copyright (c) 2018-2023, John Gardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -10366,7 +10512,7 @@ SPDX: isc --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md -Copyright (c) 2016-2021, John Gardner +Copyright (c) 2016-2023, John Gardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -10411,35 +10557,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -========================================================================================================= -Files in `starry-night`: lang/source.gfm.js -From source: <https://github.com/atom/language-gfm> -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE.md - -Copyright (c) 2014 GitHub Inc. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ========================================================================================================= Files in `starry-night`: lang/source.gn.js From source: <https://github.com/devoncarew/language-gn> @@ -11741,13 +11858,13 @@ SOFTWARE. ========================================================================================================= -Files in `starry-night`: lang/source.mermaid.js, lang/source.mermaid.c4c-diagram.js, lang/source.mermaid.class-diagram.js, lang/source.mermaid.er-diagram.js, lang/source.mermaid.flowchart.js, lang/source.mermaid.gantt.js, lang/source.mermaid.gitgraph.js, lang/source.mermaid.pie-chart.js, lang/source.mermaid.requirement-diagram.js, lang/source.mermaid.sequence-diagram.js, lang/source.mermaid.state-diagram.js, lang/source.mermaid.user-journey.js +Files in `starry-night`: lang/source.mermaid.js, lang/source.mermaid.c4c-diagram.js, lang/source.mermaid.class-diagram.js, lang/source.mermaid.er-diagram.js, lang/source.mermaid.flowchart.js, lang/source.mermaid.gantt.js, lang/source.mermaid.gitgraph.js, lang/source.mermaid.mindmap.js, lang/source.mermaid.pie-chart.js, lang/source.mermaid.requirement-diagram.js, lang/source.mermaid.sequence-diagram.js, lang/source.mermaid.state-diagram.js, lang/source.mermaid.user-journey.js From source: <https://github.com/Alhadis/language-mermaid> SPDX: isc --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md -Copyright (c) 2022, John Gardner +Copyright (c) 2022-2023, John Gardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -12320,7 +12437,7 @@ SPDX: isc --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md -Copyright (c) 2016-2021, John Gardner +Copyright (c) 2016-2023, John Gardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -12443,7 +12560,7 @@ SPDX: isc --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md -Copyright (c) 2016-2022, John Gardner +Copyright (c) 2016-2023, John Gardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -13299,6 +13416,63 @@ FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TOR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +========================================================================================================= +Files in `starry-night`: lang/source.mdx.js, lang/text.md.js +From source: <https://github.com/wooorm/markdown-tm-language> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: license + +(The MIT License) + +Copyright (c) 2023 Titus Wormer <tituswormer@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +License from source file: readme.md + +[MIT][license] © [Titus Wormer][author] + +<!-- Definitions --> + +[build-badge]: https://github.com/wooorm/markdown-tm-language/workflows/main/badge.svg + +[build]: https://github.com/wooorm/markdown-tm-language/actions + +[license]: license + +[author]: https://wooorm.com + +[contribute]: https://opensource.guide/how-to-contribute/ + +[markdown]: https://commonmark.org + +[mdx]: https://mdxjs.com + +[demo]: https://wooorm.com/markdown-tm-language/ + +[starry-night]: https://github.com/wooorm/starry-night + +[shiki]: https://github.com/shikijs/shiki + ========================================================================================================= Files in `starry-night`: lang/text.marko.js From source: <https://github.com/marko-js/marko-tmbundle> @@ -13941,6 +14115,36 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +========================================================================================================= +Files in `starry-night`: lang/source.nushell.js +From source: <https://github.com/hustcer/nu-grammar> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2019 - 2023 The Nushell Project Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ========================================================================================================= Files in `starry-night`: lang/source.nu.js From source: <> @@ -14298,6 +14502,45 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +========================================================================================================= +Files in `starry-night`: lang/source.pact.js +From source: <https://github.com/kadena-io/pact-atom> +SPDX: bsd-3-clause +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.md + +Copyright (c) 2016, Kadena LLC +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ========================================================================================================= Files in `starry-night`: lang/source.parrot.pir.js From source: <> @@ -17469,7 +17712,7 @@ SOFTWARE. ========================================================================================================= Files in `starry-night`: lang/source.svelte.js -From source: <https://github.com/umanghome/svelte-atom> +From source: <https://github.com/sebastinez/svelte-atom> SPDX: mit --------------------------------------------------------------------------------------------------------- License from source file: LICENSE @@ -17802,23 +18045,57 @@ If not otherwise specified (see below), files in this repository fall under the An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. ========================================================================================================= -Files in `starry-night`: lang/source.toml.js -From source: <https://github.com/textmate/toml.tmbundle> -SPDX: permissive +Files in `starry-night`: lang/source.tlverilog.js +From source: <https://github.com/adamint/tlv-vscode> +SPDX: mit --------------------------------------------------------------------------------------------------------- -License from source file: README.mdown - -If not otherwise specified (see below), files in this repository fall under the following license: +License from source file: LICENSE - Permission to copy, use, modify, sell and distribute this - software is granted. This software is provided "as is" without - express or implied warranty, and with no claim as to its - suitability for any purpose. +The MIT License (MIT) -An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. +Copyright (c) 2016-2017 Dmytro Bogatov -========================================================================================================= -Files in `starry-night`: lang/source.sparql.js, lang/source.turtle.js +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +License from source file: README.md + +[MIT](LICENSE) + +========================================================================================================= +Files in `starry-night`: lang/source.toml.js +From source: <https://github.com/textmate/toml.tmbundle> +SPDX: permissive +--------------------------------------------------------------------------------------------------------- +License from source file: README.mdown + +If not otherwise specified (see below), files in this repository fall under the following license: + + Permission to copy, use, modify, sell and distribute this + software is granted. This software is provided "as is" without + express or implied warranty, and with no claim as to its + suitability for any purpose. + +An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. + +========================================================================================================= +Files in `starry-night`: lang/source.sparql.js, lang/source.turtle.js From source: <https://github.com/peta/turtle.tmbundle> SPDX: mit --------------------------------------------------------------------------------------------------------- @@ -18224,6 +18501,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + License from source file: README.md The CodeQL extension for Visual Studio Code is [licensed](LICENSE.md) under the MIT License. The version of CodeQL used by the CodeQL extension is subject to the [CodeQL Research Terms & Conditions](https://securitylab.github.com/tools/codeql/license). @@ -20253,6 +20531,36 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +========================================================================================================= +Files in `starry-night`: lang/source.rbs.js +From source: <https://github.com/soutaro/vscode-rbs-syntax> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +The MIT License (MIT) + +Copyright (c) 2019 Seiei Miyagi and Soutaro Matsumoto + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ========================================================================================================= Files in `starry-night`: lang/source.scala.js From source: <https://github.com/scala/vscode-scala-syntax> @@ -20356,142 +20664,751 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ========================================================================================================= -Files in `starry-night`: lang/source.v.js -From source: <https://github.com/0x9ef/vscode-vlang> -SPDX: mit +Files in `starry-night`: lang/source.vba.js +From source: <https://github.com/tiabeast/vscode-vba-json> +SPDX: mpl-2.0 --------------------------------------------------------------------------------------------------------- -License from source file: LICENSE - -MIT License +License from source file: LICENSE.txt -Copyright (c) 2019 0x9ef +Mozilla Public License Version 2.0 +================================== -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +1. Definitions +-------------- -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. -License from source file: README.md +1.3. "Contribution" + means Covered Software of a particular Contributor. -[MIT](./LICENSE) +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. -<!-- Links --> -[vs-code]: https://code.visualstudio.com/ -[market-ext-link]: https://marketplace.visualstudio.com/items?itemName=vlanguage.vscode-vlang +1.5. "Incompatible With Secondary Licenses" + means -========================================================================================================= -Files in `starry-night`: lang/source.wren.js -From source: <https://github.com/Nelarius/vscode-wren> -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or -The MIT License (MIT) + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. -Copyright (c) 2016 Johann Muszynski +1.6. "Executable Form" + means any form of the work other than Source Code Form. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +1.8. "License" + means this document. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. -========================================================================================================= -Files in `starry-night`: lang/source.yara.js -From source: <https://github.com/infosec-intern/vscode-yara> -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE +1.10. "Modifications" + means any of the following: -The MIT License (MIT) + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or -Copyright (c) 2016 infosec-intern + (b) any new file in Source Code Form that contains any Covered + Software. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +1.13. "Source Code Form" + means the form of the work preferred for making modifications. +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. -========================================================================================================= -Files in `starry-night`: lang/source.zap.js, lang/source.zil.js -From source: <> -SPDX: permissive ---------------------------------------------------------------------------------------------------------- -License from source file: ? +2. License Grants and Conditions +-------------------------------- -MIT License - -Copyright (c) 2017 - present Jesse McGrew - -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +2.1. Grants -========================================================================================================= -Files in `starry-night`: lang/source.cobol.js, lang/source.jcl.js -From source: <https://github.com/spgennard/vscode_cobol> -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: -MIT License +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and -Copyright (c) 2015-2020 Stephen Gennard +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. + + +========================================================================================================= +Files in `starry-night`: lang/source.v.js +From source: <https://github.com/0x9ef/vscode-vlang> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2019 0x9ef + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +License from source file: README.md + +[MIT](./LICENSE) + +<!-- Links --> +[vs-code]: https://code.visualstudio.com/ +[market-ext-link]: https://marketplace.visualstudio.com/items?itemName=vlanguage.vscode-vlang + +========================================================================================================= +Files in `starry-night`: lang/source.wit.js +From source: <https://github.com/bytecodealliance/vscode-wit> +SPDX: apache-2.0 +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +--- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. + + +========================================================================================================= +Files in `starry-night`: lang/source.wren.js +From source: <https://github.com/Nelarius/vscode-wren> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +The MIT License (MIT) + +Copyright (c) 2016 Johann Muszynski + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +========================================================================================================= +Files in `starry-night`: lang/source.yara.js +From source: <https://github.com/infosec-intern/vscode-yara> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +The MIT License (MIT) + +Copyright (c) 2016 infosec-intern + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +========================================================================================================= +Files in `starry-night`: lang/source.zap.js, lang/source.zil.js +From source: <> +SPDX: permissive +--------------------------------------------------------------------------------------------------------- +License from source file: ? + +MIT License + +Copyright (c) 2017 - present Jesse McGrew + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +========================================================================================================= +Files in `starry-night`: lang/source.cobol.js, lang/source.jcl.js +From source: <https://github.com/spgennard/vscode_cobol> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2015-2020 Stephen Gennard Copyright (c) 2021-2022 Stephen Paul Gennard All rights reserved. @@ -20587,6 +21504,253 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +========================================================================================================= +Files in `starry-night`: lang/source.wgsl.js +From source: <https://github.com/wgsl-analyzer/wgsl-analyzer> +SPDX: permissive +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.md + +wgsl-analyzer is dual-licensed under either + +* MIT License ([./LICENSE-MIT](./LICENSE-MIT) or http://opensource.org/licenses/MIT) +* Apache License, Version 2.0 ([./LICENSE-APACHE](./LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) + +at your option. + + +License from source file: LICENSE-APACHE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +License from source file: LICENSE-MIT + + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + ========================================================================================================= Files in `starry-night`: lang/source.witcherscript.js From source: <https://github.com/ADawesomeguy/witcherscript-grammar> diff --git a/package.json b/package.json index f34b046..ba4ee54 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,8 @@ "generate-build": "node --conditions development script/build.js", "generate-list": "node --conditions development script/list.js", "generate-css": "node --conditions development script/css.js", - "generate": "npm run generate-build && npm run generate-list && npm run generate-css", + "#": "&& npm run generate-css -- for some reason this doesn’t currently work.", + "generate": "npm run generate-build && npm run generate-list", "build": "tsc --build --clean && tsc --build && type-coverage", "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", "test-api": "node --conditions development test.js", diff --git a/readme.md b/readme.md index f798f78..600b692 100644 --- a/readme.md +++ b/readme.md @@ -107,7 +107,7 @@ To illustrate, Astro costs 2.1 kB and TSX costs 25.4 kB. essentially the same)! `PrettyLights` is responsible for taking the flag `markdown`, looking it up in -[`languages.yml`][languages-yml] from `github/linguist` to figure out that that +[`languages.yml`][languages-yml] from `github-linguist` to figure out that that means markdown, taking a corresponding grammar (in this case [`atom/language-gfm`][language-gfm]), doing some GPL magic in C, and turning it into spans with classes. @@ -265,7 +265,7 @@ Highlight `value` (code) as `scope` (a TextMate scope). * `value` (`string`) — code to highlight * `scope` (`string`) - — registered grammar scope to highlight as (such as `'source.gfm'`) + — registered grammar scope to highlight as (such as `'text.md'`) ###### Returns @@ -299,7 +299,7 @@ Yields: ### `starryNight.flagToScope(flag)` -Get the grammar scope (such as `source.gfm`) associated with a grammar name +Get the grammar scope (such as `text.md`) associated with a grammar name (such as `markdown` or `pandoc`) or grammar extension (such as `.mdwn` or `.rmd`). @@ -336,7 +336,7 @@ console.log(1) ###### Returns -Grammar scope, such as `'source.gfm'` (`string?`) +Grammar scope, such as `'text.md'` (`string?`) ###### Example @@ -345,9 +345,9 @@ import {createStarryNight, common} from '@wooorm/starry-night' const starryNight = await createStarryNight(common) -console.log(starryNight.flagToScope('pandoc')) // `'source.gfm'` -console.log(starryNight.flagToScope('workbook')) // `'source.gfm'` -console.log(starryNight.flagToScope('.workbook')) // `'source.gfm'` +console.log(starryNight.flagToScope('pandoc')) // `'text.md'` +console.log(starryNight.flagToScope('workbook')) // `'text.md'` +console.log(starryNight.flagToScope('.workbook')) // `'text.md'` console.log(starryNight.flagToScope('whatever')) // `undefined` ``` @@ -357,7 +357,7 @@ List all registered scopes. ###### Returns -List of grammar scopes, such as `'source.gfm'` (`Array<string>`). +List of grammar scopes, such as `'text.md'` (`Array<string>`). ###### Example @@ -391,7 +391,7 @@ When you register `text.xml.svg` without `text.xml`, it will be listed here. ###### Returns -List of grammar scopes, such as `'source.gfm'` (`Array<string>`). +List of grammar scopes, such as `'text.md'` (`Array<string>`). ###### Example @@ -432,18 +432,18 @@ A promise resolving to nothing (`Promise<undefined>`). ````js import {toHtml} from 'hast-util-to-html' import {createStarryNight} from '@wooorm/starry-night' -import sourceGfm from '@wooorm/starry-night/lang/source.gfm.js' +import textMd from '@wooorm/starry-night/lang/text.md.js' import sourceCss from '@wooorm/starry-night/lang/source.css.js' const markdown = '```css\nem { color: red }\n```' -const starryNight = await createStarryNight([sourceGfm]) +const starryNight = await createStarryNight([textMd]) -console.log(toHtml(starryNight.highlight(markdown, 'source.gfm'))) +console.log(toHtml(starryNight.highlight(markdown, 'text.md'))) await starryNight.register([sourceCss]) -console.log(toHtml(starryNight.highlight(markdown, 'source.gfm'))) +console.log(toHtml(starryNight.highlight(markdown, 'text.md'))) ```` Yields: @@ -696,7 +696,7 @@ const starryNight = await createStarryNight(common) const tree = starryNight.highlight( '# Some heading\n\n```js\nalert(1)\n```\n***', - 'source.gfm' + 'text.md' ) starryNightGutter(tree) @@ -968,7 +968,7 @@ You are responsible for loading those. All licenses are permissive and made available in [`notice`][notice]. Changes should go to upstream repos and [`languages.yml`][languages-yml] in -`github/linguist`. +`github-linguist`. <!--support start--> @@ -980,7 +980,6 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [x] [`source.css.less`](lang/source.css.less.js) (mit) — [upstream](https://github.com/atom/language-less) — needs: `source.css` * [x] [`source.css.scss`](lang/source.css.scss.js) (mit) — [upstream](https://github.com/atom/language-sass) — needs: `source.css` * [x] [`source.diff`](lang/source.diff.js) -* [x] [`source.gfm`](lang/source.gfm.js) (mit) — [upstream](https://github.com/atom/language-gfm) * [x] [`source.go`](lang/source.go.js) (bsd-3-clause) — [upstream](https://github.com/AlanQuatermain/go-tmbundle) * [x] [`source.graphql`](lang/source.graphql.js) (mit) — [upstream](https://github.com/graphql/graphiql) * [x] [`source.ini`](lang/source.ini.js) @@ -1005,6 +1004,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [x] [`source.yaml`](lang/source.yaml.js) (mit) — [upstream](https://github.com/atom/language-yaml) * [x] [`text.html.basic`](lang/text.html.basic.js) (mit) — [upstream](https://github.com/atom/language-html) * [x] [`text.html.php`](lang/text.html.php.js) — needs: `text.html.basic` +* [x] [`text.md`](lang/text.md.js) (mit) — [upstream](https://github.com/wooorm/markdown-tm-language) * [x] [`text.xml`](lang/text.xml.js) * [x] [`text.xml.svg`](lang/text.xml.svg.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `text.xml` * [ ] [`config.xcompose`](lang/config.xcompose.js) (mit) @@ -1033,6 +1033,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.angelscript`](lang/source.angelscript.js) (unlicense) — [upstream](https://github.com/wronex/sublime-angelscript) * [ ] [`source.antlr`](lang/source.antlr.js) * [ ] [`source.apache-config`](lang/source.apache-config.js) +* [ ] [`source.apex`](lang/source.apex.js) (bsd-3-clause) — [upstream](https://github.com/forcedotcom/apex-tmLanguage) * [ ] [`source.apl`](lang/source.apl.js) (isc) — [upstream](https://github.com/Alhadis/language-apl) * [ ] [`source.applescript`](lang/source.applescript.js) * [ ] [`source.arr`](lang/source.arr.js) (mit) — [upstream](https://github.com/samuela/language-pyret) @@ -1087,7 +1088,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.coffee`](lang/source.coffee.js) (mit) — [upstream](https://github.com/atom/language-coffee-script) — needs: `source.js` * [ ] [`source.cool`](lang/source.cool.js) (mit) * [ ] [`source.coq`](lang/source.coq.js) (mit) -* [ ] [`source.crystal`](lang/source.crystal.js) (mit) — needs: `text.html.basic` +* [ ] [`source.crystal`](lang/source.crystal.js) (mit) — [upstream](https://github.com/atom-crystal/language-crystal) — needs: `text.html.basic` * [ ] [`source.csound`](lang/source.csound.js) (mit) — [upstream](https://github.com/nwhetsell/language-csound) * [ ] [`source.csound-document`](lang/source.csound-document.js) (mit) — [upstream](https://github.com/nwhetsell/language-csound) — needs: `source.csound`, `text.xml` * [ ] [`source.csound-score`](lang/source.csound-score.js) (mit) — [upstream](https://github.com/nwhetsell/language-csound) — needs: `source.csound` @@ -1103,6 +1104,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.cypher`](lang/source.cypher.js) (apache-2.0) — [upstream](https://github.com/fredbenenson/sublime-cypher) * [ ] [`source.cython`](lang/source.cython.js) — needs: `source.regexp.python` * [ ] [`source.d`](lang/source.d.js) — [upstream](https://github.com/textmate/d.tmbundle) — needs: `text.html.javadoc` +* [ ] [`source.d2`](lang/source.d2.js) (bsd-3-clause) — [upstream](https://github.com/terrastruct/d2-vscode) * [ ] [`source.dart`](lang/source.dart.js) (bsd-3-clause) — [upstream](https://github.com/dart-lang/dart-syntax-highlight) * [ ] [`source.data-weave`](lang/source.data-weave.js) (mit) — [upstream](https://github.com/mulesoft-labs/data-weave-tmLanguage) * [ ] [`source.deb-control`](lang/source.deb-control.js) (mit) — [upstream](https://github.com/tsbarnes/language-debian) @@ -1111,7 +1113,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.dircolors`](lang/source.dircolors.js) (mit) * [ ] [`source.ditroff`](lang/source.ditroff.js) (isc) — [upstream](https://github.com/Alhadis/language-roff) — needs: `source.ditroff.desc`, `text.roff` * [ ] [`source.ditroff.desc`](lang/source.ditroff.desc.js) (isc) — [upstream](https://github.com/Alhadis/language-roff) -* [ ] [`source.dm`](lang/source.dm.js) (mit) +* [ ] [`source.dm`](lang/source.dm.js) (mit) — [upstream](https://github.com/PJB3005/atomic-dreams) * [ ] [`source.dockerfile`](lang/source.dockerfile.js) (mit) — [upstream](https://github.com/asbjornenge/Docker.tmbundle) * [ ] [`source.dot`](lang/source.dot.js) * [ ] [`source.dotenv`](lang/source.dotenv.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) @@ -1181,6 +1183,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.hlsl`](lang/source.hlsl.js) (mit) * [ ] [`source.hocon`](lang/source.hocon.js) (mit) — [upstream](https://github.com/jacobwgillespie/language-hocon) * [ ] [`source.hoon`](lang/source.hoon.js) (mit) — [upstream](https://github.com/pkova/hoon-grammar) +* [ ] [`source.hosts`](lang/source.hosts.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `etc` * [ ] [`source.hql`](lang/source.hql.js) (mit) * [ ] [`source.httpspec`](lang/source.httpspec.js) (mit) — [upstream](https://github.com/samsalisbury/Sublime-HTTP) — needs: `source.json` * [ ] [`source.hx`](lang/source.hx.js) (mit) — [upstream](https://github.com/vshaxe/haxe-TmLanguage) @@ -1206,7 +1209,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.java-properties`](lang/source.java-properties.js) — [upstream](https://github.com/textmate/java.tmbundle) * [ ] [`source.jcl`](lang/source.jcl.js) (mit) — [upstream](https://github.com/spgennard/vscode_cobol) * [ ] [`source.jest.snap`](lang/source.jest.snap.js) (mit) — [upstream](https://github.com/jest-community/vscode-jest) -* [ ] [`source.jflex`](lang/source.jflex.js) (bsd-2-clause) — needs: `source.java` +* [ ] [`source.jflex`](lang/source.jflex.js) (bsd-2-clause) — [upstream](https://github.com/jflex-de/jflex.tmbundle) — needs: `source.java` * [ ] [`source.jison`](lang/source.jison.js) (mit) — needs: `source.jisonlex` * [ ] [`source.jisonlex`](lang/source.jisonlex.js) (mit) — needs: `source.jison`, `source.js` * [ ] [`source.jolie`](lang/source.jolie.js) (mit) @@ -1233,6 +1236,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.llvm`](lang/source.llvm.js) (mit) — [upstream](https://github.com/whitequark/llvm.tmbundle) * [ ] [`source.logos`](lang/source.logos.js) (mit) — [upstream](https://github.com/Cykey/Sublime-Logos) — needs: `source.c++`, `source.objc` * [ ] [`source.logtalk`](lang/source.logtalk.js) +* [ ] [`source.lolcode`](lang/source.lolcode.js) (mit) — [upstream](https://github.com/KrazIvan/LOLCODE-grammar-vscode) * [ ] [`source.loomscript`](lang/source.loomscript.js) (mit) * [ ] [`source.lsl`](lang/source.lsl.js) * [ ] [`source.ltspice.symbol`](lang/source.ltspice.symbol.js) (isc) — [upstream](https://github.com/Alhadis/language-pcb) @@ -1245,6 +1249,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.maxscript`](lang/source.maxscript.js) (isc) * [ ] [`source.mc`](lang/source.mc.js) (mit) * [ ] [`source.mcfunction`](lang/source.mcfunction.js) (mit) — [upstream](https://github.com/Arcensoth/language-mcfunction) +* [ ] [`source.mdx`](lang/source.mdx.js) (mit) — [upstream](https://github.com/wooorm/markdown-tm-language) — needs: `source.tsx` * [ ] [`source.mercury`](lang/source.mercury.js) (mit) * [ ] [`source.mermaid`](lang/source.mermaid.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid.c4c-diagram`, `source.mermaid.class-diagram`, `source.mermaid.er-diagram`, `source.mermaid.flowchart`, `source.mermaid.gantt`, `source.mermaid.gitgraph`, `source.mermaid.mindmap`, `source.mermaid.pie-chart`, `source.mermaid.requirement-diagram`, `source.mermaid.sequence-diagram`, `source.mermaid.state-diagram`, `source.mermaid.user-journey` * [ ] [`source.mermaid.c4c-diagram`](lang/source.mermaid.c4c-diagram.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid`, `source.mermaid.user-journey`, `source.wsd` @@ -1253,6 +1258,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.mermaid.flowchart`](lang/source.mermaid.flowchart.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid` * [ ] [`source.mermaid.gantt`](lang/source.mermaid.gantt.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid`, `source.mermaid.flowchart` * [ ] [`source.mermaid.gitgraph`](lang/source.mermaid.gitgraph.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.json`, `source.mermaid` +* [ ] [`source.mermaid.mindmap`](lang/source.mermaid.mindmap.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid`, `source.mermaid.flowchart` * [ ] [`source.mermaid.pie-chart`](lang/source.mermaid.pie-chart.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid` * [ ] [`source.mermaid.requirement-diagram`](lang/source.mermaid.requirement-diagram.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.mermaid` * [ ] [`source.mermaid.sequence-diagram`](lang/source.mermaid.sequence-diagram.js) (isc) — [upstream](https://github.com/Alhadis/language-mermaid) — needs: `source.json`, `source.mermaid` @@ -1275,6 +1281,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.msl`](lang/source.msl.js) (mit) — [upstream](https://github.com/gen-angry/language-msl) * [ ] [`source.mupad`](lang/source.mupad.js) (mit) — [upstream](https://github.com/ccreutzig/sublime-MuPAD) * [ ] [`source.nanorc`](lang/source.nanorc.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `injections.etc` +* [ ] [`source.nasal`](lang/source.nasal.js) (mit) — [upstream](https://github.com/BobDotCom/Nasal.tmbundle) * [ ] [`source.nasl`](lang/source.nasl.js) (mit) — [upstream](https://github.com/tenable/sublimetext-nasl) * [ ] [`source.ncl`](lang/source.ncl.js) (mit) * [ ] [`source.ne`](lang/source.ne.js) (unlicense) — [upstream](https://github.com/Hardmath123/sublime-nearley) @@ -1293,6 +1300,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.nsis`](lang/source.nsis.js) (apache-2.0) * [ ] [`source.nu`](lang/source.nu.js) (apache-2.0) * [ ] [`source.nunjucks`](lang/source.nunjucks.js) (mit) +* [ ] [`source.nushell`](lang/source.nushell.js) (mit) — [upstream](https://github.com/hustcer/nu-grammar) * [ ] [`source.nut`](lang/source.nut.js) (mit) * [ ] [`source.objc++`](lang/source.objc++.js) — needs: `source.c++`, `source.objc` * [ ] [`source.objectscript`](lang/source.objectscript.js) (mit) — needs: `source.objectscript_macros` @@ -1308,6 +1316,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.ox`](lang/source.ox.js) (mit) * [ ] [`source.oz`](lang/source.oz.js) (mit) * [ ] [`source.p4`](lang/source.p4.js) (mit) +* [ ] [`source.pact`](lang/source.pact.js) (bsd-3-clause) — [upstream](https://github.com/kadena-io/pact-atom) * [ ] [`source.pan`](lang/source.pan.js) (mit) * [ ] [`source.papyrus.skyrim`](lang/source.papyrus.skyrim.js) (mit) * [ ] [`source.parrot.pir`](lang/source.parrot.pir.js) @@ -1354,6 +1363,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.racket`](lang/source.racket.js) (mit) * [ ] [`source.raku`](lang/source.raku.js) — [upstream](https://github.com/perl6/atom-language-perl6) — needs: `source.quoting.raku` * [ ] [`source.rascal`](lang/source.rascal.js) (bsd-2-clause) — [upstream](https://github.com/usethesource/rascal-syntax-highlighting) +* [ ] [`source.rbs`](lang/source.rbs.js) (mit) — [upstream](https://github.com/soutaro/vscode-rbs-syntax) * [ ] [`source.reason`](lang/source.reason.js) (mit) — [upstream](https://github.com/reasonml-editor/language-reason) * [ ] [`source.rebol`](lang/source.rebol.js) (mit) — [upstream](https://github.com/Oldes/Sublime-REBOL) * [ ] [`source.record-jar`](lang/source.record-jar.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `etc` @@ -1409,7 +1419,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.string-template`](lang/source.string-template.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `etc` * [ ] [`source.stylus`](lang/source.stylus.js) (mit) * [ ] [`source.supercollider`](lang/source.supercollider.js) (mit) — [upstream](https://github.com/supercollider/language-supercollider) -* [ ] [`source.svelte`](lang/source.svelte.js) (mit) — [upstream](https://github.com/umanghome/svelte-atom) — needs: `source.css`, `source.js`, `source.ts` +* [ ] [`source.svelte`](lang/source.svelte.js) (mit) — [upstream](https://github.com/sebastinez/svelte-atom) — needs: `source.css`, `source.js`, `source.ts` * [ ] [`source.sway`](lang/source.sway.js) (apache-2.0) — [upstream](https://github.com/FuelLabs/sway-vscode-plugin) * [ ] [`source.sy`](lang/source.sy.js) (isc) — [upstream](https://github.com/Alhadis/language-regexp) — needs: `source.regexp` * [ ] [`source.systemverilog`](lang/source.systemverilog.js) (apache-2.0) — [upstream](https://github.com/TheClams/SystemVerilog) @@ -1422,6 +1432,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.thrift`](lang/source.thrift.js) * [ ] [`source.tl`](lang/source.tl.js) (mit) * [ ] [`source.tla`](lang/source.tla.js) (mit) +* [ ] [`source.tlverilog`](lang/source.tlverilog.js) (mit) — [upstream](https://github.com/adamint/tlv-vscode) * [ ] [`source.tm-properties`](lang/source.tm-properties.js) — [upstream](https://github.com/textmate/textmate.tmbundle) * [ ] [`source.toc`](lang/source.toc.js) (unlicense) — [upstream](https://github.com/nebularg/language-toc-wow) * [ ] [`source.toml`](lang/source.toml.js) — [upstream](https://github.com/textmate/toml.tmbundle) @@ -1434,6 +1445,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.v`](lang/source.v.js) (mit) — [upstream](https://github.com/0x9ef/vscode-vlang) * [ ] [`source.vala`](lang/source.vala.js) (mit) — [upstream](https://github.com/technosophos/Vala-TMBundle) * [ ] [`source.varnish.vcl`](lang/source.varnish.vcl.js) (mit) — [upstream](https://github.com/brandonwamboldt/sublime-varnish) +* [ ] [`source.vba`](lang/source.vba.js) (mpl-2.0) — [upstream](https://github.com/tiabeast/vscode-vba-json) * [ ] [`source.velocity`](lang/source.velocity.js) (mit) — [upstream](https://github.com/animecyc/AtomLanguageVelocity) * [ ] [`source.verilog`](lang/source.verilog.js) * [ ] [`source.vhdl`](lang/source.vhdl.js) @@ -1446,8 +1458,10 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.webassembly`](lang/source.webassembly.js) (isc) — [upstream](https://github.com/Alhadis/language-webassembly) * [ ] [`source.webidl`](lang/source.webidl.js) (mit) — [upstream](https://github.com/andik/IDL-Syntax) * [ ] [`source.wgetrc`](lang/source.wgetrc.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `etc` +* [ ] [`source.wgsl`](lang/source.wgsl.js) — [upstream](https://github.com/wgsl-analyzer/wgsl-analyzer) * [ ] [`source.whiley`](lang/source.whiley.js) (apache-2.0) — [upstream](https://github.com/Whiley/WhileySyntaxBundle) * [ ] [`source.win32-messages`](lang/source.win32-messages.js) (isc) — [upstream](https://github.com/Nixinova/NovaGrammars) +* [ ] [`source.wit`](lang/source.wit.js) (apache-2.0) — [upstream](https://github.com/bytecodealliance/vscode-wit) * [ ] [`source.witcherscript`](lang/source.witcherscript.js) (mit) — [upstream](https://github.com/ADawesomeguy/witcherscript-grammar) * [ ] [`source.wollok`](lang/source.wollok.js) (mit) * [ ] [`source.wren`](lang/source.wren.js) (mit) — [upstream](https://github.com/Nelarius/vscode-wren) @@ -1470,7 +1484,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.zenscript`](lang/source.zenscript.js) (mit) — [upstream](https://github.com/CraftTweaker/ZenScript-tmLanguage) * [ ] [`source.zig`](lang/source.zig.js) (mit) — [upstream](https://github.com/ziglang/sublime-zig-language) * [ ] [`source.zil`](lang/source.zil.js) -* [ ] [`text.adblock`](lang/text.adblock.js) (mit) — [upstream](https://github.com/ameshkov/VscodeAdblockSyntax) +* [ ] [`text.adblock`](lang/text.adblock.js) (mit) — [upstream](https://github.com/AdguardTeam/VscodeAdblockSyntax) * [ ] [`text.bibtex`](lang/text.bibtex.js) — [upstream](https://github.com/textmate/latex.tmbundle) * [ ] [`text.browserslist`](lang/text.browserslist.js) (mit) — [upstream](https://github.com/browserslist/browserslist-vscode) * [ ] [`text.cfml.basic`](lang/text.cfml.basic.js) (mit) @@ -1491,7 +1505,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`text.html.cshtml`](lang/text.html.cshtml.js) (mit) — [upstream](https://github.com/github-linguist/razor-plus) — needs: `source.cs`, `text.html.basic` * [ ] [`text.html.django`](lang/text.html.django.js) — needs: `text.html.basic` * [ ] [`text.html.ecmarkup`](lang/text.html.ecmarkup.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `etc`, `source.yaml`, `text.grammarkdown`, `text.html.basic` -* [ ] [`text.html.ecr`](lang/text.html.ecr.js) (mit) — needs: `source.crystal`, `text.html.basic` +* [ ] [`text.html.ecr`](lang/text.html.ecr.js) (mit) — [upstream](https://github.com/atom-crystal/language-crystal) — needs: `source.crystal`, `text.html.basic` * [ ] [`text.html.elixir`](lang/text.html.elixir.js) (apache-2.0) — [upstream](https://github.com/elixir-lang/elixir-tmbundle) — needs: `text.elixir`, `text.html.basic` * [ ] [`text.html.erb`](lang/text.html.erb.js) (mit) — [upstream](https://github.com/atom/language-ruby) — needs: `source.ruby`, `text.html.basic` * [ ] [`text.html.ftl`](lang/text.html.ftl.js) (mit) — needs: `text.html.basic` @@ -1514,7 +1528,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`text.html.twig`](lang/text.html.twig.js) (bsd-3-clause) — [upstream](https://github.com/Anomareh/PHP-Twig.tmbundle) * [ ] [`text.html.vue`](lang/text.html.vue.js) (mit) — [upstream](https://github.com/vuejs/vue-syntax-highlight) * [ ] [`text.jade`](lang/text.jade.js) (mit) — needs: `source.js`, `text.html.basic` -* [ ] [`text.marko`](lang/text.marko.js) (mit) — [upstream](https://github.com/marko-js/marko-tmbundle) — needs: `source.ts` +* [ ] [`text.marko`](lang/text.marko.js) (mit) — [upstream](https://github.com/marko-js/marko-tmbundle) — needs: `source.js` * [ ] [`text.muse`](lang/text.muse.js) (isc) — [upstream](https://github.com/Alhadis/language-emacs-lisp) * [ ] [`text.python.console`](lang/text.python.console.js) (mit) — [upstream](https://github.com/MagicStack/MagicPython) — needs: `source.python` * [ ] [`text.python.traceback`](lang/text.python.traceback.js) (mit) — [upstream](https://github.com/MagicStack/MagicPython) — needs: `source.python` @@ -1656,6 +1670,6 @@ All other files [MIT][license] © [Titus Wormer][author] [language-gfm]: https://github.com/atom/language-gfm -[languages-yml]: https://github.com/github/linguist/blob/cddf747/lib/linguist/languages.yml#L3691 +[languages-yml]: https://github.com/github-linguist/linguist/blob/b5432eb/lib/linguist/languages.yml#L4031 [css]: #css diff --git a/script/build.js b/script/build.js index 61567b6..483c1fa 100644 --- a/script/build.js +++ b/script/build.js @@ -20,18 +20,19 @@ import {parse as parseYaml} from 'yaml' import {common} from './common.js' /** - * List of scopes renamed in `github/linguist`. + * List of scopes renamed in `github-linguist`. * * Occasionally, delete all files in `lang/`, see what’s removed, * see if there’s a new scope, and add them here. * - * This prevents having to introduce breaking changes in `starry-night` + * This prevents having to introduce breaking changes in `starry-night`. * * @type {Record<string, string>} */ const aliases = { // Old names to new names. 'source.brightscript': 'source.brs', + 'source.gfm': 'text.md', 'source.vtt': 'text.vtt' } diff --git a/script/common.js b/script/common.js index f4982a4..83a335d 100644 --- a/script/common.js +++ b/script/common.js @@ -11,7 +11,6 @@ export const common = [ 'source.css.less', // `less` 'source.css.scss', // `scss` 'source.diff', // `diff` - 'source.gfm', // `markdown` 'source.go', // `go` 'source.ini', // `ini` 'source.java', // `java` @@ -34,6 +33,7 @@ export const common = [ 'source.yaml', // `yaml` 'text.html.basic', // `xml` (HTML) 'text.html.php', // `php`, `php-template` + 'text.md', // `markdown` 'text.xml', // `xml` 'text.xml.svg', // `xml` (SVG) diff --git a/script/graph.yml b/script/graph.yml index 112a2ce..2376f86 100644 --- a/script/graph.yml +++ b/script/graph.yml @@ -54,8 +54,6 @@ source.camlp4.ocaml: source.cfscript: source.sql: true text.html.javadoc: false -source.clean: - source.gfm: false source.cobol: source.java: false source.sql: false @@ -99,6 +97,11 @@ source.cython: source.sql: false source.d: text.html.javadoc: true +source.d2: + source.go: false + source.js: false + source.shell: false + text.html.markdown.d2: false source.dircolors: source.opts: false source.ditroff: @@ -121,8 +124,6 @@ source.fontdir: source.xlfd: true source.fortran.modern: source.fortran: true -source.fsharp: - source.gfm: false source.futhark: etc: true source.gdresource: @@ -197,6 +198,8 @@ source.hack: text.html.basic: true source.haskell: annotation.liquidhaskell.haskell: false +source.hosts: + etc: true source.httpspec: source.json: true source.hxml: @@ -262,7 +265,6 @@ source.lean.markdown: source.diff: false source.dockerfile: false source.fsharp: false - source.gfm: false source.go: false source.groovy: false source.ini: false @@ -314,13 +316,62 @@ source.makefile: source.shell: true source.mask: source.css: false - source.gfm: false source.js: true text.html.basic: true source.mathematica: source.sql: false source.matlab: source.shell: false +source.mdx: + source.c: false + source.c++: false + source.clojure: false + source.coffee: false + source.cs: false + source.css: false + source.css.less: false + source.css.scss: false + source.diff: false + source.dockerfile: false + source.elixir: false + source.elm: false + source.erlang: false + source.gitconfig: false + source.go: false + source.graphql: false + source.haskell: false + source.ini: false + source.java: false + source.js: false + source.json: false + source.julia: false + source.kotlin: false + source.lua: false + source.makefile: false + source.objc: false + source.perl: false + source.python: false + source.r: false + source.raku: false + source.ruby: false + source.rust: false + source.scala: false + source.shell: false + source.sql: false + source.swift: false + source.toml: false + source.ts: false + source.tsx: true + source.vbnet: false + source.yaml: false + text.html.asciidoc: false + text.html.basic: false + text.html.markdown.source.gfm.apib: false + text.html.php: false + text.python.console: false + text.shell-session: false + text.xml: false + text.xml.svg: false source.mermaid: source.css: false source.js: false @@ -460,6 +511,8 @@ source.regexp.raku: source.raku: true source.renpy: source.regexp.python: true +source.rescript: + source.js: false source.rpgle: source.sql: true source.rpm-spec: @@ -494,7 +547,6 @@ source.shaderlab: source.hlsl: false source.shell: source.applescript: false - source.gfm: false source.python: false source.ruby: false text.html.basic: false @@ -557,6 +609,8 @@ source.yaml.salt: source.python: true source.yasnippet: source.emacs.lisp: true +text.adblock: + source.js: false text.cfml.basic: source.cfscript: false source.sql: false @@ -573,7 +627,6 @@ text.haml: source.coffee: false source.css: false source.css.scss: false - source.gfm: false source.js: false source.ruby: true source.sass: false @@ -643,6 +696,56 @@ text.html.liquid: text.html.mako: source.python: false text.html.basic: true +text.html.markdown.d2: + source.batchfile: false + source.c: false + source.c++: false + source.clojure: false + source.coffee: false + source.cs: false + source.css: false + source.css.less: false + source.css.scss: false + source.d2: false + source.dart: false + source.diff: false + source.dockerfile: false + source.elixir: false + source.erlang: false + source.fsharp: false + source.go: false + source.groovy: false + source.ini: false + source.java: false + source.js: false + source.js.regexp: false + source.json: false + source.lua: false + source.makefile: false + source.objc: false + source.perl: false + source.perl.6: false + source.powershell: false + source.python: false + source.r: false + source.regexp.python: false + source.ruby: false + source.rust: false + source.scala: false + source.shell: false + source.sql: false + source.swift: false + source.ts: false + source.tsx: false + source.yaml: false + text.bibtex: false + text.html.basic: false + text.html.handlebars: false + text.html.php: false + text.jade: false + text.tex.latex: false + text.xml: false + text.xml.xsl: false text.html.markdown.source.gfm.apib: source.c: false source.c++: false @@ -764,7 +867,58 @@ text.marko: source.css: false source.css.less: false source.css.scss: false - source.ts: true + source.js: true +text.md: + source.c: false + source.c++: false + source.clojure: false + source.coffee: false + source.cs: false + source.css: false + source.css.less: false + source.css.scss: false + source.diff: false + source.dockerfile: false + source.elixir: false + source.elm: false + source.erlang: false + source.gitconfig: false + source.go: false + source.graphql: false + source.haskell: false + source.ini: false + source.java: false + source.js: false + source.json: false + source.julia: false + source.kotlin: false + source.lua: false + source.makefile: false + source.mdx: false + source.objc: false + source.perl: false + source.python: false + source.r: false + source.raku: false + source.ruby: false + source.rust: false + source.scala: false + source.shell: false + source.sql: false + source.swift: false + source.toml: false + source.ts: false + source.tsx: false + source.vbnet: false + source.yaml: false + text.html.asciidoc: false + text.html.basic: false + text.html.markdown.source.gfm.apib: false + text.html.php: false + text.python.console: false + text.shell-session: false + text.xml: false + text.xml.svg: false text.muse: text.html.basic: false text.tex.latex: false @@ -830,7 +984,6 @@ text.slim: source.css: false source.css.less: false source.css.scss: false - source.gfm: false source.js: false source.ruby: false source.sass: false diff --git a/script/info.js b/script/info.js index 05e1daa..55a3df1 100644 --- a/script/info.js +++ b/script/info.js @@ -79,6 +79,10 @@ export const info = { license: 'mit', homepage: 'https://github.com/tikkanz/JSyntax' }, + 'source.lolcode': { + license: 'mit', + homepage: 'https://github.com/KrazIvan/LOLCODE-grammar-vscode' + }, 'source.ligo': { license: 'mit', homepage: 'https://github.com/pewulfman/Ligo-grammar' @@ -127,6 +131,10 @@ export const info = { 'source.nsis': { license: 'apache-2.0' }, + 'source.nasal': { + license: 'mit', + homepage: 'https://github.com/BobDotCom/Nasal.tmbundle' + }, 'source.nim': { license: 'mit', homepage: 'https://github.com/nim-lang/NimLime' @@ -323,7 +331,7 @@ export const info = { }, 'text.adblock': { license: 'mit', - homepage: 'https://github.com/ameshkov/VscodeAdblockSyntax' + homepage: 'https://github.com/AdguardTeam/VscodeAdblockSyntax' }, 'source.whiley': { license: 'apache-2.0', @@ -383,6 +391,10 @@ export const info = { }, 'source.antlr': {}, 'source.apache-config': {}, + 'source.apex': { + license: 'bsd-3-clause', + homepage: 'https://github.com/forcedotcom/apex-tmLanguage' + }, 'text.html.markdown.source.gfm.apib': { license: 'mit', homepage: 'https://github.com/apiaryio/api-blueprint-sublime-plugin', @@ -486,7 +498,8 @@ export const info = { dependencies: ['source.python'] }, 'source.dm': { - license: 'mit' + license: 'mit', + homepage: 'https://github.com/PJB3005/atomic-dreams' }, 'source.ats': { license: 'mit' @@ -584,6 +597,10 @@ export const info = { homepage: 'https://github.com/textmate/d.tmbundle', dependencies: ['text.html.javadoc'] }, + 'source.d2': { + license: 'bsd-3-clause', + homepage: 'https://github.com/terrastruct/d2-vscode' + }, 'source.dart': { license: 'bsd-3-clause', homepage: 'https://github.com/dart-lang/dart-syntax-highlight' @@ -771,6 +788,7 @@ export const info = { }, 'source.jflex': { license: 'bsd-2-clause', + homepage: 'https://github.com/jflex-de/jflex.tmbundle', dependencies: ['source.java'] }, 'source.python.kivy': { @@ -835,10 +853,12 @@ export const info = { }, 'source.crystal': { license: 'mit', + homepage: 'https://github.com/atom-crystal/language-crystal', dependencies: ['text.html.basic'] }, 'text.html.ecr': { license: 'mit', + homepage: 'https://github.com/atom-crystal/language-crystal', dependencies: ['source.crystal', 'text.html.basic'] }, 'source.csound': { @@ -938,6 +958,11 @@ export const info = { homepage: 'https://github.com/Alhadis/language-etc', dependencies: ['etc'] }, + 'source.hosts': { + license: 'isc', + homepage: 'https://github.com/Alhadis/language-etc', + dependencies: ['etc'] + }, 'source.ini.npmrc': { license: 'isc', homepage: 'https://github.com/Alhadis/language-etc', @@ -1080,10 +1105,6 @@ export const info = { license: 'mit', homepage: 'https://github.com/johnjcamilleri/language-gf' }, - 'source.gfm': { - license: 'mit', - homepage: 'https://github.com/atom/language-gfm' - }, 'source.gn': { license: 'bsd-3-clause', homepage: 'https://github.com/devoncarew/language-gn' @@ -1278,6 +1299,11 @@ export const info = { homepage: 'https://github.com/Alhadis/language-mermaid', dependencies: ['source.json', 'source.mermaid'] }, + 'source.mermaid.mindmap': { + license: 'isc', + homepage: 'https://github.com/Alhadis/language-mermaid', + dependencies: ['source.mermaid', 'source.mermaid.flowchart'] + }, 'source.mermaid.pie-chart': { license: 'isc', homepage: 'https://github.com/Alhadis/language-mermaid', @@ -1604,10 +1630,19 @@ export const info = { license: 'mit', dependencies: ['text.html.basic'] }, + 'source.mdx': { + license: 'mit', + homepage: 'https://github.com/wooorm/markdown-tm-language', + dependencies: ['source.tsx'] + }, + 'text.md': { + license: 'mit', + homepage: 'https://github.com/wooorm/markdown-tm-language' + }, 'text.marko': { license: 'mit', homepage: 'https://github.com/marko-js/marko-tmbundle', - dependencies: ['source.ts'] + dependencies: ['source.js'] }, 'source.mathematica': { license: 'apache-2.0', @@ -1644,6 +1679,10 @@ export const info = { license: 'mit', homepage: 'https://github.com/sambacha/nix-linguist' }, + 'source.nushell': { + license: 'mit', + homepage: 'https://github.com/hustcer/nu-grammar' + }, 'source.nu': { license: 'apache-2.0' }, @@ -1674,6 +1713,10 @@ export const info = { 'source.oz': { license: 'mit' }, + 'source.pact': { + license: 'bsd-3-clause', + homepage: 'https://github.com/kadena-io/pact-atom' + }, 'source.parrot.pir': {}, 'source.pascal': {}, 'source.pawn': { @@ -1929,7 +1972,7 @@ export const info = { }, 'source.svelte': { license: 'mit', - homepage: 'https://github.com/umanghome/svelte-atom', + homepage: 'https://github.com/sebastinez/svelte-atom', dependencies: ['source.css', 'source.js', 'source.ts'] }, 'source.sway': { @@ -1948,6 +1991,10 @@ export const info = { homepage: 'https://github.com/thejustinwalsh/textproto-grammar' }, 'source.thrift': {}, + 'source.tlverilog': { + license: 'mit', + homepage: 'https://github.com/adamint/tlv-vscode' + }, 'source.toml': { homepage: 'https://github.com/textmate/toml.tmbundle' }, @@ -2087,6 +2134,10 @@ export const info = { license: 'mit', homepage: 'https://github.com/zxh0/vscode-proto3' }, + 'source.rbs': { + license: 'mit', + homepage: 'https://github.com/soutaro/vscode-rbs-syntax' + }, 'source.scala': { homepage: 'https://github.com/scala/vscode-scala-syntax' }, @@ -2098,10 +2149,18 @@ export const info = { license: 'bsd-3-clause', homepage: 'https://github.com/zeroc-ice/vscode-slice' }, + 'source.vba': { + license: 'mpl-2.0', + homepage: 'https://github.com/tiabeast/vscode-vba-json' + }, 'source.v': { license: 'mit', homepage: 'https://github.com/0x9ef/vscode-vlang' }, + 'source.wit': { + license: 'apache-2.0', + homepage: 'https://github.com/bytecodealliance/vscode-wit' + }, 'source.wren': { license: 'mit', homepage: 'https://github.com/Nelarius/vscode-wren' @@ -2128,6 +2187,9 @@ export const info = { license: 'bsd-3-clause', homepage: 'https://github.com/broadinstitute/wdl-sublime-syntax-highlighter' }, + 'source.wgsl': { + homepage: 'https://github.com/wgsl-analyzer/wgsl-analyzer' + }, 'source.witcherscript': { license: 'mit', homepage: 'https://github.com/ADawesomeguy/witcherscript-grammar' diff --git a/script/list.js b/script/list.js index f94cd20..855823a 100644 --- a/script/list.js +++ b/script/list.js @@ -51,7 +51,7 @@ async function list() { await readOrFetch( new URL('grammars.yml', base), new URL( - 'https://raw.githubusercontent.com/github/linguist/master/grammars.yml' + 'https://raw.githubusercontent.com/github-linguist/linguist/master/grammars.yml' ) ) ) @@ -102,7 +102,7 @@ async function list() { readOrFetch( new URL(vendor + '.yml', infoFolder), new URL( - 'https://raw.githubusercontent.com/github/linguist/master/vendor/licenses/git_submodule/' + + 'https://raw.githubusercontent.com/github-linguist/linguist/master/vendor/licenses/git_submodule/' + vendor + '.dep.yml' ) diff --git a/test.js b/test.js index 28760e0..4bd83dd 100644 --- a/test.js +++ b/test.js @@ -3,7 +3,7 @@ import test from 'node:test' import {toHtml} from 'hast-util-to-html' import sourceAssembly from './lang/source.assembly.js' import sourceCss from './lang/source.css.js' -import sourceGfm from './lang/source.gfm.js' +import textMd from './lang/text.md.js' import textPhp from './lang/text.html.php.js' import textXml from './lang/text.xml.js' import textXmlSvg from './lang/text.xml.svg.js' @@ -23,17 +23,17 @@ test('.flagToScope(flag)', async () => { assert.equal( starryNight.flagToScope('pandoc'), - 'source.gfm', + 'text.md', 'should support names' ) assert.equal( starryNight.flagToScope('workbook'), - 'source.gfm', + 'text.md', 'should support extensions (w/o dot)' ) assert.equal( starryNight.flagToScope('.workbook'), - 'source.gfm', + 'text.md', 'should support extensions (w/ dot)' ) assert.equal(starryNight.flagToScope('whatever'), undefined) @@ -194,7 +194,7 @@ test('.missingScopes()', async () => { }) test('.register(grammars)', async () => { - const starryNight = await createStarryNight([sourceGfm]) + const starryNight = await createStarryNight([textMd]) await starryNight.register([sourceCss]) @@ -205,10 +205,8 @@ test('.register(grammars)', async () => { ) assert.equal( - toHtml( - starryNight.highlight('```css\nem { color: red }\n```', 'source.gfm') - ), - '<span class="pl-c1">```css</span>\n<span class="pl-ent">em</span> { <span class="pl-c1">color</span>: <span class="pl-c1">red</span> }\n<span class="pl-c1">```</span>', + toHtml(starryNight.highlight('```css\nem { color: red }\n```', 'text.md')), + '<span class="pl-s">```</span><span class="pl-en">css</span>\n<span class="pl-ent">em</span> { <span class="pl-c1">color</span>: <span class="pl-c1">red</span> }\n<span class="pl-s">```</span>', 'should support adding deep languages' ) }) @@ -267,8 +265,8 @@ test('.highlight(value, scope)', async () => { ) assert.equal( - toHtml(starryNight.highlight('# asd *qwe* rty', 'source.gfm')), - '<span class="pl-mh"># asd <span class="pl-mi">*qwe*</span> rty</span>', + toHtml(starryNight.highlight('# asd *qwe* rty', 'text.md')), + '<span class="pl-mh"># <span class="pl-en">asd </span></span><span class="pl-s"><span class="pl-mh"><span class="pl-en">*</span></span></span><span class="pl-mh"><span class="pl-en">qwe</span></span><span class="pl-s"><span class="pl-mh"><span class="pl-en">*</span></span></span><span class="pl-mh"><span class="pl-en"> rty</span></span>', 'should generate parents' )