From 648897930b3bbb5840d85d5e5b2ea106c4d8fe34 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 15:57:10 +0100 Subject: [PATCH 1/7] Regenerate for `linguist@9.0.0` * add `source.moonbit`, `source.msg`, `source.ned`, `source.tact`, `source.tsp`, `source.QB64` * rename `text.html.vue` to `source.vue` * update a bunch of grammars For more info, see: * [`github-linguist/linguist@9.0.0`](https://github.com/github-linguist/linguist/releases/tag/v9.0.0) --- lang/go.mod.js | 2 + lang/source.QB64.js | 201 +++++++++ lang/source.abap.js | 4 +- lang/source.abl.js | 127 ++++-- lang/source.angelscript.js | 66 ++- lang/source.basic.js | 2 +- lang/source.bb.js | 5 +- lang/source.brs.js | 75 +++- lang/source.bsl.js | 11 +- lang/source.cmake.js | 178 ++++---- lang/source.cobol.js | 15 +- lang/source.dart.js | 34 +- lang/source.dockerfile.js | 2 +- lang/source.fsharp.js | 2 +- lang/source.gdscript.js | 31 +- lang/source.graphql.js | 12 +- lang/source.hcl.js | 5 +- lang/source.hcl.terraform.js | 3 +- lang/source.json.js | 2 + lang/source.julia.js | 13 +- lang/source.just.js | 19 +- lang/source.luau.js | 12 +- lang/source.matlab.js | 5 +- lang/source.mdx.js | 222 +++++----- lang/source.moonbit.js | 213 +++++++++ lang/source.move.js | 46 +- lang/source.msg.js | 48 ++ lang/source.ned.js | 58 +++ lang/source.nushell.js | 2 +- lang/source.odin.js | 8 +- lang/source.openesql.js | 359 +++++++++++++++ lang/source.polar.js | 20 +- lang/source.powerbuilder.js | 116 ++--- lang/source.rescript.js | 26 +- lang/source.rpgle.js | 4 +- lang/source.scala.js | 44 +- lang/source.sdbl.js | 18 +- lang/source.ssh-config.js | 2 +- lang/source.tact.js | 339 ++++++++++++++ lang/source.toc.js | 4 +- lang/source.ts.js | 28 +- lang/source.tsp.js | 830 +++++++++++++++++++++++++++++++++++ lang/source.tsx.js | 28 +- lang/source.vba.js | 12 +- lang/source.vue.js | 754 +++++++++++++++++++++++++++++++ lang/source.wdl.js | 4 +- lang/source.wgsl.js | 2 +- lang/text.adblock.js | 2 +- lang/text.md.js | 220 +++++----- lib/all.js | 17 +- lib/common.js | 1 - notice | 702 ++++++++++++++++++++++------- package.json | 3 +- readme.md | 18 +- script/build.js | 14 +- script/graph.yml | 20 +- script/info.js | 62 ++- test.js | 1 - 58 files changed, 4293 insertions(+), 780 deletions(-) create mode 100644 lang/source.QB64.js create mode 100644 lang/source.moonbit.js create mode 100644 lang/source.msg.js create mode 100644 lang/source.ned.js create mode 100644 lang/source.openesql.js create mode 100644 lang/source.tact.js create mode 100644 lang/source.tsp.js create mode 100644 lang/source.vue.js diff --git a/lang/go.mod.js b/lang/go.mod.js index af67c9b..604ac1c 100644 --- a/lang/go.mod.js +++ b/lang/go.mod.js @@ -31,6 +31,7 @@ const grammar = { {include: '#raw_quoted_string'}, {include: '#operator'}, {include: '#semver'}, + {include: '#semver_range'}, {include: '#unquoted_string'} ] }, @@ -87,6 +88,7 @@ const grammar = { 'v(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z-]+(?:\\.[\\da-z-]+)*)?(?:\\+[\\da-z-]+(?:\\.[\\da-z-]+)*)?', name: 'constant.language.go.mod' }, + semver_range: {begin: '\\[', end: '\\]', patterns: [{include: '#semver'}]}, string_escaped_char: { patterns: [ { diff --git a/lang/source.QB64.js b/lang/source.QB64.js new file mode 100644 index 0000000..e505722 --- /dev/null +++ b/lang/source.QB64.js @@ -0,0 +1,201 @@ +// This is a TextMate grammar distributed by `starry-night`. +// This grammar is developed at +// +// and licensed `mit`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: [], + names: [ + 'quickbasic', + 'qb', + 'qbasic', + 'qb64', + 'classic-qbasic', + 'classic-quickbasic' + ], + patterns: [ + {match: '\\n', name: 'meta.ending-space'}, + {include: '#round-brackets'}, + { + begin: '^(?=\\t)', + end: '(?=[^\\t])', + name: 'meta.leading-space', + patterns: [ + { + captures: { + 1: {name: 'meta.odd-tab.tabs'}, + 2: {name: 'meta.even-tab.tabs'} + }, + match: '(\\t)(\\t)?' + } + ] + }, + { + begin: '^(?= )', + end: '(?=[^ ])', + name: 'meta.leading-space', + patterns: [ + { + captures: { + 1: {name: 'meta.odd-tab.spaces'}, + 2: {name: 'meta.even-tab.spaces'} + }, + match: '( )( )?' + } + ] + }, + { + captures: { + 1: {name: 'storage.type.function.QB64'}, + 2: {name: 'entity.name.function.QB64'}, + 3: {name: 'punctuation.definition.parameters.QB64'}, + 4: {name: 'variable.parameter.function.QB64'}, + 5: {name: 'punctuation.definition.parameters.QB64'} + }, + match: + '^\\s*((?i:function|sub))\\s*([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\)).*\\n?', + name: 'meta.function.QB64' + }, + { + match: + '^\\\\s*((function|sub|FUNCTION|SUB|Function|Sub|fUNCTION|sUB)\\\\s+)([a-zA-Z_]\\\\w*)', + name: 'userfunctions.QB64' + }, + {match: '(?i:\\s*\\b(assert)\\b\\s*)', name: 'debug.QB64'}, + { + begin: "(^[ \\t]+)?(?='|rem|REM|Rem|rEm|reM|rEM|ReM)", + beginCaptures: {1: {name: 'punctuation.whitespace.comment.leading.QB64'}}, + end: '(?!\\G)', + patterns: [ + { + begin: "'|", + beginCaptures: {0: {name: 'punctuation.definition.comment.QB64'}}, + end: '\\n', + name: 'comment.line.apostrophe.QB64' + } + ] + }, + { + match: + '(?i:\\b(?!open\\s)(If|Then|Else|ElseIf|Else If|End If|Not|Or|And|Xor|Mod|While|Wend|For|Step|To|Each|Case|Select|End Select|Return|Continue|_Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf|Limit|_Limit|Delay|_Delay|sleep|Key|Off)\\b)', + name: 'keyword.control.QB64' + }, + { + captures: { + 1: {name: 'storage.type.QB64'}, + 2: {name: 'variable.other.dim.QB64'}, + 3: {name: 'meta.separator.comma.QB64'}, + 4: {name: 'graphics.QB64'}, + 5: {name: 'sound.QB64'} + }, + match: + '(?i:(dim shared?|dim|redim))\\s*(?:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)\\s*(,?))', + name: 'variable.other.dim.QB64' + }, + { + match: + '(?i:\\s*\\b(Shell|_Hide|Hide|Command|_Startdir|_CONSOLE OFF|CONSOLE OFF|_CONSOLE ON|CONSOLE On|echo|_echo|_DEST _CONSOLE|DEST CONSOLE|cv|_cv|startdir|Date|Time|on timer|_FREETIMER|_commandcount|commandcountCall|Screenhide|_Screenhide|_screenshow|_screenmove|screenmove|screen|screenshow|_screenmove|screenmove|os|_os|title|_title|_CONSOLETITLE|CONSOLETITLE|_newimage|newimage|DECLARE|DEF|SEG|resume|Rest|Timer|gosub|call|DEFINT|Cls|Const|As|_PRESERVE|PRESERVE|Function|End Function|Sub|End Sub|Title|Type|End Type|Randomize|option base|Print|Color|On Error Resume Next|On Error GoTo|Error|_errormessage|errormessage|errorline|_errorline|_INCLERRORFILE|INCLERRORFILE|Goto|FileExists|_FileExists|String|Integer|Long|_INTEGER64|INTEGER64|_Bit|Bit|_BYTE|BYTE|SINGLE|DOUBLE|_FLOAT|FLOAT|_OFFSET|OFFSET|_UNSIGNED|UNSIGNED|_MEM|MEM|LTrim|RTrim|Trim|Right|Left|LCase|UCase|Locate|Str|CVL|MKL|MKI|_mk|mk|CVI|Val|Mid|abs|_keyclear|keyclear)\\b\\s*)', + name: 'storage.type.QB64' + }, + { + match: + '(?i:\\s*\\b(ByVal|Dynamic|Library|Inkey|Name|Open|For|Eof|Poke|Data|Close|Get|Read|Input|Random|Kill|Put|Write|Append|Output|FreeFile|Files|_openhost|openhost|_OPENCLIENT|_openconnection|openconnection|OPENCLIENT|_CONNECTED|CONNECTED|_CONNECTIONADDRESS|CONNECTIONADDRESS|_direxists|direxists|_fileexists|fileexists|mkdir|rmdir|_cwd|cwd)\\b\\s*)', + name: 'storage.type.QB64' + }, + { + match: '(?i:\\b(End|Stop|System|Environ|_ENVIRONCOUNT|ENVIRONCOUNT)\\b)', + name: 'storage.type.QB64' + }, + {match: '(?i:\\b(_assert)\\b)', name: 'debug.QB64'}, + {match: '(\\b(?:TODO|FIXME|FIXIT):?\\b)', name: 'todo.QB64'}, + { + match: + "(?i:\\b(REM|'|$DYNAMIC|$STATIC|Option _Explicit|option _explicitarray|option explicitarray|$RESIZE:|$ASSERTS|$Noprefix|$CHECKING|$COLOR|$CONSOLE|$DEBUG|$ERROR|$EXEICON|$LET|$IF|$ELSEIF|$END IF|$SCREENHIDE|$SCREENSHOW|$VIRTUALKEYBOARD|$VERSIONINFO:Comments|$VERSIONINFO:CompanyName|$VERSIONINFO:FileDescription|$VERSIONINFO:FileVersion|$VERSIONINFO:InternalName|$VERSIONINFO:LegalCopyright|$VERSIONINFO:LegalTrademarks|$VERSIONINFO:OriginalFilename|$VERSIONINFO:ProductName|$VERSIONINFO:ProductVersion|$VERSIONINFO:Web)\\b)", + name: 'metacommand.QB64' + }, + { + match: + '(?i:\\b(beep|play|sound|sndbal|sndclose|sndcopy|sndgetpos|sndlen|sndlimit|sndloop|sndopen|sndopenraw|sndpause|sndpaused|sndplay|sndplaycopy|sndplayfile|sndplaying|sndrate|sndraw|sndrawdone|sndrawlen|sndsetpos|sndstop|sndvol)\\b)', + name: 'sound.QB64' + }, + { + match: + '(?i:\\b(_sndbal|_sndclose|_sndcopy|_sndgetpos|_sndlen|_sndlimit|_sndloop|_sndopen|_sndopenraw|_sndpause|_sndpaused|_sndplay|_sndplaycopy|_sndplayfile|_sndplaying|_sndrate|_sndraw|_sndrawdone|_sndrawlen|_sndsetpos|_sndstop|_sndvol)\\b)', + name: 'sound.QB64' + }, + { + match: + '(?i:\\b(line|circle|point|glrender|glaccum|glalphafunc|glaretexturesresident|glarrayelement|glbegin|glbindtexture|glbitmap|glblendfunc|glcalllist|glcalllists|glclear|glclearaccum|glclearcolor|glcleardepth|glclearindex|glclearstencil|glclipplane|glcolor3b|glcolor3bv|glcolor3d|glcolor3dv|glcolor3f|glcolor3fv|glcolor3i|glcolor3iv|glcolor3s|glcolor3sv|glcolor3ub|glcolor3ubv|glcolor3ui|glcolor3uiv|glcolor3us|glcolor3usv|glcolor4b|glcolor4bv|glcolor4d|glcolor4dv|glcolor4f|glcolor4fv|glcolor4i|glcolor4iv|glcolor4s|glcolor4sv|glcolor4ub|glcolor4ubv|glcolor4ui|glcolor4uiv|glcolor4us|glcolor4usv|glcolormask|glcolormaterial|glcolorpointer|glcopypixels|glcopyteximage1d|glcopyteximage2d|glcopytexsubimage1d|glcopytexsubimage2d|glcullface|gldeletelists|gldeletetextures|gldepthfunc|gldepthmask|gldepthrange|gldisable|gldisableclientstate|gldrawarrays|gldrawbuffer|gldrawelements|gldrawpixels|gledgeflag|gledgeflagpointer|gledgeflagv|glenable|glenableclientstate|glend|glendlist|glevalcoord1d|glevalcoord1dv|glevalcoord1f|glevalcoord1fv|glevalcoord2d|glevalcoord2dv|glevalcoord2f|glevalcoord2fv|glevalmesh1|glevalmesh2|glevalpoint1|glevalpoint2|glfeedbackbuffer|glfinish|glflush|glfogf|glfogfv|glfogi|glfogiv|glfrontface|glfrustum|glgenlists|glgentextures|glgetbooleanv|glgetclipplane|glgetdoublev|glgeterror|glgetfloatv|glgetintegerv|glgetlightfv|glgetlightiv|glgetmapdv|glgetmapfv|glgetmapiv|glgetmaterialfv|glgetmaterialiv|glgetpixelmapfv|glgetpixelmapuiv|glgetpixelmapusv|glgetpointerv|glgetpolygonstipple|glgetstring|glgettexenvfv|glgettexenviv|glgettexgendv|glgettexgenfv|glgettexgeniv|glgetteximage|glgettexlevelparameterfv|glgettexlevelparameteriv|glgettexparameterfv|glgettexparameteriv|glhint|glindexmask|glindexpointer|glindexd|glindexdv|glindexf|glindexfv|glindexi|glindexiv|glindexs|glindexsv|glindexub|glindexubv|glinitnames|glinterleavedarrays|glisenabled|glislist|glistexture|gllightmodelf|gllightmodelfv|gllightmodeli|gllightmodeliv|gllightf|gllightfv|gllighti|gllightiv|gllinestipple|gllinewidth|gllistbase|glloadidentity|glloadmatrixd|glloadmatrixf|glloadname|gllogicop|glmap1d|glmap1f|glmap2d|glmap2f|glmapgrid1d|glmapgrid1f|glmapgrid2d|glmapgrid2f|glmaterialf|glmaterialfv|glmateriali|glmaterialiv|glmatrixmode|glmultmatrixd|glmultmatrixf|glnewlist|glnormal3b|glnormal3bv|glnormal3d|glnormal3dv|glnormal3f|glnormal3fv|glnormal3i|glnormal3iv|glnormal3s|glnormal3sv|glnormalpointer|glortho|glpassthrough|glpixelmapfv|glpixelmapuiv|glpixelmapusv|glpixelstoref|glpixelstorei|glpixeltransferf|glpixeltransferi|glpixelzoom|glpointsize|glpolygonmode|glpolygonoffset|glpolygonstipple|glpopattrib|glpopclientattrib|glpopmatrix|glpopname|glprioritizetextures|glpushattrib|glpushclientattrib|glpushmatrix|glpushname|glrasterpos2d|glrasterpos2dv|glrasterpos2f|glrasterpos2fv|glrasterpos2i|glrasterpos2iv|glrasterpos2s|glrasterpos2sv|glrasterpos3d|glrasterpos3dv|glrasterpos3f|glrasterpos3fv|glrasterpos3i|glrasterpos3iv|glrasterpos3s|glrasterpos3sv|glrasterpos4d|glrasterpos4dv|glrasterpos4f|glrasterpos4fv|glrasterpos4i|glrasterpos4iv|glrasterpos4s|glrasterpos4sv|glreadbuffer|glreadpixels|glrectd|glrectdv|glrectf|glrectfv|glrecti|glrectiv|glrects|glrectsv|glrendermode|glrotated|glrotatef|glscaled|glscalef|glscissor|glselectbuffer|glshademodel|glstencilfunc|glstencilmask|glstencilop|gltexcoord1d|gltexcoord1dv|gltexcoord1f|gltexcoord1fv|gltexcoord1i|gltexcoord1iv|gltexcoord1s|gltexcoord1sv|gltexcoord2d|gltexcoord2dv|gltexcoord2f|gltexcoord2fv|gltexcoord2i|gltexcoord2iv|gltexcoord2s|gltexcoord2sv|gltexcoord3d|gltexcoord3dv|gltexcoord3f|gltexcoord3fv|gltexcoord3i|gltexcoord3iv|gltexcoord3s|gltexcoord3sv|gltexcoord4d|gltexcoord4dv|gltexcoord4f|gltexcoord4fv|gltexcoord4i|gltexcoord4iv|gltexcoord4s|gltexcoord4sv|gltexcoordpointer|gltexenvf|gltexenvfv|gltexenvi|gltexenviv|gltexgend|gltexgendv|gltexgenf|gltexgenfv|gltexgeni|gltexgeniv|glteximage1d|glteximage2d|gltexparameterf|gltexparameterfv|gltexparameteri|gltexparameteriv|gltexsubimage1d|gltexsubimage2d|gltranslated|gltranslatef|glvertex2d|glvertex2dv|glvertex2f|glvertex2fv|glvertex2i|glvertex2iv|glvertex2s|glvertex2sv|glvertex3d|glvertex3dv|glvertex3f|glvertex3fv|glvertex3i|glvertex3iv|glvertex3s|glvertex3sv|glvertex4d|glvertex4dv|glvertex4f|glvertex4fv|glvertex4i|glvertex4iv|glvertex4s|glvertex4sv|glvertexpointer|glviewport)\\b)', + name: 'graphics.QB64' + }, + { + match: + '(?i:\\b(_glrender|_glaccum|_glalphafunc|_glaretexturesresident|_glarrayelement|_glbegin|_glbindtexture|_glbitmap|_glblendfunc|_glcalllist|_glcalllists|_glclear|_glclearaccum|_glclearcolor|_glcleardepth|_glclearindex|_glclearstencil|_glclipplane|_glcolor3b|_glcolor3bv|_glcolor3d|_glcolor3dv|_glcolor3f|_glcolor3fv|_glcolor3i|_glcolor3iv|_glcolor3s|_glcolor3sv|_glcolor3ub|_glcolor3ubv|_glcolor3ui|_glcolor3uiv|_glcolor3us|_glcolor3usv|_glcolor4b|_glcolor4bv|_glcolor4d|_glcolor4dv|_glcolor4f|_glcolor4fv|_glcolor4i|_glcolor4iv|_glcolor4s|_glcolor4sv|_glcolor4ub|_glcolor4ubv|_glcolor4ui|_glcolor4uiv|_glcolor4us|_glcolor4usv|_glcolormask|_glcolormaterial|_glcolorpointer|_glcopypixels|_glcopyteximage1d|_glcopyteximage2d|_glcopytexsubimage1d|_glcopytexsubimage2d|_glcullface|_gldeletelists|_gldeletetextures|_gldepthfunc|_gldepthmask|_gldepthrange|_gldisable|_gldisableclientstate|_gldrawarrays|_gldrawbuffer|_gldrawelements|_gldrawpixels|_gledgeflag|_gledgeflagpointer|_gledgeflagv|_glenable|_glenableclientstate|_glend|_glendlist|_glevalcoord1d|_glevalcoord1dv|_glevalcoord1f|_glevalcoord1fv|_glevalcoord2d|_glevalcoord2dv|_glevalcoord2f|_glevalcoord2fv|_glevalmesh1|_glevalmesh2|_glevalpoint1|_glevalpoint2|_glfeedbackbuffer|_glfinish|_glflush|_glfogf|_glfogfv|_glfogi|_glfogiv|_glfrontface|_glfrustum|_glgenlists|_glgentextures|_glgetbooleanv|_glgetclipplane|_glgetdoublev|_glgeterror|_glgetfloatv|_glgetintegerv|_glgetlightfv|_glgetlightiv|_glgetmapdv|_glgetmapfv|_glgetmapiv|_glgetmaterialfv|_glgetmaterialiv|_glgetpixelmapfv|_glgetpixelmapuiv|_glgetpixelmapusv|_glgetpointerv|_glgetpolygonstipple|_glgetstring|_glgettexenvfv|_glgettexenviv|_glgettexgendv|_glgettexgenfv|_glgettexgeniv|_glgetteximage|_glgettexlevelparameterfv|_glgettexlevelparameteriv|_glgettexparameterfv|_glgettexparameteriv|_glhint|_glindexmask|_glindexpointer|_glindexd|_glindexdv|_glindexf|_glindexfv|_glindexi|_glindexiv|_glindexs|_glindexsv|_glindexub|_glindexubv|_glinitnames|_glinterleavedarrays|_glisenabled|_glislist|_glistexture|_gllightmodelf|_gllightmodelfv|_gllightmodeli|_gllightmodeliv|_gllightf|_gllightfv|_gllighti|_gllightiv|_gllinestipple|_gllinewidth|_gllistbase|_glloadidentity|_glloadmatrixd|_glloadmatrixf|_glloadname|_gllogicop|_glmap1d|_glmap1f|_glmap2d|_glmap2f|_glmapgrid1d|_glmapgrid1f|_glmapgrid2d|_glmapgrid2f|_glmaterialf|_glmaterialfv|_glmateriali|_glmaterialiv|_glmatrixmode|_glmultmatrixd|_glmultmatrixf|_glnewlist|_glnormal3b|_glnormal3bv|_glnormal3d|_glnormal3dv|_glnormal3f|_glnormal3fv|_glnormal3i|_glnormal3iv|_glnormal3s|_glnormal3sv|_glnormalpointer|_glortho|_glpassthrough|_glpixelmapfv|_glpixelmapuiv|_glpixelmapusv|_glpixelstoref|_glpixelstorei|_glpixeltransferf|_glpixeltransferi|_glpixelzoom|_glpointsize|_glpolygonmode|_glpolygonoffset|_glpolygonstipple|_glpopattrib|_glpopclientattrib|_glpopmatrix|_glpopname|_glprioritizetextures|_glpushattrib|_glpushclientattrib|_glpushmatrix|_glpushname|_glrasterpos2d|_glrasterpos2dv|_glrasterpos2f|_glrasterpos2fv|_glrasterpos2i|_glrasterpos2iv|_glrasterpos2s|_glrasterpos2sv|_glrasterpos3d|_glrasterpos3dv|_glrasterpos3f|_glrasterpos3fv|_glrasterpos3i|_glrasterpos3iv|_glrasterpos3s|_glrasterpos3sv|_glrasterpos4d|_glrasterpos4dv|_glrasterpos4f|_glrasterpos4fv|_glrasterpos4i|_glrasterpos4iv|_glrasterpos4s|_glrasterpos4sv|_glreadbuffer|_glreadpixels|_glrectd|_glrectdv|_glrectf|_glrectfv|_glrecti|_glrectiv|_glrects|_glrectsv|_glrendermode|_glrotated|_glrotatef|_glscaled|_glscalef|_glscissor|_glselectbuffer|_glshademodel|_glstencilfunc|_glstencilmask|_glstencilop|_gltexcoord1d|_gltexcoord1dv|_gltexcoord1f|_gltexcoord1fv|_gltexcoord1i|_gltexcoord1iv|_gltexcoord1s|_gltexcoord1sv|_gltexcoord2d|_gltexcoord2dv|_gltexcoord2f|_gltexcoord2fv|_gltexcoord2i|_gltexcoord2iv|_gltexcoord2s|_gltexcoord2sv|_gltexcoord3d|_gltexcoord3dv|_gltexcoord3f|_gltexcoord3fv|_gltexcoord3i|_gltexcoord3iv|_gltexcoord3s|_gltexcoord3sv|_gltexcoord4d|_gltexcoord4dv|_gltexcoord4f|_gltexcoord4fv|_gltexcoord4i|_gltexcoord4iv|_gltexcoord4s|_gltexcoord4sv|_gltexcoordpointer|_gltexenvf|_gltexenvfv|_gltexenvi|_gltexenviv|_gltexgend|_gltexgendv|_gltexgenf|_gltexgenfv|_gltexgeni|_gltexgeniv|_glteximage1d|_glteximage2d|_gltexparameterf|_gltexparameterfv|_gltexparameteri|_gltexparameteriv|_gltexsubimage1d|_gltexsubimage2d|_gltranslated|_gltranslatef|_glvertex2d|_glvertex2dv|_glvertex2f|_glvertex2fv|_glvertex2i|_glvertex2iv|_glvertex2s|_glvertex2sv|_glvertex3d|_glvertex3dv|_glvertex3f|_glvertex3fv|_glvertex3i|_glvertex3iv|_glvertex3s|_glvertex3sv|_glvertex4d|_glvertex4dv|_glvertex4f|_glvertex4fv|_glvertex4i|_glvertex4iv|_glvertex4s|_glvertex4sv|_glvertexpointer|_glviewport)\\b)', + name: 'graphics.QB64' + }, + { + match: + '(?i:\\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsDate|IsNull|IsNumeric|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|Maths|Mid|Minute|Month|MonthName|Oct|Rgb|_Rgb|_rgba|rgba|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Sqr|StrComp|String|StrReverse|Tan|Time|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\\b)', + name: 'storage.type.QB64' + }, + { + begin: '"', + beginCaptures: {0: {name: 'punctuation.definition.string.begin.QB64'}}, + end: '"', + endCaptures: {0: {name: 'punctuation.definition.string.end.QB64'}}, + name: 'string.quoted.double.QB64', + patterns: [ + {match: '""', name: 'constant.character.escape.apostrophe.QB64'} + ] + }, + { + captures: { + 1: {name: 'punctuation.definition.variable.QB64'}, + 2: {name: 'support.function.QB64'} + }, + match: '(\\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b\\s*', + name: 'variable.other.QB64' + }, + { + match: + '(?i:\\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\\b)', + name: 'support.function.QB64' + }, + {match: '\\b\\w+\\s+as\\s+\\w+\b(?!\\s*\\))', name: 'support.type.QB64'}, + { + match: + '-?\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b', + name: 'constant.numeric.QB64' + }, + { + captures: {1: {name: 'entity.name.function.QB64'}}, + match: '(?i:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)(?=\\(\\)?))', + name: 'support.function.QB64' + }, + { + match: + '(?i:((?<=(\\+|=|-|\\&|\\\\|/|<|>|\\(|,))\\s*\\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\\b(?!(\\(|\\.))|\\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\\b(?=\\s*(\\+|=|-|\\&|\\\\|/|<|>|\\(|\\)))))', + name: 'variable.other.QB64' + } + ], + repository: { + 'round-brackets': { + begin: '\\(', + beginCaptures: { + 0: {name: 'punctuation.section.round-brackets.begin.QB64'} + }, + end: '\\)', + endCaptures: {0: {name: 'punctuation.section.round-brackets.end.QB64'}}, + name: 'meta.round-brackets', + patterns: [{include: 'source.QB64'}] + } + }, + scopeName: 'source.QB64' +} + +export default grammar diff --git a/lang/source.abap.js b/lang/source.abap.js index 5a5d4f4..6892eb9 100644 --- a/lang/source.abap.js +++ b/lang/source.abap.js @@ -176,7 +176,7 @@ const grammar = { repository: { abap_constants: { match: - '(?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|\\.|,)', + '(?ix)(?<=\\s)(initial|null|@?space|@?abap_true|@?abap_false|@?abap_undefined|table_line|\n %_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: { @@ -236,7 +236,7 @@ const grammar = { }, main_keywords: { match: - '(?ix)(?<=^|\\s)(\nabap-source|\nabstract|\naccept|\naccepting|\naccess|\naccording|\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|\nfollowing|\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|\nindicators|\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|\npreceeding|\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|\nunbounded|\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|\\.|:|,)', + '(?ix)(?<=^|\\s)(\nabap-source|\nabstract|\naccept|\naccepting|\naccess|\naccording|\naction|\nactivation|\nactual|\nadd|\nadd-corresponding|\nadjacent|\nafter|\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|\nfollowing|\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|\nincluding|\nincrement|\nindex|\nindex-line|\nindicators|\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|\npreceding|\nprecompiled|\npreferred|\npreserving|\nprimary|\nprint|\nprint-control|\nprivate|\nprivileged|\nprocedure|\nprocess|\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|\nunbounded|\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: { diff --git a/lang/source.abl.js b/lang/source.abl.js index 469f7f8..2da655b 100644 --- a/lang/source.abl.js +++ b/lang/source.abl.js @@ -247,7 +247,7 @@ const grammar = { 2: {name: 'punctuation.separator.colon.abl'} }, match: - '(?i)\\s*(this-object|super|self|this-procedure|target-procedure|source-procedure|session|error-status|compiler|audit-control|audit-policy|clipboard|codebase-locator|color-table|debugger|dslog-manager|file-information|file-info|font-table|last-event|log-manager|profiler|rcode-information|rcode-info|security-policy|session|web-context)\\s*(?=:)' + '(?i)\\b(this-object|super|self|this-procedure|target-procedure|source-procedure|session|error-status|compiler|audit-control|audit-policy|clipboard|codebase-locator|color-table|debugger|dslog-manager|file-information|file-info|font-table|last-event|log-manager|profiler|rcode-information|rcode-info|security-policy|session|web-context)\\b(?![\\#\\$\\-\\_\\%\\&])' }, 'access-modifier': { captures: {1: {name: 'keyword.other.abl'}}, @@ -591,6 +591,7 @@ const grammar = { {include: '#define-enum-member'}, {include: '#define-variable'}, {include: '#define-parameter'}, + {include: '#define-button'}, {include: '#define-dataset'}, {include: '#define-event'}, {include: '#define-property'}, @@ -643,6 +644,22 @@ const grammar = { {include: '#string'} ] }, + 'define-button': { + begin: '(?i)\\s*(button)\\s+([a-z][a-z0-9#$\\-_%&]*)', + beginCaptures: { + 1: {name: 'keyword.other.abl'}, + 2: {name: 'variable.other.abl'} + }, + end: '(?=\\.)', + patterns: [ + {include: '#comment'}, + {include: '#string'}, + {include: '#from-x-and-y'}, + {include: '#numeric'}, + {include: '#keywords'}, + {include: '#expression'} + ] + }, 'define-class': { begin: '(?i)\\b(?)' + match: '\\b(cast)(<)([A-Za-z_][A-Za-z_0-9]*)(>)' }, { captures: { 1: {name: 'storage.type.angelscript'}, 2: {name: 'variable.other.angelscript'} }, - match: '^\\s*([A-Za-z_][A-Za-z_0-9]+)\\s+([A-Za-z_][A-Za-z_0-9]+)\\s*[=;]' + match: + '(?x:\n ^\\s*\n ([A-Za-z_][A-Za-z_0-9]*)\n \\s+\n ([A-Za-z_][A-Za-z_0-9]*)\n \\s*[=;]\n)' + }, + { + captures: { + 1: {name: 'storage.type.angelscript'}, + 2: {name: 'storage.type.angelscript'}, + 3: {name: 'storage.type.angelscript'}, + 4: {name: 'storage.type.angelscript'}, + 5: {name: 'storage.type.angelscript'}, + 6: {name: 'storage.type.angelscript'}, + 7: {name: 'variable.other.angelscript'} + }, + match: + '(?x:\n ^\\s*\n ([A-Za-z_][A-Za-z_0-9]*)\n <(?:\n (.*?)\n (?:,\\s*(.*?))?\n (?:,\\s*(.*?))?\n (?:,\\s*(.*?))?\n (?:,\\s*(.*?))?\n )>\n \\s+\n ([A-Za-z_][A-Za-z_0-9]*)\n \\s*[=;]\n)' }, { captures: { 1: {name: 'storage.type.angelscript'}, 2: {name: 'meta.function entity.name.function.angelscript'} }, - match: '^\\s*([A-Za-z_][A-Za-z_0-9]+)\\s+([A-Za-z_][A-Za-z_0-9]+)\\(' + match: '^\\s*([A-Za-z_][A-Za-z_0-9]*)\\s+([A-Za-z_][A-Za-z_0-9]*)\\(' }, { captures: { 1: {name: 'keyword.other.angelscript'}, 2: {name: 'variable.other.angelscript'} }, - match: '(@)([A-Za-z_][A-Za-z_0-9]+)\\b' + match: '(@)([A-Za-z_][A-Za-z_0-9]*)\\b' }, { captures: { 1: {name: 'variable.other.angelscript'}, 2: {name: 'keyword.operator.assignment.angelscript'} }, - match: '\\b([A-Za-z_][A-Za-z_0-9]+)\\s*([-+/*%]?=)' + match: '\\b([A-Za-z_][A-Za-z_0-9]*)\\s*([-+/*%]?=)' + }, + { + captures: { + 1: {name: 'entity.name.namespace'}, + 2: {name: 'keyword.operator.symbolic.angelscript'} + }, + match: '\\b([a-zA-Z_][a-zA-Z_0-9]*)(::)' }, {match: '[=]', name: 'keyword.operator.assignment.angelscript'}, {match: '[%*+\\-/]', name: 'keyword.operator.arithmetic.angelscript'}, @@ -124,14 +145,14 @@ const grammar = { 2: {name: 'keyword.other.angelscript'}, 3: {name: 'variable.other.angelscript'} }, - match: '([A-Za-z_][A-Za-z_0-9]+)(@)\\s+([A-Za-z_][A-Za-z_0-9]+)' + match: '([A-Za-z_][A-Za-z_0-9]*)(@)\\s+([A-Za-z_][A-Za-z_0-9]*)' }, { captures: { 1: {name: 'storage.type.angelscript'}, 2: {name: 'keyword.other.angelscript'} }, - match: '([A-Za-z_][A-Za-z_0-9]+)(@)' + match: '([A-Za-z_][A-Za-z_0-9]*)(@)' }, {match: '\\b(null|true|false)\\b', name: 'constant.language.angelscript'}, {match: '\\b(this|super)\\b', name: 'variable.language.angelscript'}, @@ -151,30 +172,45 @@ const grammar = { name: 'meta.metadata.angelscript' }, { - match: '\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()', + match: '\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*[<\\(])', name: 'variable.other.dot-access.angelscript' }, { captures: { 1: {name: 'storage.type.class.angelscript'}, - 11: {name: 'entity.other.inherited-class.angelscript'}, 2: {name: 'entity.name.type.class.angelscript'}, 3: {name: 'entity.other.inherited-class.angelscript'}, + 4: {name: 'entity.other.inherited-class.angelscript'}, 5: {name: 'entity.other.inherited-class.angelscript'}, - 7: {name: 'entity.other.inherited-class.angelscript'}, - 9: {name: 'entity.other.inherited-class.angelscript'} + 6: {name: 'entity.other.inherited-class.angelscript'}, + 7: {name: 'entity.other.inherited-class.angelscript'} }, match: - '\\b(class|interface)\\s+([a-zA-Z_0-9]*)(?:\\s*:\\s*([a-zA-Z_0-9]*)(\\s*,\\s*([a-zA-Z_0-9]*))?(\\s*,\\s*([a-zA-Z_0-9]*))?(\\s*,\\s*([a-zA-Z_0-9]*))?(\\s*,\\s*([a-zA-Z_0-9]*))?)?', + '(?x:\n \\b(class|interface)\n \\s+([a-zA-Z_0-9]*)\n (?:\n \\s*:\\s*([a-zA-Z_0-9]*)\n (?:\\s*,\\s*([a-zA-Z_0-9]*))?\n (?:\\s*,\\s*([a-zA-Z_0-9]*))?\n (?:\\s*,\\s*([a-zA-Z_0-9]*))?\n (?:\\s*,\\s*([a-zA-Z_0-9]*))?\n )?\n)', name: 'meta.class.angelscript' }, { captures: { - 2: { + 1: { name: 'meta.function-call.angelscript variable.function.angelscript' } }, - match: '(\\b|\\.)([a-zA-Z_][a-zA-Z_0-9]*)\\b(\\s*\\()' + match: + '(?x:\n (?:\\b|\\.)\n ([a-zA-Z_][a-zA-Z_0-9]*)\n \\b(?:\\s*\\()\n)' + }, + { + captures: { + 1: { + name: 'meta.function-call.angelscript variable.function.angelscript' + }, + 2: {name: 'storage.type.angelscript'}, + 3: {name: 'storage.type.angelscript'}, + 4: {name: 'storage.type.angelscript'}, + 5: {name: 'storage.type.angelscript'}, + 6: {name: 'storage.type.angelscript'} + }, + match: + '(?x:\n (?:\\b|\\.)\n ([a-zA-Z_][a-zA-Z_0-9]*)\n <(?:\n (.*?)\n (?:,\\s*(.*?))?\n (?:,\\s*(.*?))?\n (?:,\\s*(.*?))?\n (?:,\\s*(.*?))?\n )>\\(\n)' }, {match: '\\b([A-Z][A-Z0-9_]+)\\b', name: 'constant.other.angelscript'} ], diff --git a/lang/source.basic.js b/lang/source.basic.js index 108da50..9c0c685 100644 --- a/lang/source.basic.js +++ b/lang/source.basic.js @@ -25,7 +25,7 @@ const grammar = { name: 'constant.numeric.basic' }, {match: '"[^"]*"', name: 'string.quoted.double.basic'}, - {match: "(?i:\bREM\b.*|^'.*| '.*)", name: 'comment.line.basic'}, + {match: "(?i:\\bREM\\b.*|^'.*| '.*)", name: 'comment.line.basic'}, { match: '\\b(?i:FOR|TO|NEXT|IF|THEN|ELSE|GO\\s*TO|GOSUB|RETURN)\\b', name: 'keyword.control.basic' diff --git a/lang/source.bb.js b/lang/source.bb.js index 0f5f945..acb2ba8 100644 --- a/lang/source.bb.js +++ b/lang/source.bb.js @@ -86,10 +86,7 @@ const grammar = { '(? +// // and licensed `mit`. // See for more info. /** @@ -133,7 +133,14 @@ const grammar = { }, end: '$' }, - {match: '(?i)#(КонецОбласти|EndRegion)', name: 'keyword.other.section.bsl'} + {match: '(?i)#(КонецОбласти|EndRegion)', name: 'keyword.other.section.bsl'}, + {match: '(?i)#(Удаление|Delete)', name: 'keyword.other.section.bsl'}, + { + match: '(?i)#(КонецУдаления|EndDelete)', + name: 'keyword.other.section.bsl' + }, + {match: '(?i)#(Вставка|Insert)', name: 'keyword.other.section.bsl'}, + {match: '(?i)#(КонецВставки|EndInsert)', name: 'keyword.other.section.bsl'} ], repository: { annotations: { diff --git a/lang/source.cmake.js b/lang/source.cmake.js index 14833f8..93ba2c5 100644 --- a/lang/source.cmake.js +++ b/lang/source.cmake.js @@ -1,5 +1,7 @@ // This is a TextMate grammar distributed by `starry-night`. -// This grammar is licensed permissive. +// This grammar is developed at +// +// and licensed `mit`. // See for more info. /** * @import {Grammar} from '@wooorm/starry-night' @@ -11,102 +13,102 @@ const grammar = { names: ['cmake'], patterns: [ { - begin: '(?i)^\\s*(function|macro)\\s*(\\()', - beginCaptures: { - 1: {name: 'support.function.cmake'}, - 2: {name: 'punctuation.definition.parameters.begin.command.cmake'} - }, - contentName: 'meta.function-call.function.cmake', - end: '(\\))', - endCaptures: { - 1: {name: 'punctuation.definition.parameters.end.command.cmake'} - }, - name: 'meta.function-call.command.cmake', - patterns: [{include: '#argument-constants'}, {include: '#items'}] - }, - { - begin: - '(?ix)\n\t\t\t^\\s*\t# Start of the line with optional preceding space\n\t\t\t(?:\t# Either a control flow keyword\n\t\t\t\t((?:end)?(?:(?:else)?if|while|foreach)|return|else)\n\t\t\t\t|\t# Or a function\n\t\t\t\t(s(tring|ite_name|ource_group|ubdir(s|_depends)|e(t(_(source_files_properties|t(ests_properties|arget_properties)|directory_properties|property))?|parate_arguments))|c(test_(s(tart|ubmit|leep)|co(nfigure|verage)|test|up(date|load)|empty_binary_directory|r(un_script|ead_custom_files)|memcheck|build)|on(tinue|figure_file)|reate_test_sourcelist|make_(host_system_information|policy|minimum_required))|t(arget_(sources|compile_(options|definitions|features)|include_directories|link_libraries)|ry_(compile|run))|i(n(stall(_(targets|programs|files))?|clude(_(directories|external_msproject|regular_expression))?)|f)|o(utput_required_files|ption)|define_property|u(se_mangled_mesa|nset|tility_source)|project|e(n(d(if|f(oreach|unction)|while|macro)|able_(testing|language))|lse(if)?|x(port(_library_dependencies)?|ec(ute_process|_program)))|variable_(watch|requires)|qt_wrap_(cpp|ui)|f(i(nd_(p(a(ckage|th)|rogram)|file|library)|le)|oreach|unction|ltk_wrap_ui)|w(hile|rite_file)|l(i(st|nk_(directories|libraries))|oad_c(ommand|ache))|a(dd_(subdirectory|c(ompile_options|ustom_(command|target))|test|de(pendencies|finitions)|executable|library)|ux_source_directory)|re(turn|move(_definitions)?)|get_(source_file_property|cmake_property|t(est_property|arget_property)|directory_property|property|filename_component)|m(essage|a(cro|th|ke_directory|rk_as_advanced))|b(uild_(name|command)|reak))\n\t\t\t\t|\t# Or some function we don’t know about\n\t\t\t\t(\\w+)\n\t\t\t)\n\t\t\t\\s*(\\()\t# Finally, the opening parenthesis for the argument list\n\t\t\t', - beginCaptures: { - 1: {name: 'keyword.control.cmake'}, - 2: {name: 'support.function.cmake'}, - 3: {name: 'punctuation.definition.parameters.begin.command.cmake'} - }, - end: '(\\))', - endCaptures: { - 1: {name: 'punctuation.definition.parameters.end.command.cmake'} - }, - name: 'meta.function-call.command.cmake', - patterns: [{include: '#argument-constants'}, {include: '#items'}] - }, - {include: '#items'} - ], - repository: { - 'argument-constants': { match: - '\\b(R(UN(_(RESULT_VAR|OUTPUT_VARIABLE)|TIME(_DIRECTORY)?)|E(G(ULAR_EXPRESSION|EX)|MOVE(_(RECURSE|ITEM|DUPLICATES|AT))?|S(OURCE|ULT(_VAR(IABLE)?)?)|NAME|T(RY_(COUNT|DELAY)|URN_VALUE)|PLACE|VERSE|QUIRED(_VARIABLE(1|2))?|L(EASE|ATIVE(_PATH)?)|AD(_WITH_PREFIX)?)|AN(GE|DOM(_SEED)?))|G(R(OUP_(READ|EXECUTE)|EATER)|U(ID|ARD)|E(NE(RATE|X_STRIP)|T)|LOB(_RECURSE|AL)?)|M(ODULE|D5|ESSAGE(_NEVER)?|A(COSX_BUNDLE|TCH(ES|ALL)?|IN_DEPENDENCY|KE_(C_IDENTIFIER|DIRECTORY)))|B(RIEF_DOCS|YPRODUCTS|U(NDLE|ILD(_(TESTING|INTERFACE))?)|EFORE)|S(HA(RED|1|2(24|56)|384|512)|YSTEM|C(RIPT|HEDULE_RANDOM)|T(R(GREATER|I(NGS|DE|P)|EQUAL|LESS)|OP_TIME|A(RT|TIC))|O(RT|URCE(S)?)|UBSTRING|ET)|H(INTS|EX)|N(NNN|O(_(MODULE|S(YSTEM_ENVIRONMENT_PATH|OURCE_PERMISSIONS)|CMAKE_(BUILDS_PATH|SYSTEM_PA(CKAGE_REGISTRY|TH)|PA(CKAGE_REGISTRY|TH)|ENVIRONMENT_PATH|FIND_ROOT_PATH)|DEFAULT_PATH|POLICY_SCOPE)|T(E(QUAL)?)?)|UMBER_(ERRORS|WARNINGS)|EW(_PROCESS|LINE_STYLE)?|AME(S(PACE)?|LINK_(SKIP|ONLY))?)|C(RLF|M(P(00(17|48))?|AKE_(MODULE_PATH|CURRENT_(BINARY_DIR|SOURCE_DIR)|F(IND_ROOT_PATH_BOTH|LAGS)))?|T(EST_(B(INARY_DIRECTORY|UILD_(COMMAND|TARGET))|SOURCE_DIRECTORY|PROJECT_NAME))?|O(M(M(ENT|AND(_NAME)?)|P(ILE_(RESULT_VAR|OUTPUT_VARIABLE|DEFINITIONS)|ONENT(S)?|ARE)?)|N(CAT|TENT|DITION|FIG(S|UR(E(_FILE)?|ATION(S)?))?)|DE|PY(_FILE(_ERROR)?|ONLY)?)|DASH_UPLOAD(_TYPE)?|VS|LEAR|ACHE(D_VARIABLE)?)|_(BAR|COMMAND|VERSION(_(M(INOR|AJOR)|TWEAK|PATCH))?|FOO)|T(RACK|YPE|IME(STAMP|OUT)|O(_(NATIVE_PATH|CMAKE_PATH)|UPPER|LOWER)|EST(_VARIABLE)?|ARGET(S|_(OBJECTS|FILE))?)|I(MP(ORTED(_(NO_SONAME|LOCATION(_)?)?)?|LICIT_DEPENDS)|S_(SYMLINK|NEWER_THAN|DIRECTORY|ABSOLUTE)|N(S(TALL(_INTERFACE)?|ERT)|HERITED|CLUDE(S|_(INTERNALS|DIRECTORIES|LABEL))?|_LIST|TERFACE(_)?|PUT(_FILE)?)?|TEMS|DE)|O(R|BJECT|N(LY(_CMAKE_FIND_ROOT_PATH)?)?|UTPUT(_(STRIP_TRAILING_WHITESPACE|DIRECTORY|VARIABLE|QUIET|FILE))?|PTION(S|AL(_COMPONENTS)?)|FF(SET)?|WNER_(READ|EXECUTE|WRITE)|LD)|D(BAR|IRECTORY(_PERMISSIONS)?|O(S|WNLOAD)|E(STINATION|PENDS|FIN(ITION|ED))|VAR|FOO)|U(SE(S_TERMINAL|_SOURCE_PERMISSIONS)|N(IX|KNOWN)|TC|UID|P(PER|LOAD))|P(R(IVATE(_HEADER)?|O(GRAM(S|_ARGS)?|CESS|JECT(_(NAME|VERSION(_(M(INOR|AJOR)|TWEAK|PATCH))?))?|PERT(Y|IES))|E(_(BUILD|INSTALL_SCRIPT|LINK)|ORDER))|O(ST_(BUILD|INSTALL_SCRIPT)|P|LICY)|U(BLIC(_HEADER)?|SH)|ERMISSIONS|LATFORM|A(R(TS|ENT_SCOPE|ALLEL_LEVEL)|CKAGE|T(H(S|_(SUFFIXES|TO_MESA))|TERN)))|E(RROR_(STRIP_TRAILING_WHITESPACE|VARIABLE|QUIET|FILE)|X(CLUDE(_(FROM_ALL|LABEL))?|TRA_INCLUDE|ISTS|P(R|ORT(_LINK_INTERFACE_LIBRARIES)?)|ACT)|SCAPE_QUOTES|N(D|V)|QUAL)|V(S|ER(BATIM|SION(_(GREATER|EQUAL|LESS))?)|A(R(2|IABLE)?|LUE))|QU(IET|ERY)|F(RAMEWORK|I(ND|LE(S(_MATCHING)?|_PERMISSIONS)?)|O(RCE|O_(STRING|ENABLE)|LLOW_SYMLINKS)|U(NCTION|LL_DOCS)|LAGS|ATAL_ERROR)|01|W(RITE|IN(32|DOWS)|ORKING_DIRECTORY)|L(I(MIT|BRARY|ST(S|_DIRECTORIES)|NK_(INTERFACE_LIBRARIES|DIRECTORIES|P(RIVATE|UBLIC)|LIBRARIES))|OCK|D_LIBRARY_PATH|E(SS|NGTH)|F|A(BELS|NGUAGES))|A(R(G(S|N|C|_VAR|V(1|2))|CHIVE)|SCII|ND|PPEND(_STRING)?|FTER|L(IAS|PHABET|L(_BUILD)?)))\\b', - name: 'keyword.other.argument-separator.cmake' - }, - comments: { - begin: '(^[ \\t]+)?(?=#)', - beginCaptures: { - 1: {name: 'punctuation.whitespace.comment.leading.cmake'} - }, - end: '(?!\\G)', - patterns: [ - { - begin: '#', - beginCaptures: {0: {name: 'punctuation.definition.comment.cmake'}}, - end: '\\n', - name: 'comment.line.number-sign.cmake' - } - ] + '\\b(?i:APPLE|BORLAND|(CMAKE_)?(CL_64|COMPILER_2005|HOST_APPLE|HOST_SYSTEM|HOST_SYSTEM_NAME|HOST_SYSTEM_PROCESSOR|HOST_SYSTEM_VERSION|HOST_UNIX|HOST_WIN32|LIBRARY_ARCHITECTURE|LIBRARY_ARCHITECTURE_REGEX|OBJECT_PATH_MAX|SYSTEM|SYSTEM_NAME|SYSTEM_PROCESSOR|SYSTEM_VERSION)|CYGWIN|MSVC|MSVC80|MSVC_IDE|MSVC_VERSION|UNIX|WIN32|XCODE_VERSION|MSVC60|MSVC70|MSVC90|MSVC71)\\b', + name: 'constant.source.cmake' }, - constants: { - match: '(?i)\\b(FALSE|OFF|NO|(\\w+-)?NOTFOUND)\\b', - name: 'constant.language.boolean.cmake' + { + match: + '\\b(?i:ABSOLUTE|AND|BOOL|CACHE|COMMAND|COMMENT|DEFINED|DOC|EQUAL|EXISTS|EXT|FALSE|GREATER|GREATER_EQUAL|IGNORE|INTERNAL|IN_LIST|IS_ABSOLUTE|IS_DIRECTORY|IS_NEWER_THAN|IS_SYMLINK|LESS|LESS_EQUAL|MATCHES|NAME|NAMES|NAME_WE|NO|NOT|NOTFOUND|OFF|ON|OR|PATH|PATHS|POLICY|PROGRAM|STREQUAL|STRGREATER|STRGREATER_EQUAL|STRING|STRLESS|STRLESS_EQUAL|TARGET|TEST|TRUE|VERSION_EQUAL|VERSION_GREATER|VERSION_GREATER_EQUAL|VERSION_LESS|YES)\\b', + name: 'keyword.cmake' }, - escapes: { - patterns: [ - {match: '\\\\["()#$^ \\\\]', name: 'constant.character.escape.cmake'} - ] + { + match: + '^\\s*\\b(?i:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|enable_language|enable_testing|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|write_file)\\b', + name: 'keyword.cmake' }, - items: { - patterns: [ - {include: '#comments'}, - {include: '#constants'}, - {include: '#strings'}, - {include: '#variables'}, - {include: '#escapes'} - ] + { + match: + '^\\s*\\b(?i:break|continue|else|elseif|endforeach|endfunction|endif|endmacro|endwhile|foreach|function|if|macro|while)\\b', + name: 'keyword.cmake.control_flow' }, - strings: { + { + match: + '\\b(?i:BUILD_SHARED_LIBS|(CMAKE_)?(ABSOLUTE_DESTINATION_FILES|AUTOMOC_RELAXED_MODE|BACKWARDS_COMPATIBILITY|BUILD_TYPE|COLOR_MAKEFILE|CONFIGURATION_TYPES|DEBUG_TARGET_PROPERTIES|DISABLE_FIND_PACKAGE_\\w+|FIND_LIBRARY_PREFIXES|FIND_LIBRARY_SUFFIXES|IGNORE_PATH|INCLUDE_PATH|INSTALL_DEFAULT_COMPONENT_NAME|INSTALL_PREFIX|LIBRARY_PATH|MFC_FLAG|MODULE_PATH|NOT_USING_CONFIG_FLAGS|POLICY_DEFAULT_CMP\\w+|PREFIX_PATH|PROGRAM_PATH|SKIP_INSTALL_ALL_DEPENDENCY|SYSTEM_IGNORE_PATH|SYSTEM_INCLUDE_PATH|SYSTEM_LIBRARY_PATH|SYSTEM_PREFIX_PATH|SYSTEM_PROGRAM_PATH|USER_MAKE_RULES_OVERRIDE|WARN_ON_ABSOLUTE_INSTALL_DESTINATION))\\b', + name: 'variable.source.cmake' + }, + {match: '\\$\\{\\w+\\}', name: 'storage.source.cmake'}, + {match: '\\$ENV\\{\\w+\\}', name: 'storage.source.cmake'}, + {match: '\\$CACHE\\{\\w+\\}', name: 'storage.source.cmake'}, + { + match: + '\\b(?i:(CMAKE_)?(\\w+_POSTFIX|ARCHIVE_OUTPUT_DIRECTORY|AUTOMOC|AUTOMOC_MOC_OPTIONS|BUILD_WITH_INSTALL_RPATH|DEBUG_POSTFIX|EXE_LINKER_FLAGS|EXE_LINKER_FLAGS_\\w+|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GNUtoMS|INCLUDE_CURRENT_DIR|INCLUDE_CURRENT_DIR_IN_INTERFACE|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_PATH_FLAG|LINK_DEF_FILE_FLAG|LINK_DEPENDS_NO_SHARED|LINK_INTERFACE_LIBRARIES|LINK_LIBRARY_FILE_FLAG|LINK_LIBRARY_FLAG|MACOSX_BUNDLE|NO_BUILTIN_CHRPATH|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|RUNTIME_OUTPUT_DIRECTORY|SKIP_BUILD_RPATH|SKIP_INSTALL_RPATH|TRY_COMPILE_CONFIGURATION|USE_RELATIVE_PATHS|WIN32_EXECUTABLE)|EXECUTABLE_OUTPUT_PATH|LIBRARY_OUTPUT_PATH)\\b', + name: 'variable.source.cmake' + }, + { + match: + '\\b(?i:CMAKE_(AR|ARGC|ARGV0|BINARY_DIR|BUILD_TOOL|CACHEFILE_DIR|CACHE_MAJOR_VERSION|CACHE_MINOR_VERSION|CACHE_PATCH_VERSION|CFG_INTDIR|COMMAND|CROSSCOMPILING|CTEST_COMMAND|CURRENT_BINARY_DIR|CURRENT_LIST_DIR|CURRENT_LIST_FILE|CURRENT_LIST_LINE|CURRENT_SOURCE_DIR|DL_LIBS|EDIT_COMMAND|EXECUTABLE_SUFFIX|EXTRA_GENERATOR|EXTRA_SHARED_LIBRARY_SUFFIXES|GENERATOR|HOME_DIRECTORY|IMPORT_LIBRARY_PREFIX|IMPORT_LIBRARY_SUFFIX|LINK_LIBRARY_SUFFIX|MAJOR_VERSION|MAKE_PROGRAM|MINOR_VERSION|PARENT_LIST_FILE|PATCH_VERSION|PROJECT_NAME|RANLIB|ROOT|SCRIPT_MODE_FILE|SHARED_LIBRARY_PREFIX|SHARED_LIBRARY_SUFFIX|SHARED_MODULE_PREFIX|SHARED_MODULE_SUFFIX|SIZEOF_VOID_P|SKIP_RPATH|SOURCE_DIR|STANDARD_LIBRARIES|STATIC_LIBRARY_PREFIX|STATIC_LIBRARY_SUFFIX|TWEAK_VERSION|USING_VC_FREE_TOOLS|VERBOSE_MAKEFILE|VERSION)|PROJECT_BINARY_DIR|PROJECT_NAME|PROJECT_SOURCE_DIR|\\w+_BINARY_DIR|\\w+__SOURCE_DIR)\\b', + name: 'variable.source.cmake' + }, + {begin: '#\\[(=*)\\[', end: '\\]\\1\\]', name: 'comment.source.cmake'}, + {begin: '\\[(=*)\\[', end: '\\]\\1\\]', name: 'argument.source.cmake'}, + {match: '#+.*$', name: 'comment.source.cmake'}, + { + match: '\\b(?i:ADVANCED|HELPSTRING|MODIFIED|STRINGS|TYPE|VALUE)\\b', + name: 'entity.source.cmake' + }, + { + match: + '\\b(?i:ABSTRACT|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_|COMPILE_FLAGS|EXTERNAL_OBJECT|Fortran_FORMAT|GENERATED|HEADER_FILE_ONLY|KEEP_EXTENSION|LABELS|LANGUAGE|LOCATION|MACOSX_PACKAGE_LOCATION|OBJECT_DEPENDS|OBJECT_OUTPUTS|SYMBOLIC|WRAP_EXCLUDE)\\b', + name: 'entity.source.cmake' + }, + { + match: + '\\b(?i:ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|COST|DEPENDS|ENVIRONMENT|FAIL_REGULAR_EXPRESSION|LABELS|MEASUREMENT|PASS_REGULAR_EXPRESSION|PROCESSORS|REQUIRED_FILES|RESOURCE_LOCK|RUN_SERIAL|TIMEOUT|WILL_FAIL|WORKING_DIRECTORY)\\b', + name: 'entity.source.cmake' + }, + { + match: + '\\b(?i:ADDITIONAL_MAKE_CLEAN_FILES|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_\\w+|DEFINITIONS|EXCLUDE_FROM_ALL|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LINK_DIRECTORIES|LISTFILE_STACK|MACROS|PARENT_DIRECTORY|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|TEST_INCLUDE_FILE|VARIABLES|VS_GLOBAL_SECTION_POST_\\w+|VS_GLOBAL_SECTION_PRE_\\w+)\\b', + name: 'entity.source.cmake' + }, + { + match: + '\\b(?i:ALLOW_DUPLICATE_CUSTOM_TARGETS|DEBUG_CONFIGURATIONS|DISABLED_FEATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|IN_TRY_COMPILE|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PREDEFINED_TARGETS_FOLDER|REPORT_UNDEFINED_PROPERTIES|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_SUPPORTS_SHARED_LIBS|USE_FOLDERS|__CMAKE_DELETE_CACHE_CHANGE_VARS_)\\b', + name: 'entity.source.cmake' + }, + { + match: + '\\b(?i:\\w+_(OUTPUT_NAME|POSTFIX)|ARCHIVE_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|AUTOMOC(_MOC_OPTIONS)?|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE(_EXTENSION)?|COMPATIBLE_INTERFACE_BOOL|COMPATIBLE_INTERFACE_STRING|COMPILE_(DEFINITIONS(_\\w+)?|FLAGS)|DEBUG_POSTFIX|DEFINE_SYMBOL|ENABLE_EXPORTS|EXCLUDE_FROM_ALL|EchoString|FOLDER|FRAMEWORK|Fortran_(FORMAT|MODULE_DIRECTORY)|GENERATOR_FILE_NAME|GNUtoMS|HAS_CXX|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(CONFIGURATIONS|IMPLIB(_\\w+)?|LINK_DEPENDENT_LIBRARIES(_\\w+)?|LINK_INTERFACE_LANGUAGES(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LOCATION(_\\w+)?|NO_SONAME(_\\w+)?|SONAME(_\\w+)?)|IMPORT_PREFIX|IMPORT_SUFFIX|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE|INTERFACE_COMPILE_DEFINITIONS|INTERFACE_INCLUDE_DIRECTORIES|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LABELS|LIBRARY_OUTPUT_DIRECTORY(_\\w+)?|LIBRARY_OUTPUT_NAME(_\\w+)?|LINKER_LANGUAGE|LINK_DEPENDS|LINK_FLAGS(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LINK_LIBRARIES|LINK_SEARCH_END_STATIC|LINK_SEARCH_START_STATIC|LOCATION(_\\w+)?|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MAP_IMPORTED_CONFIG_\\w+|NO_SONAME|OSX_ARCHITECTURES(_\\w+)?|OUTPUT_NAME(_\\w+)?|PDB_NAME(_\\w+)?|POST_INSTALL_SCRIPT|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE|PRIVATE_HEADER|PROJECT_LABEL|PUBLIC|PUBLIC_HEADER|RESOURCE|RULE_LAUNCH_(COMPILE|CUSTOM|LINK)|RUNTIME_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|SKIP_BUILD_RPATH|SOURCES|SOVERSION|STATIC_LIBRARY_FLAGS(_\\w+)?|SUFFIX|TYPE|VERSION|VS_DOTNET_REFERENCES|VS_GLOBAL_(\\w+|KEYWORD|PROJECT_TYPES)|VS_KEYWORD|VS_SCC_(AUXPATH|LOCALPATH|PROJECTNAME|PROVIDER)|VS_WINRT_EXTENSIONS|VS_WINRT_REFERENCES|WIN32_EXECUTABLE|XCODE_ATTRIBUTE_\\w+)\\b', + name: 'entity.source.cmake' + }, + { + match: + '\\b(?i:ALL|APPEND|BOOL|BUILD|BYPRODUCTS|CACHE|CAPTURE_CMAKE_ERROR|CMAKE_FIND_PACKAGE_NAME|CMAKE_FIND_ROOT_PATH_BOTH|CMAKE_FLAGS|COMMAND|COMMAND_EXPAND_LISTS|COMMENT|COMPILE_DEFINITIONS|COMPILE_OUTPUT_VARIABLE|COMPONENT|CONDITION|CONFIGURATION|CONFIGURATIONS|CONTENT|COPY_FILE|COPY_FILE_ERROR|COPYONLY|DEFECT_COUNT|DEPENDS|DEPFILE|DESTINATION|DIRECTORY|DOC|ENCODING|END|ESCAPE_QUOTES|EXCLUDE|EXCLUDE_FIXTURE|EXCLUDE_FIXTURE_CLEANUP|EXCLUDE_FIXTURE_SETUP|EXCLUDE_FROM_ALL|EXCLUDE_LABEL|EXPECTED_HASH|EXPECTED_MD|EXPR|FILEPATH|FILES|FILTER|FIND|FLAGS|GET|GLOBAL|HINTS|HTTPHEADER|IMPLICIT_DEPENDS|INACTIVITY_TIMEOUT|INCLUDE|INCLUDE_LABEL|INPUT|INPUT_FILE|INSERT|INSTALL|INTERNAL|LABELS|LENGTH|LENGTH_MAXIMUM|LENGTH_MINIMUM|LIMIT_COUNT|LIMIT_INPUT|LIMIT_OUTPUT|LINK_LIBRARIES|LOG|MAIN_DEPENDENCY|MD|NAMES|NETRC|NETRC_FILE|NEWLINE_CONSUME|NEWLINE_STYLE|NO_CMAKE_FIND_ROOT_PATH|NO_HEX_CONVERSION|NUMBER_ERRORS|NUMBER_WARNINGS|ONLY_CMAKE_FIND_ROOT_PATH|OPTIONAL|OPTIONS|OUTPUT|OUTPUT_QUIET|OUTPUT_VARIABLE|PACKAGE_FIND_NAME|PACKAGE_VERSION|PARALLEL_LEVEL|PARTS|PATH|PATH_SUFFIXES|PERMISSIONS|PRE_BUILD|PREFIX|PROJECT_NAME|QUIET|REGEX|REGULAR_EXPRESSION|REMOVE_AT|REMOVE_DUPLICATES|RENAME|RESULT_VARIABLE|RESULTS_VARIABLE|RETRY_COUNT|RETRY_DELAY|RETURN_VALUE|REVERSE|RUN_OUTPUT_VARIABLE|SCHEDULE_RANDOM|SHOW_PROGRESS|SORT|SOURCE|SOURCES|START|STATIC|STATUS|STOP_TIME|STRIDE|STRING|TARGET|TEST|TEST_LOAD|TIMEOUT|TLS_CAINFO|TLS_VERIFY|TREE|TYPE|USERPWD|USES_TERMINAL|VARIABLE|VERBATIM|WORKING_DIRECTORY)\\b', + name: 'entity.source.cmake' + }, + { + begin: '(?.*$)', name: 'comment.line.modern'}, {match: '(\\:([0-9a-zA-Z\\-_])*)', name: 'variable.cobol'}, - {include: 'source.sql'} + {include: 'source.openesql'} ] }, { @@ -301,25 +300,25 @@ const grammar = { }, { begin: '(?i:exec\\s+sqlims)', - contentName: 'meta.embedded.block.sql', + contentName: 'meta.embedded.block.openesql', end: '(?i:end\\-exec)', name: 'keyword.verb.cobol', patterns: [ {match: '(\\*>.*$)', name: 'comment.line.modern'}, {match: '(\\:([a-zA-Z\\-])*)', name: 'variable.cobol'}, - {include: 'source.sql'} + {include: 'source.openesql'} ] }, { begin: '(?i:exec\\s+ado)', - contentName: 'meta.embedded.block.sql', + contentName: 'meta.embedded.block.openesql', end: '(?i:end\\-exec)', name: 'keyword.verb.cobol', patterns: [ {match: '(--.*$)', name: 'comment.line.sql'}, {match: '(\\*>.*$)', name: 'comment.line.modern'}, {match: '(\\:([a-zA-Z\\-])*)', name: 'variable.cobol'}, - {include: 'source.sql'} + {include: 'source.openesql'} ] }, { diff --git a/lang/source.dart.js b/lang/source.dart.js index c5ec42d..5655ea3 100644 --- a/lang/source.dart.js +++ b/lang/source.dart.js @@ -83,9 +83,9 @@ const grammar = { patterns: [ { begin: '///', + end: '^(?!\\s*///)', name: 'comment.block.documentation.dart', - patterns: [{include: '#dartdoc'}], - while: '^\\s*///' + patterns: [{include: '#dartdoc'}] } ] }, @@ -138,24 +138,32 @@ const grammar = { match: '(\\[.*?\\])' }, { - captures: {0: {name: 'variable.name.source.dart'}}, - match: '^ {4,}(?![ \\*]).*' - }, - { - begin: '```.*?$', - contentName: 'variable.other.source.dart', - end: '```' + begin: '^\\s*///\\s*(```)', + end: '^\\s*///\\s*(```)|^(?!\\s*///)', + patterns: [{include: '#dartdoc-codeblock-triple'}] }, { - captures: {0: {name: 'variable.other.source.dart'}}, - match: '(`[^`]+?`)' + begin: '^\\s*\\*\\s*(```)', + end: '^\\s*\\*\\s*(```)|^(?=\\s*\\*/)', + patterns: [{include: '#dartdoc-codeblock-block'}] }, + {match: '`[^`\n]+`', name: 'variable.other.source.dart'}, { - captures: {2: {name: 'variable.other.source.dart'}}, - match: '(\\* (( ).*))$' + captures: {1: {name: 'variable.other.source.dart'}}, + match: '(?:\\*|\\/\\/)\\s{4,}(.*?)(?=($|\\*\\/))' } ] }, + 'dartdoc-codeblock-block': { + begin: '^\\s*\\*\\s*(?!(\\s*```|/))', + contentName: 'variable.other.source.dart', + end: '\n' + }, + 'dartdoc-codeblock-triple': { + begin: '^\\s*///\\s*(?!\\s*```)', + contentName: 'variable.other.source.dart', + end: '\n' + }, expression: { patterns: [ {include: '#constants-and-special-vars'}, diff --git a/lang/source.dockerfile.js b/lang/source.dockerfile.js index b684478..91672a6 100644 --- a/lang/source.dockerfile.js +++ b/lang/source.dockerfile.js @@ -9,7 +9,7 @@ /** @type {Grammar} */ const grammar = { - extensions: ['.dockerfile'], + extensions: ['.dockerfile', '.containerfile'], names: ['dockerfile', 'containerfile'], patterns: [ {match: '\\\\.', name: 'constant.character.escaped.dockerfile'}, diff --git a/lang/source.fsharp.js b/lang/source.fsharp.js index ccb438a..ff7bafa 100644 --- a/lang/source.fsharp.js +++ b/lang/source.fsharp.js @@ -34,7 +34,7 @@ const grammar = { repository: { abstract_definition: { begin: - '\\b(static)?\\s+(abstract)\\s+(member)?(\\s+\\[\\<.*\\>\\])?\\s*([_[:alpha:]0-9,\\._`\\s]+)(<)?', + '\\b(static\\s+)?(abstract)\\s+(member)?(\\s+\\[\\<.*\\>\\])?\\s*([_[:alpha:]0-9,\\._`\\s]+)(<)?', beginCaptures: { 1: {name: 'keyword.fsharp'}, 2: {name: 'keyword.fsharp'}, diff --git a/lang/source.gdscript.js b/lang/source.gdscript.js index b9d7404..6eb2d34 100644 --- a/lang/source.gdscript.js +++ b/lang/source.gdscript.js @@ -33,7 +33,7 @@ const grammar = { 2: {name: 'entity.name.function.decorator.gdscript'} }, match: - '(@)(export|export_color_no_alpha|export_dir|export_enum|export_exp_easing|export_file|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_global_dir|export_global_file|export_multiline|export_node_path|export_placeholder|export_range|icon|onready|rpc|tool|warning_ignore|abstract)\\b' + '(@)(export|export_color_no_alpha|export_custom|export_dir|export_enum|export_exp_easing|export_file|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_global_dir|export_global_file|export_multiline|export_node_path|export_placeholder|export_range|export_storage|icon|onready|rpc|tool|warning_ignore|abstract|static_unload)\\b' }, any_method: { match: '\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))', @@ -104,7 +104,7 @@ const grammar = { }, builtin_classes: { match: - '(?', name: 'keyword.operator.type.luau'}, + {match: '->', name: 'keyword.operator.type.function.luau'}, {match: '\\b(false)\\b', name: 'constant.language.boolean.false.luau'}, {match: '\\b(true)\\b', name: 'constant.language.boolean.true.luau'}, { @@ -448,9 +448,13 @@ const grammar = { }, { begin: '(<)', - beginCaptures: {1: {name: 'keyword.operator.type.luau'}}, + beginCaptures: { + 1: {name: 'punctuation.definition.typeparameters.begin.luau'} + }, end: '(>)', - endCaptures: {1: {name: 'keyword.operator.type.luau'}}, + endCaptures: { + 1: {name: 'punctuation.definition.typeparameters.end.luau'} + }, patterns: [ {match: '=', name: 'keyword.operator.assignment.luau'}, {include: '#type_literal'} diff --git a/lang/source.matlab.js b/lang/source.matlab.js index ddce1bc..9a5af58 100644 --- a/lang/source.matlab.js +++ b/lang/source.matlab.js @@ -252,7 +252,7 @@ const grammar = { patterns: [ { begin: '\\G\\(', - end: '\\)(?=\\s*\\w+)', + end: '\\)', name: 'storage.modifier.section.class.matlab', patterns: [ { @@ -330,7 +330,8 @@ const grammar = { {include: '#line_continuation'} ] }, - {include: '#comments'} + {include: '#comments'}, + {include: '#line_continuation'} ] }, { diff --git a/lang/source.mdx.js b/lang/source.mdx.js index d913837..7e8cd3b 100644 --- a/lang/source.mdx.js +++ b/lang/source.mdx.js @@ -169,7 +169,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.apib.mdx', patterns: [ @@ -192,7 +192,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.apib.mdx', patterns: [ @@ -219,7 +219,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.asciidoc.mdx', patterns: [ @@ -242,7 +242,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.asciidoc.mdx', patterns: [ @@ -269,7 +269,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.c.mdx', patterns: [ @@ -292,7 +292,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.c.mdx', patterns: [ @@ -319,7 +319,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.clojure.mdx', patterns: [ @@ -342,7 +342,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.clojure.mdx', patterns: [ @@ -369,7 +369,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.coffee.mdx', patterns: [ @@ -392,7 +392,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.coffee.mdx', patterns: [ @@ -419,7 +419,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.console.mdx', patterns: [ @@ -442,7 +442,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.console.mdx', patterns: [ @@ -469,7 +469,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.cpp.mdx', patterns: [ @@ -492,7 +492,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.cpp.mdx', patterns: [ @@ -519,7 +519,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.cs.mdx', patterns: [ @@ -542,7 +542,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.cs.mdx', patterns: [ @@ -569,7 +569,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.css.mdx', patterns: [ @@ -592,7 +592,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.css.mdx', patterns: [ @@ -619,7 +619,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.diff.mdx', patterns: [ @@ -642,7 +642,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.diff.mdx', patterns: [ @@ -669,7 +669,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.dockerfile.mdx', patterns: [ @@ -692,7 +692,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.dockerfile.mdx', patterns: [ @@ -719,7 +719,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.elixir.mdx', patterns: [ @@ -742,7 +742,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.elixir.mdx', patterns: [ @@ -769,7 +769,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.elm.mdx', patterns: [ @@ -792,7 +792,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.elm.mdx', patterns: [ @@ -819,7 +819,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.erlang.mdx', patterns: [ @@ -842,7 +842,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.erlang.mdx', patterns: [ @@ -869,7 +869,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.gitconfig.mdx', patterns: [ @@ -892,7 +892,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.gitconfig.mdx', patterns: [ @@ -919,7 +919,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.go.mdx', patterns: [ @@ -942,7 +942,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.go.mdx', patterns: [ @@ -969,7 +969,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.graphql.mdx', patterns: [ @@ -992,7 +992,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.graphql.mdx', patterns: [ @@ -1019,7 +1019,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.haskell.mdx', patterns: [ @@ -1042,7 +1042,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.haskell.mdx', patterns: [ @@ -1069,7 +1069,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.html.mdx', patterns: [ @@ -1092,7 +1092,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.html.mdx', patterns: [ @@ -1119,7 +1119,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.ini.mdx', patterns: [ @@ -1142,7 +1142,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.ini.mdx', patterns: [ @@ -1169,7 +1169,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.java.mdx', patterns: [ @@ -1192,7 +1192,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.java.mdx', patterns: [ @@ -1219,7 +1219,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.js.mdx', patterns: [ @@ -1242,7 +1242,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.js.mdx', patterns: [ @@ -1269,7 +1269,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.json.mdx', patterns: [ @@ -1292,7 +1292,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.json.mdx', patterns: [ @@ -1319,7 +1319,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.julia.mdx', patterns: [ @@ -1342,7 +1342,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.julia.mdx', patterns: [ @@ -1369,7 +1369,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.kotlin.mdx', patterns: [ @@ -1392,7 +1392,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.kotlin.mdx', patterns: [ @@ -1419,7 +1419,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.less.mdx', patterns: [ @@ -1442,7 +1442,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.less.mdx', patterns: [ @@ -1469,7 +1469,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.lua.mdx', patterns: [ @@ -1492,7 +1492,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.lua.mdx', patterns: [ @@ -1519,7 +1519,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.makefile.mdx', patterns: [ @@ -1542,7 +1542,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.makefile.mdx', patterns: [ @@ -1569,7 +1569,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.md.mdx', patterns: [ @@ -1592,7 +1592,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.md.mdx', patterns: [ @@ -1619,7 +1619,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.mdx.mdx', patterns: [ @@ -1642,7 +1642,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.mdx.mdx', patterns: [ @@ -1669,7 +1669,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.objc.mdx', patterns: [ @@ -1692,7 +1692,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.objc.mdx', patterns: [ @@ -1719,7 +1719,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.perl.mdx', patterns: [ @@ -1742,7 +1742,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.perl.mdx', patterns: [ @@ -1769,7 +1769,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.php.mdx', patterns: [ @@ -1792,7 +1792,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.php.mdx', patterns: [ @@ -1819,7 +1819,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.python.mdx', patterns: [ @@ -1842,7 +1842,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.python.mdx', patterns: [ @@ -1869,7 +1869,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.r.mdx', patterns: [ @@ -1892,7 +1892,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.r.mdx', patterns: [ @@ -1919,7 +1919,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.raku.mdx', patterns: [ @@ -1942,7 +1942,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.raku.mdx', patterns: [ @@ -1969,7 +1969,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.ruby.mdx', patterns: [ @@ -1992,7 +1992,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.ruby.mdx', patterns: [ @@ -2019,7 +2019,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.rust.mdx', patterns: [ @@ -2042,7 +2042,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.rust.mdx', patterns: [ @@ -2069,7 +2069,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.scala.mdx', patterns: [ @@ -2092,7 +2092,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.scala.mdx', patterns: [ @@ -2119,7 +2119,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.scss.mdx', patterns: [ @@ -2142,7 +2142,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.scss.mdx', patterns: [ @@ -2169,7 +2169,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.shell.mdx', patterns: [ @@ -2192,7 +2192,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.shell.mdx', patterns: [ @@ -2219,7 +2219,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.shell-session.mdx', patterns: [ @@ -2242,7 +2242,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.shell-session.mdx', patterns: [ @@ -2269,7 +2269,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.sql.mdx', patterns: [ @@ -2292,7 +2292,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.sql.mdx', patterns: [ @@ -2319,7 +2319,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.svg.mdx', patterns: [ @@ -2342,7 +2342,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.svg.mdx', patterns: [ @@ -2369,7 +2369,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.swift.mdx', patterns: [ @@ -2392,7 +2392,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.swift.mdx', patterns: [ @@ -2419,7 +2419,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.toml.mdx', patterns: [ @@ -2442,7 +2442,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.toml.mdx', patterns: [ @@ -2469,7 +2469,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.ts.mdx', patterns: [ @@ -2492,7 +2492,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.ts.mdx', patterns: [ @@ -2519,7 +2519,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.tsx.mdx', patterns: [ @@ -2542,7 +2542,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.tsx.mdx', patterns: [ @@ -2570,7 +2570,7 @@ const grammar = { 3: {patterns: [{include: '#markdown-string'}]} }, contentName: 'markup.raw.code.fenced.mdx', - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.other.mdx' }, @@ -2586,7 +2586,7 @@ const grammar = { 3: {patterns: [{include: '#markdown-string'}]} }, contentName: 'markup.raw.code.fenced.mdx', - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.other.mdx' } @@ -2596,7 +2596,7 @@ const grammar = { patterns: [ { begin: - '(?:^|\\G)[\\t ]*(`{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|(?:.*\\.)?(?:bi|ctl|dsr|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + '(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', beginCaptures: { 1: {name: 'string.other.begin.code.fenced.mdx'}, 2: { @@ -2605,7 +2605,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.vbnet.mdx', patterns: [ @@ -2619,7 +2619,7 @@ const grammar = { }, { begin: - '(?:^|\\G)[\\t ]*(~{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|(?:.*\\.)?(?:bi|ctl|dsr|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + '(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', beginCaptures: { 1: {name: 'string.other.begin.code.fenced.mdx'}, 2: { @@ -2628,7 +2628,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.vbnet.mdx', patterns: [ @@ -2655,7 +2655,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.xml.mdx', patterns: [ @@ -2678,7 +2678,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.xml.mdx', patterns: [ @@ -2705,7 +2705,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.yaml.mdx', patterns: [ @@ -2728,7 +2728,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.mdx'}}, name: 'markup.code.yaml.mdx', patterns: [ @@ -2840,7 +2840,7 @@ const grammar = { }, match: '(?:^|\\G)[\\t ]*(#{3}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.mdx' + name: 'markup.heading.atx.3.mdx' }, { captures: { @@ -2853,7 +2853,7 @@ const grammar = { }, match: '(?:^|\\G)[\\t ]*(#{4}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.mdx' + name: 'markup.heading.atx.4.mdx' }, { captures: { @@ -2866,7 +2866,7 @@ const grammar = { }, match: '(?:^|\\G)[\\t ]*(#{5}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.mdx' + name: 'markup.heading.atx.5.mdx' }, { captures: { @@ -2879,7 +2879,7 @@ const grammar = { }, match: '(?:^|\\G)[\\t ]*(#{6}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.mdx' + name: 'markup.heading.atx.6.mdx' } ] }, @@ -3321,7 +3321,7 @@ const grammar = { patterns: [{include: 'source.tsx#statements'}] }, 'extension-mdx-expression-flow': { - begin: '(?:^|\\G)[\\t ]*(\\{)', + begin: '(?:^|\\G)[\\t ]*(\\{)(?!.*\\}[\\t ]*.)', beginCaptures: {1: {name: 'string.other.begin.expression.mdx.js'}}, contentName: 'meta.embedded.tsx', end: '(\\})(?:[\\t ]*$)', diff --git a/lang/source.moonbit.js b/lang/source.moonbit.js new file mode 100644 index 0000000..0f06cb0 --- /dev/null +++ b/lang/source.moonbit.js @@ -0,0 +1,213 @@ +// This is a TextMate grammar distributed by `starry-night`. +// This grammar is developed at +// +// and licensed `apache-2.0`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: ['.mbt'], + names: ['moonbit'], + patterns: [ + {include: '#strings'}, + {include: '#comments'}, + {include: '#constants'}, + {include: '#keywords'}, + {include: '#functions'}, + {include: '#support'}, + {include: '#types'}, + {include: '#modules'}, + {include: '#variables'} + ], + repository: { + comments: {patterns: [{match: '//.*', name: 'comment.line'}]}, + constants: { + patterns: [ + { + match: '\\b\\d(\\d|_)*(?!\\.)(U)?(L)?\\b', + name: 'constant.numeric.moonbit' + }, + {match: '(?<=\\.)\\d((?=\\.)|\\b)', name: 'constant.numeric.moonbit'}, + {match: '\\b\\d+(\\.)\\d+\\b', name: 'constant.numeric.moonbit'}, + { + match: '\\b0[XxOoBb][\\dAaBbCcDdEeFf]+(U)?(L)?\\b', + name: 'constant.numeric.moonbit' + }, + {match: '\\b(true|false|\\(\\))\\b', name: 'constant.language.moonbit'} + ] + }, + escape: { + patterns: [ + { + match: '\\\\[0\\\\tnrb"\']', + name: 'constant.character.escape.moonbit' + }, + { + match: '\\\\x[0-9a-fA-F]{2}', + name: 'constant.character.escape.moonbit' + }, + { + match: '\\\\o[0-3][0-7]{2}', + name: 'constant.character.escape.moonbit' + }, + { + match: '\\\\u[0-9a-fA-F]{4}', + name: 'constant.character.escape.unicode.moonbit' + }, + { + match: '\\\\u{[0-9a-fA-F]*}', + name: 'constant.character.escape.unicode.moonbit' + } + ] + }, + functions: { + patterns: [ + { + captures: { + 1: {name: 'keyword.moonbit'}, + 2: {name: 'entity.name.type.moonbit'}, + 3: {name: 'entity.name.function.moonbit'} + }, + match: + '\\b(fn)\\s*(?:([A-Z][A-Za-z0-9_]*)::)?([a-z0-9_][A-Za-z0-9_]*)?\\b' + }, + { + begin: + '(?!\\bfn\\s+)(?:\\.|::)?([a-z0-9_][A-Za-z0-9_]*(\\!|\\?)?)(\\()', + beginCaptures: { + 1: {name: 'entity.name.function.moonbit'}, + 2: {name: 'punctuation.brackets.round.moonbit'} + }, + end: '\\)', + endCaptures: {0: {name: 'punctuation.brackets.round.moonbit'}}, + name: 'meta.function.call.moonbit', + patterns: [ + {include: '#comments'}, + {include: '#constants'}, + {include: '#functions'}, + {include: '#support'}, + {include: '#types'}, + {include: '#keywords'}, + {include: '#modules'}, + {include: '#strings'}, + {include: '#variables'} + ] + } + ] + }, + interpolation: { + patterns: [ + { + begin: '\\\\{', + beginCaptures: { + 0: {name: 'punctuation.section.embedded.begin.moonbit'} + }, + contentName: 'source.moonbit', + end: '}', + endCaptures: {0: {name: 'punctuation.section.embedded.end.moonbit'}}, + name: 'meta.embedded.line.moonbit', + patterns: [{include: '$self'}] + } + ] + }, + keywords: { + patterns: [ + { + match: + '\\b(guard|if|while|break|continue|return|try|catch|except|raise|match|else|as|in|loop|for)\\b', + name: 'keyword.control.moonbit' + }, + { + match: + '\\b(type!|(type|typealias|let|enum|struct|import|trait|derive|test|impl|with)\\b)', + name: 'keyword.moonbit' + }, + {match: '\\b(self)\\b', name: 'variable.language.moonbit'}, + { + match: '\\b(mut|pub|priv|readonly|extern)\\b', + name: 'storage.modifier.moonbit' + }, + {match: '->', name: 'storage.type.function.arrow.moonbit'}, + {match: '=>', name: 'storage.type.function.arrow.moonbit'}, + {match: '=', name: 'keyword.operator.assignment.moonbit'}, + {match: '\\|>', name: 'keyword.operator.other.moonbit'}, + { + match: '(===|==|!=|>=|<=|(?|<)', + name: 'keyword.operator.comparison.moonbit' + }, + { + match: '(\\bnot\\b|&&|\\|\\|)', + name: 'keyword.operator.logical.moonbit' + }, + {match: '(\\+|-(?!>)|\\*|%|/)', name: 'keyword.operator.math.moonbit'} + ] + }, + modules: { + patterns: [ + { + match: '@[A-Za-z][A-Za-z0-9_/]*', + name: 'entity.name.namespace.moonbit' + } + ] + }, + strings: { + patterns: [ + { + captures: {1: {name: 'keyword.operator.other.moonbit'}}, + match: '(#\\|).*', + name: 'string.line' + }, + { + captures: { + 1: {name: 'keyword.operator.other.moonbit'}, + 2: {patterns: [{include: '#escape'}, {include: '#interpolation'}]} + }, + match: '(\\$\\|)(.*)', + name: 'string.line' + }, + { + begin: "'", + end: "'", + name: 'string.quoted.single.moonbit', + patterns: [{include: '#escape'}] + }, + { + begin: '"', + end: '"', + name: 'string.quoted.double.moonbit', + patterns: [{include: '#escape'}, {include: '#interpolation'}] + } + ] + }, + support: { + patterns: [ + { + match: '\\b(Eq|Compare|Hash|Show|Default|ToJson|FromJson)\\b', + name: 'support.class.moonbit' + } + ] + }, + types: { + patterns: [ + { + match: '\\b(? +// and licensed `mit`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: ['.msg'], + names: ['omnetpp-msg'], + patterns: [ + {include: '#keyword'}, + {include: '#comment'}, + {include: '#property'}, + {include: '#types'} + ], + repository: { + comment: { + patterns: [{match: '//.*$', name: 'comment.line.double-slash.msg'}] + }, + keyword: { + patterns: [ + { + match: + '\\b(?:cplusplus|namespace|struct|message|packet|class|enum|extends|import)\\b', + name: 'keyword.other.msg' + } + ] + }, + property: {patterns: [{match: '@[a-zA-Z]+', name: 'entity.name.tag.msg'}]}, + string: {patterns: [{match: '"[^"]*"', name: 'string.quoted.msg'}]}, + types: { + patterns: [ + { + match: + '\\b(?:abstract|bool|char|short|int|long|float|double|unsigned|string|simtime_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int16|int32|int64|uint8|uint16|uint32|uint64)\\b', + name: 'storage.type.common' + } + ] + } + }, + scopeName: 'source.msg' +} + +export default grammar diff --git a/lang/source.ned.js b/lang/source.ned.js new file mode 100644 index 0000000..32c4d14 --- /dev/null +++ b/lang/source.ned.js @@ -0,0 +1,58 @@ +// This is a TextMate grammar distributed by `starry-night`. +// This grammar is developed at +// +// and licensed `mit`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: ['.ned'], + names: ['omnetpp-ned'], + patterns: [ + {include: '#comment'}, + {include: '#property'}, + {include: '#type'}, + {include: '#string'}, + {include: '#expr'}, + {include: '#non_expr'} + ], + repository: { + comment: { + patterns: [{match: '//.*$', name: 'comment.line.double-slash.ned'}] + }, + expr: { + patterns: [ + { + match: '\\b(?:sizeof|const|default|ask|this|index|typename)\\b', + name: 'keyword.other.ned' + } + ] + }, + non_expr: { + patterns: [ + { + match: + '\\b(?:channel|channelinterface|simple|module|network|moduleinterface|parameters|gates|types|submodules|connections|allowunconnected|extends|for|if|import|like|package|property)\\b', + name: 'keyword.other.ned' + } + ] + }, + property: {patterns: [{match: '@[a-zA-Z]+', name: 'entity.name.tag.ned'}]}, + string: {patterns: [{match: '"[^"]*"', name: 'string.quoted.msg'}]}, + type: { + patterns: [ + { + match: + '\\b(?:inout|input|output|bool|double|int|string|object|xml|-->|<--|<-->|\\.\\.|volatile|false|true|undefined|nan|inf|null|nullptr)\\b', + name: 'storage.type.common.ned' + } + ] + } + }, + scopeName: 'source.ned' +} + +export default grammar diff --git a/lang/source.nushell.js b/lang/source.nushell.js index c2e00d6..8c11585 100644 --- a/lang/source.nushell.js +++ b/lang/source.nushell.js @@ -119,7 +119,7 @@ const grammar = { 2: {patterns: [{include: '#value'}]} }, match: - '(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro(?:l|r)|sh(?:l|r)|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|har|l(?:ear|ipboard (?:copy|paste))|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p|ustom-value (?:generate(?:2)?|update(?:-arg)?))|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: info)?|code(?: (?:base64|hex))?|f(?:ault)?|scribe|tect columns)|fr(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str|enate)|tains)|unt(?:-null)?)|umulative)|d(?:atepart|rop(?:-(?:duplicates|nulls))?|types|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nto-(?:df|lazy|nu)|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase|s)|m(?:ax|e(?:an|dian|lt)|in)|n(?:-unique|ot)|o(?:pen|therwise)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:ample|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|r(?:-(?:lengths|slice)|ftime))|um(?:mary)?)|t(?:ake|o-(?:a(?:rrow|vro)|csv|jsonl|parquet))|u(?:nique|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|o|rop(?: (?:column|nth))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base64|hex))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:e|l|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|nuon|ods|p(?:arquet|ng)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|ghlight|st(?:o(?:gram|ry(?: session)?))?)|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:a(?:st|zy make)|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cos(?:h)?|sin(?:h)?|tan(?:h)?)|vg)|c(?:eil|os(?:h)?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:in(?:h)?|qrt|tddev|um)|tan(?:h)?|variance))?)|e(?:rge|tadata)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|example-(?:1|2|3|config)|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|eriodic-table|lot|net|ort(?: (?:list|scan))?|r(?:epend|int)|s)|query(?: (?:db|git|json|web|xml))?|r(?:an(?:dom(?: (?:bool|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|ist(?:er|ry query))|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|scape-glob|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|eam_example(?: (?:collect-external|s(?:eq|um)))?)?)|ys)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|md|nuon|png|qr|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|ni(?:q(?:-by)?|ts)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|xyplot|zip)(?![\\w-])( (.*))?' + '(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro(?:l|r)|sh(?:l|r)|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:e|l|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpack(?:z)?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cos(?:h)?|sin(?:h)?|tan(?:h)?)|vg)|c(?:eil|os(?:h)?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:in(?:h)?|qrt|tddev|um)|tan(?:h)?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpack(?:z)?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![\\w-])( (.*))?' }, { captures: {1: {patterns: [{include: '#paren-expression'}]}}, diff --git a/lang/source.odin.js b/lang/source.odin.js index 85667b8..3672b29 100644 --- a/lang/source.odin.js +++ b/lang/source.odin.js @@ -120,6 +120,10 @@ const grammar = { match: '([#]\\s*\\b([[:alpha:]_]+[[:alnum:]_]*)\\b)', name: 'keyword.tag.odin' }, + { + match: '(#[+]\\s*[[:alpha:]-][[:alnum:]-]*)', + name: 'keyword.tag.odin' + }, { match: '(\\x40\\s*\\b([[:alpha:]_]+[[:alnum:]_]*)\\b)', name: 'keyword.tag.odin' @@ -139,7 +143,7 @@ const grammar = { { begin: '//', beginCaptures: {0: {name: 'punctuation.definition.comment.odin'}}, - end: '\\n', + end: '(?=\\n)', name: 'comment.line.double-slash.odin', patterns: [ { @@ -151,7 +155,7 @@ const grammar = { { begin: '#!', beginCaptures: {0: {name: 'punctuation.definition.comment.odin'}}, - end: '\\n', + end: '(?=\\n)', name: 'comment.line.double-slash.odin', patterns: [ { diff --git a/lang/source.openesql.js b/lang/source.openesql.js new file mode 100644 index 0000000..382b512 --- /dev/null +++ b/lang/source.openesql.js @@ -0,0 +1,359 @@ +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: [], + names: [], + patterns: [ + {match: '((?]?=|<>|<|>', name: 'keyword.operator.comparison.openesql'}, + {match: '-|\\+|/', name: 'keyword.operator.math.openesql'}, + {match: '\\|\\|', name: 'keyword.operator.concatenator.openesql'}, + { + match: + '(?i)\\b(avg|checksum_agg|count|count_big|grouping|grouping_id|max|min|sum|stdev|stdevp|var|varp)\\b', + name: 'support.function.aggregate.openesql' + }, + { + match: '(?i)\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\b', + name: 'support.function.conversion.openesql' + }, + { + match: '(?i)\\b(cursor_status)\\b', + name: 'support.function.cursor.openesql' + }, + { + match: + '(?i)\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|eomonth|switchoffset|todatetimeoffset|isdate)\\b', + name: 'support.function.datetime.openesql' + }, + { + match: '(?i)\\b(coalesce|nullif)\\b', + name: 'support.function.expression.openesql' + }, + { + match: + '(?|<|&)', - name: 'keyword.operator.symbols.powerbuilder' - } + match: '([\\w$#%][\\w\\d$#%\\-]*)', + name: 'variable.other.local.powerbuilder' + }, + {include: '#operators'} ] }, general_rules: { patterns: [ { begin: - '(?i)^\\s*(close|commit|connect|declare|delete|describe|disconnect|execute|fetch|insert|open|prepare|rollback|select|selectblob|update|updateblob)\\b(?!\\s*\\()', - captures: {1: {name: 'keyword.operator.sql.powerbuilder'}}, - end: ';', + '(?i)^\\s*(close|commit|connect|declare|delete|describe|disconnect|execute|fetch|insert|open|prepare|rollback|select|selectblob|update|updateblob)(?:^(?=[\\w\\d$#%\\-`])|(?<=[\\w\\d$#%\\-`])$|(?|<|&)', + name: 'keyword.operator.symbols.powerbuilder' + } + ] + }, primitives: { patterns: [ { match: - '(?i)\\b(any|blob|boolean|byte|char|character|date|datetime|dec|decimal|double|int|integer|long|longlong|longptr|real|string|time|uint|ulong|unsignedinteger|unsignedlong)\\b', + '(?i)(?:^(?=[\\w\\d$#%\\-`])|(?<=[\\w\\d$#%\\-`])$|(? -// and licensed permissive. +// and licensed `mit`. // See for more info. /** * @import {Grammar} from '@wooorm/starry-night' @@ -44,7 +44,7 @@ const grammar = { }, { match: - '@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc)\\b', + '@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc|groupname|groupprio|groupdesc|group|contentDiagram|documentable|syntax)\\b', name: 'keyword.other.documentation.scaladoc.scala' }, { @@ -485,21 +485,39 @@ const grammar = { '^\\s*(end)\\s+(`[^`]+`|(?:[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+)?|[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]+))?(?=\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)' }, { - match: '(==?|!=|<=|>=|<>|<|>)', - name: 'keyword.operator.comparison.scala' - }, - { - match: '(\\-|\\+|\\*|/(?![/*])|%|~)', - name: 'keyword.operator.arithmetic.scala' + match: '([!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]|[\\\\]){3,}', + name: 'keyword.operator.scala' }, { - match: - '(?=?@^|~\\p{Sm}\\p{So}]|_)(!|&&|\\|\\|)(?![!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}])', - name: 'keyword.operator.logical.scala' + captures: { + 1: { + patterns: [ + {match: '(\\|\\||&&)', name: 'keyword.operator.logical.scala'}, + { + match: '(\\!=|==|\\<=|>=)', + name: 'keyword.operator.comparison.scala' + }, + {match: '..', name: 'keyword.operator.scala'} + ] + } + }, + match: '((?:[!#%&*+\\-\\/:<>=?@^|~\\p{Sm}\\p{So}]|[\\\\]){2,}|_\\*)' }, { - match: '(<-|←|->|→|=>|⇒|\\?|\\:+|@|\\|)+', - name: 'keyword.operator.scala' + captures: { + 1: { + patterns: [ + {match: '(\\!)', name: 'keyword.operator.logical.scala'}, + { + match: '(\\*|-|\\+|/|%|~)', + name: 'keyword.operator.arithmetic.scala' + }, + {match: '(=|\\<|>)', name: 'keyword.operator.comparison.scala'}, + {match: '.', name: 'keyword.operator.scala'} + ] + } + }, + match: '(?=?@^|~\\p{Sm}\\p{So}]|\\\\)' } ] }, diff --git a/lang/source.sdbl.js b/lang/source.sdbl.js index c1d8fc5..4206612 100644 --- a/lang/source.sdbl.js +++ b/lang/source.sdbl.js @@ -1,6 +1,6 @@ // This is a TextMate grammar distributed by `starry-night`. // This grammar is developed at -// +// // and licensed `mit`. // See for more info. /** @@ -47,7 +47,7 @@ const grammar = { {match: '(,|;)', name: 'keyword.operator.sdbl'}, { match: - '(?i)(?<=[^\\wа-яё\\.]|^)(Выбрать|Select|Разрешенные|Allowed|Различные|Distinct|Первые|Top|Как|As|ПустаяТаблица|EpmtyTable|Поместить|Into|Уничтожить|Drop|Из|From|((Левое|Left|Правое|Right|Полное|Full)\\s+(Внешнее\\s+|Outer\\s+)?Соединение|Join)|((Внутреннее|Inner)\\s+Соединение|Join)|Где|Where|(Сгруппировать\\s+По)|(Group\\s+By)|Имеющие|Having|Объединить(\\s+Все)?|Union(\\s+All)?|(Упорядочить\\s+По)|(Order\\s+By)|Автоупорядочивание|Autoorder|Итоги|Totals|По(\\s+Общие)?|By(\\s+Overall)?|(Только\\s+)?Иерархия|(Only\\s+)?Hierarchy|Периодами|Periods|Индексировать|Index|Выразить|Cast|Возр|Asc|Убыв|Desc|Для\\s+Изменения|(For\\s+Update(\\s+Of)?)|Спецсимвол|Escape)(?=[^\\wа-яё\\.]|$)', + '(?i)(?<=[^\\wа-яё\\.]|^)(Выбрать|Select|Разрешенные|Allowed|Различные|Distinct|Первые|Top|Как|As|ПустаяТаблица|EmptyTable|Поместить|Into|Уничтожить|Drop|Из|From|((Левое|Left|Правое|Right|Полное|Full)\\s+(Внешнее\\s+|Outer\\s+)?Соединение|Join)|((Внутреннее|Inner)\\s+Соединение|Join)|Где|Where|(Сгруппировать\\s+По(\\s+Группирующим\\s+Наборам)?)|(Group\\s+By(\\s+Grouping\\s+Set)?)|Имеющие|Having|Объединить(\\s+Все)?|Union(\\s+All)?|(Упорядочить\\s+По)|(Order\\s+By)|Автоупорядочивание|Autoorder|Итоги|Totals|По(\\s+Общие)?|By(\\s+Overall)?|(Только\\s+)?Иерархия|(Only\\s+)?Hierarchy|Периодами|Periods|Индексировать|Index|Выразить|Cast|Возр|Asc|Убыв|Desc|Для\\s+Изменения|(For\\s+Update(\\s+Of)?)|Спецсимвол|Escape|СгруппированоПо|GroupedBy)(?=[^\\wа-яё\\.]|$)', name: 'keyword.control.sdbl' }, { @@ -56,12 +56,18 @@ const grammar = { name: 'support.function.sdbl' }, { - match: '(?i)(?<=[^\\wа-яё\\.]|^)(Подстрока|Substring)(?=\\()', + match: + '(?i)(?<=[^\\wа-яё\\.]|^)(Подстрока|Substring|НРег|Lower|ВРег|Upper|Лев|Left|Прав|Right|ДлинаСтроки|StringLength|СтрНайти|StrFind|СтрЗаменить|StrReplace|СокрЛП|TrimAll|СокрЛ|TrimL|СокрП|TrimR)(?=\\()', + name: 'support.function.sdbl' + }, + { + match: + '(?i)(?<=[^\\wа-яё\\.]|^)(Год|Year|Квартал|Quarter|Месяц|Month|ДеньГода|DayOfYear|День|Day|Неделя|Week|ДеньНедели|Weekday|Час|Hour|Минута|Minute|Секунда|Second|НачалоПериода|BeginOfPeriod|КонецПериода|EndOfPeriod|ДобавитьКДате|DateAdd|РазностьДат|DateDiff|Полугодие|HalfYear|Декада|TenDays)(?=\\()', name: 'support.function.sdbl' }, { match: - '(?i)(?<=[^\\wа-яё\\.]|^)(Год|Year|Квартал|Quarter|Месяц|Month|ДеньГода|DayOfYear|День|Day|Неделя|Week|ДеньНедели|Weekday|Час|Hour|Минута|Minute|Секунда|Second|НачалоПериода|BeginOfPeriod|КонецПериода|EndOfPeriod|ДобавитьКДате|DateAdd|РазностьДат|DateDiff)(?=\\()', + '(?i)(?<=[^\\wа-яё\\.]|^)(ACOS|COS|ASIN|SIN|ATAN|TAN|EXP|POW|LOG|LOG10|Цел|Int|Окр|Round|SQRT)(?=\\()', name: 'support.function.sdbl' }, { @@ -71,12 +77,12 @@ const grammar = { }, { match: - '(?i)(?<=[^\\wа-яё\\.]|^)(ЕстьNULL|IsNULL|Представление|Presentation|ПредставлениеСсылки|RefPresentation|ТипЗначения|ValueType)(?=\\()', + '(?i)(?<=[^\\wа-яё\\.]|^)(ЕстьNULL|IsNULL|Представление|Presentation|ПредставлениеСсылки|RefPresentation|ТипЗначения|ValueType|АвтономерЗаписи|RecordAutoNumber|РазмерХранимыхДанных|StoredDataSize|УникальныйИдентификатор|UUID)(?=\\()', name: 'support.function.sdbl' }, { match: - '(?i)(?<=[^\\wа-яё\\.])(Число|Number|Строка|String|Дата|Date)(?=[^\\wа-яё\\.]|$)', + '(?i)(?<=[^\\wа-яё\\.])(Число|Number|Строка|String|Дата|Date|Булево|Boolean)(?=[^\\wа-яё\\.]|$)', name: 'support.type.sdbl' }, {match: '(&[\\wа-яё]+)', name: 'variable.parameter.sdbl'} diff --git a/lang/source.ssh-config.js b/lang/source.ssh-config.js index 7c107f4..10c4e8d 100644 --- a/lang/source.ssh-config.js +++ b/lang/source.ssh-config.js @@ -58,7 +58,7 @@ const grammar = { ] } }, - names: ['ssh-config'], + names: ['ssh-config', 'sshconfig', 'sshdconfig', 'ssh_config', 'sshd_config'], patterns: [{include: '#main'}], repository: { addr: { diff --git a/lang/source.tact.js b/lang/source.tact.js new file mode 100644 index 0000000..96ba5ec --- /dev/null +++ b/lang/source.tact.js @@ -0,0 +1,339 @@ +// This is a TextMate grammar distributed by `starry-night`. +// This grammar is developed at +// +// and licensed `mit`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: [], + names: ['tact'], + patterns: [ + {include: '#comment'}, + {include: '#annotation'}, + {include: '#literal'}, + {include: '#invalid'}, + {include: '#constant'}, + {include: '#type'}, + {include: '#expression'}, + {include: '#punctuation'}, + {include: '#keyword'}, + {include: '#function'}, + {include: '#variable'} + ], + repository: { + annotation: { + patterns: [ + { + begin: '^\\s*(@name)\\s*(\\()', + beginCaptures: { + 1: {name: 'entity.other.attribute-name.tact'}, + 2: {name: 'punctuation.brackets.round.tact'} + }, + end: '\\)', + endCaptures: {0: {name: 'punctuation.brackets.round.tact'}}, + patterns: [{match: '(.*?)', name: 'entity.name.function.func.tact'}] + }, + { + begin: '(?', name: 'keyword.operator.mapsto.tact'}, + {match: '\\b(0[0-9]*)\\b', name: 'constant.numeric.decimal.tact'}, + { + match: '\\b([1-9](?:_?[0-9])*)\\b', + name: 'constant.numeric.decimal.tact' + } + ] + }, + { + match: '(?>)(?!=)', + name: 'keyword.operator.bitwise.tact' + }, + { + match: '(\\+=|-=|\\*=|/=|%=|\\^=|&=|\\|=|<<=|>>=)', + name: 'keyword.operator.assignment.tact' + }, + { + match: '(?])=(?!=)', + name: 'keyword.operator.assignment.equal.tact' + }, + {match: '([!=]=|<=?|>=?)', name: 'keyword.operator.comparison.tact'}, + { + match: '([+%*\\-])|(/(?!/))', + name: 'keyword.operator.arithmetic.tact' + }, + {match: '\\b(initOf)\\b', name: 'keyword.operator.new.tact'}, + { + begin: '(?!\\?\\.\\s*[^[:digit:]])(\\?)(?!\\?)', + beginCaptures: {1: {name: 'keyword.operator.ternary.tact'}}, + end: '\\s*(:)', + endCaptures: {1: {name: 'keyword.operator.ternary.tact'}}, + patterns: [{include: '$self'}] + } + ] + }, + function: { + captures: { + 1: {name: 'entity.name.function.tact'}, + 2: {name: 'punctuation.brackets.round.tact'} + }, + match: '\\b((?:[a-zA-Z_][a-zA-Z0-9_]*))\\s*(\\()' + }, + invalid: { + patterns: [ + { + match: '\\b__(?:gen|tact)[a-zA-Z0-9_]*\\b', + name: 'invalid.illegal.identifier.tact' + } + ] + }, + keyword: { + patterns: [ + {match: '(?', + endCaptures: {0: {name: 'punctuation.brackets.angle.tact'}}, + patterns: [{include: '#simple-type'}] + }, + { + begin: '(?', + endCaptures: {0: {name: 'punctuation.brackets.angle.tact'}}, + patterns: [ + {include: '#simple-type'}, + {match: ',', name: 'punctuation.comma.tact'}, + {include: '#as-tlb'} + ] + }, + {include: '#as-tlb'} + ] + }, + variable: { + patterns: [ + {match: '(?|&&|\\|\\||\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[\\()]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\]|\\(([^\\)\\\\]|\\\\.)+\\))+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))', + '(?|&&|\\|\\||\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[\\()]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\]|\\(([^\\)\\\\]|\\\\.)+\\))+\\/([dgimsuvy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))', beginCaptures: {1: {name: 'punctuation.definition.string.begin.ts'}}, - end: '(/)([dgimsuy]*)', + end: '(/)([dgimsuvy]*)', endCaptures: { 1: {name: 'punctuation.definition.string.end.ts'}, 2: {name: 'keyword.other.ts'} @@ -2267,9 +2271,9 @@ const grammar = { }, { begin: - '((? +// and licensed `mit`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + extensions: ['.tsp'], + names: ['typespec', 'tsp'], + patterns: [{include: '#statement'}], + repository: { + 'alias-id': { + begin: '(=)\\s*', + beginCaptures: {1: {name: 'keyword.operator.assignment.tsp'}}, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.alias-id.typespec', + patterns: [{include: '#expression'}] + }, + 'alias-statement': { + begin: + '\\b(alias)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'entity.name.type.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.alias-statement.typespec', + patterns: [{include: '#alias-id'}, {include: '#type-parameters'}] + }, + 'augment-decorator-statement': { + begin: '((@@)\\b[_$[:alpha:]](?:[_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)', + beginCaptures: { + 1: {name: 'entity.name.tag.tsp'}, + 2: {name: 'entity.name.tag.tsp'} + }, + end: '(?=[_$[:alpha:]])|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.augment-decorator-statement.typespec', + patterns: [{include: '#token'}, {include: '#parenthesized-expression'}] + }, + 'block-comment': {begin: '/\\*', end: '\\*/', name: 'comment.block.tsp'}, + 'boolean-literal': { + match: '\\b(true|false)\\b', + name: 'constant.language.tsp' + }, + callExpression: { + begin: + '(\\b[_$[:alpha:]](?:[_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)\\s*(\\()', + beginCaptures: { + 1: {name: 'entity.name.function.tsp'}, + 2: {name: 'punctuation.parenthesis.open.tsp'} + }, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.tsp'}}, + name: 'meta.callExpression.typespec', + patterns: [ + {include: '#token'}, + {include: '#expression'}, + {include: '#punctuation-comma'} + ] + }, + 'const-statement': { + begin: + '\\b(const)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'variable.name.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.const-statement.typespec', + patterns: [ + {include: '#type-annotation'}, + {include: '#operator-assignment'}, + {include: '#expression'} + ] + }, + decorator: { + begin: '((@)\\b[_$[:alpha:]](?:[_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)', + beginCaptures: { + 1: {name: 'entity.name.tag.tsp'}, + 2: {name: 'entity.name.tag.tsp'} + }, + end: '(?=[_$[:alpha:]])|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.decorator.typespec', + patterns: [{include: '#token'}, {include: '#parenthesized-expression'}] + }, + 'decorator-declaration-statement': { + begin: + '(?:(extern)\\s+)?\\b(dec)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'keyword.other.tsp'}, + 3: {name: 'entity.name.function.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.decorator-declaration-statement.typespec', + patterns: [{include: '#token'}, {include: '#operation-parameters'}] + }, + directive: { + begin: '\\s*(#\\b[_$[:alpha:]][_$[:alnum:]]*\\b)', + beginCaptures: {1: {name: 'keyword.directive.name.tsp'}}, + end: '$|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.directive.typespec', + patterns: [ + {include: '#string-literal'}, + {include: '#identifier-expression'} + ] + }, + 'doc-comment': { + begin: '/\\*\\*', + beginCaptures: {0: {name: 'comment.block.tsp'}}, + end: '\\*/', + endCaptures: {0: {name: 'comment.block.tsp'}}, + name: 'comment.block.tsp', + patterns: [{include: '#doc-comment-block'}] + }, + 'doc-comment-block': { + patterns: [ + {include: '#doc-comment-param'}, + {include: '#doc-comment-return-tag'}, + {include: '#doc-comment-unknown-tag'} + ] + }, + 'doc-comment-param': { + captures: { + 1: {name: 'keyword.tag.tspdoc'}, + 2: {name: 'keyword.tag.tspdoc'}, + 3: {name: 'variable.name.tsp'} + }, + match: + '(?x)((@)(?:param|template|prop))\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\b', + name: 'comment.block.tsp' + }, + 'doc-comment-return-tag': { + captures: { + 1: {name: 'keyword.tag.tspdoc'}, + 2: {name: 'keyword.tag.tspdoc'} + }, + match: '(?x)((@)(?:returns))\\b', + name: 'comment.block.tsp' + }, + 'doc-comment-unknown-tag': { + captures: { + 1: {name: 'entity.name.tag.tsp'}, + 2: {name: 'entity.name.tag.tsp'} + }, + match: + '(?x)((@)(?:\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`))\\b', + name: 'comment.block.tsp' + }, + 'else-expression': { + begin: '\\b(else)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '((?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.else-expression.typespec', + patterns: [ + {include: '#projection-expression'}, + {include: '#projection-body'} + ] + }, + 'else-if-expression': { + begin: '\\b(else)\\s+(if)\\b', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'keyword.other.tsp'} + }, + end: '((?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.else-if-expression.typespec', + patterns: [ + {include: '#projection-expression'}, + {include: '#projection-body'} + ] + }, + 'enum-body': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.tsp'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.tsp'}}, + name: 'meta.enum-body.typespec', + patterns: [ + {include: '#enum-member'}, + {include: '#token'}, + {include: '#directive'}, + {include: '#decorator'}, + {include: '#punctuation-comma'} + ] + }, + 'enum-member': { + begin: + '(?:(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*(:?))', + beginCaptures: { + 1: {name: 'variable.name.tsp'}, + 2: {name: 'keyword.operator.type.annotation.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.enum-member.typespec', + patterns: [{include: '#token'}, {include: '#type-annotation'}] + }, + 'enum-statement': { + begin: + '\\b(enum)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'entity.name.type.tsp'} + }, + end: '(?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.enum-statement.typespec', + patterns: [{include: '#token'}, {include: '#enum-body'}] + }, + 'escape-character': {match: '\\\\.', name: 'constant.character.escape.tsp'}, + expression: { + patterns: [ + {include: '#token'}, + {include: '#directive'}, + {include: '#parenthesized-expression'}, + {include: '#valueof'}, + {include: '#typeof'}, + {include: '#type-arguments'}, + {include: '#object-literal'}, + {include: '#tuple-literal'}, + {include: '#tuple-expression'}, + {include: '#model-expression'}, + {include: '#callExpression'}, + {include: '#identifier-expression'} + ] + }, + 'function-call': { + begin: + '(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*(\\()', + beginCaptures: { + 1: {name: 'entity.name.function.tsp'}, + 2: {name: 'punctuation.parenthesis.open.tsp'} + }, + end: '\\)', + endCaptures: {0: {name: 'punctuation.parenthesis.close.tsp'}}, + name: 'meta.function-call.typespec', + patterns: [{include: '#expression'}] + }, + 'function-declaration-statement': { + begin: + '(?:(extern)\\s+)?\\b(fn)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'keyword.other.tsp'}, + 3: {name: 'entity.name.function.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.function-declaration-statement.typespec', + patterns: [ + {include: '#token'}, + {include: '#operation-parameters'}, + {include: '#type-annotation'} + ] + }, + 'identifier-expression': { + match: '\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`', + name: 'entity.name.type.tsp' + }, + 'if-expression': { + begin: '\\b(if)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '((?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.if-expression.typespec', + patterns: [ + {include: '#projection-expression'}, + {include: '#projection-body'} + ] + }, + 'import-statement': { + begin: '\\b(import)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.import-statement.typespec', + patterns: [{include: '#token'}] + }, + 'interface-body': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.tsp'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.tsp'}}, + name: 'meta.interface-body.typespec', + patterns: [ + {include: '#token'}, + {include: '#directive'}, + {include: '#decorator'}, + {include: '#interface-member'}, + {include: '#punctuation-semicolon'} + ] + }, + 'interface-heritage': { + begin: '\\b(extends)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '((?=\\{)|(?=;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.interface-heritage.typespec', + patterns: [{include: '#expression'}, {include: '#punctuation-comma'}] + }, + 'interface-member': { + begin: + '(?:\\b(op)\\b\\s+)?(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'entity.name.function.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.interface-member.typespec', + patterns: [{include: '#token'}, {include: '#operation-signature'}] + }, + 'interface-statement': { + begin: '\\b(interface)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '(?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.interface-statement.typespec', + patterns: [ + {include: '#token'}, + {include: '#type-parameters'}, + {include: '#interface-heritage'}, + {include: '#interface-body'}, + {include: '#expression'} + ] + }, + 'line-comment': {match: '//.*$', name: 'comment.line.double-slash.tsp'}, + 'model-expression': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.tsp'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.tsp'}}, + name: 'meta.model-expression.typespec', + patterns: [ + {include: '#model-property'}, + {include: '#token'}, + {include: '#directive'}, + {include: '#decorator'}, + {include: '#spread-operator'}, + {include: '#punctuation-semicolon'} + ] + }, + 'model-heritage': { + begin: '\\b(extends|is)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '((?=\\{)|(?=;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.model-heritage.typespec', + patterns: [{include: '#expression'}, {include: '#punctuation-comma'}] + }, + 'model-property': { + begin: + '(?:(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)|(\\"(?:[^\\"\\\\]|\\\\.)*\\"))', + beginCaptures: { + 1: {name: 'variable.name.tsp'}, + 2: {name: 'string.quoted.double.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.model-property.typespec', + patterns: [ + {include: '#token'}, + {include: '#type-annotation'}, + {include: '#operator-assignment'}, + {include: '#expression'} + ] + }, + 'model-statement': { + begin: '\\b(model)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '(?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.model-statement.typespec', + patterns: [ + {include: '#token'}, + {include: '#type-parameters'}, + {include: '#model-heritage'}, + {include: '#expression'} + ] + }, + 'namespace-body': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.tsp'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.tsp'}}, + name: 'meta.namespace-body.typespec', + patterns: [{include: '#statement'}] + }, + 'namespace-name': { + begin: '(?=[_$[:alpha:]])', + end: '((?=\\{)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.namespace-name.typespec', + patterns: [ + {include: '#identifier-expression'}, + {include: '#punctuation-accessor'} + ] + }, + 'namespace-statement': { + begin: '\\b(namespace)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '((?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b))', + name: 'meta.namespace-statement.typespec', + patterns: [ + {include: '#token'}, + {include: '#namespace-name'}, + {include: '#namespace-body'} + ] + }, + 'numeric-literal': { + match: + '(?:\\b(?)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + endCaptures: {0: {name: 'keyword.operator.assignment.tsp'}}, + name: 'meta.type-argument.typespec', + patterns: [ + {include: '#token'}, + {include: '#expression'}, + {include: '#punctuation-comma'} + ] + }, + 'type-arguments': { + begin: '<', + beginCaptures: { + 0: {name: 'punctuation.definition.typeparameters.begin.tsp'} + }, + end: '>', + endCaptures: {0: {name: 'punctuation.definition.typeparameters.end.tsp'}}, + name: 'meta.type-arguments.typespec', + patterns: [ + {include: '#type-argument'}, + {include: '#expression'}, + {include: '#punctuation-comma'} + ] + }, + 'type-parameter': { + begin: '(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: {1: {name: 'entity.name.type.tsp'}}, + end: '(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.type-parameter.typespec', + patterns: [ + {include: '#token'}, + {include: '#type-parameter-constraint'}, + {include: '#type-parameter-default'} + ] + }, + 'type-parameter-constraint': { + begin: 'extends', + beginCaptures: {0: {name: 'keyword.other.tsp'}}, + end: '(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.type-parameter-constraint.typespec', + patterns: [{include: '#expression'}] + }, + 'type-parameter-default': { + begin: '=', + beginCaptures: {0: {name: 'keyword.operator.assignment.tsp'}}, + end: '(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.type-parameter-default.typespec', + patterns: [{include: '#expression'}] + }, + 'type-parameters': { + begin: '<', + beginCaptures: { + 0: {name: 'punctuation.definition.typeparameters.begin.tsp'} + }, + end: '>', + endCaptures: {0: {name: 'punctuation.definition.typeparameters.end.tsp'}}, + name: 'meta.type-parameters.typespec', + patterns: [{include: '#type-parameter'}, {include: '#punctuation-comma'}] + }, + typeof: { + begin: '\\b(typeof)', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.typeof.typespec', + patterns: [{include: '#expression'}] + }, + 'union-body': { + begin: '\\{', + beginCaptures: {0: {name: 'punctuation.curlybrace.open.tsp'}}, + end: '\\}', + endCaptures: {0: {name: 'punctuation.curlybrace.close.tsp'}}, + name: 'meta.union-body.typespec', + patterns: [ + {include: '#union-variant'}, + {include: '#token'}, + {include: '#directive'}, + {include: '#decorator'}, + {include: '#expression'}, + {include: '#punctuation-comma'} + ] + }, + 'union-statement': { + begin: + '\\b(union)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)', + beginCaptures: { + 1: {name: 'keyword.other.tsp'}, + 2: {name: 'entity.name.type.tsp'} + }, + end: '(?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.union-statement.typespec', + patterns: [{include: '#token'}, {include: '#union-body'}] + }, + 'union-variant': { + begin: + '(?:(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*(:))', + beginCaptures: { + 1: {name: 'variable.name.tsp'}, + 2: {name: 'keyword.operator.type.annotation.tsp'} + }, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.union-variant.typespec', + patterns: [{include: '#token'}, {include: '#expression'}] + }, + 'using-statement': { + begin: '\\b(using)\\b', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.using-statement.typespec', + patterns: [ + {include: '#token'}, + {include: '#identifier-expression'}, + {include: '#punctuation-accessor'} + ] + }, + valueof: { + begin: '\\b(valueof)', + beginCaptures: {1: {name: 'keyword.other.tsp'}}, + end: '(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)', + name: 'meta.valueof.typespec', + patterns: [{include: '#expression'}] + } + }, + scopeName: 'source.tsp' +} + +export default grammar diff --git a/lang/source.tsx.js b/lang/source.tsx.js index 15f8108..50ae459 100644 --- a/lang/source.tsx.js +++ b/lang/source.tsx.js @@ -1259,11 +1259,11 @@ const grammar = { }, { begin: - '(?<=\\))\\s*\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)*\\])+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))', + '(?<=\\))\\s*\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)*\\])+\\/([dgimsuvy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))', beginCaptures: { 0: {name: 'punctuation.definition.string.begin.tsx'} }, - end: '(/)([dgimsuy]*)', + end: '(/)([dgimsuvy]*)', endCaptures: { 1: {name: 'punctuation.definition.string.end.tsx'}, 2: {name: 'keyword.other.tsx'} @@ -1388,15 +1388,17 @@ const grammar = { { captures: { 1: {name: 'keyword.control.type.tsx'}, + 12: {name: 'keyword.control.as.tsx'}, + 13: {name: 'keyword.control.default.tsx'}, + 14: {name: 'variable.other.readwrite.alias.tsx'}, + 15: {name: 'string.quoted.alias.tsx'}, 2: {name: 'keyword.control.default.tsx'}, 3: {name: 'constant.language.import-export-all.tsx'}, 4: {name: 'variable.other.readwrite.tsx'}, - 5: {name: 'keyword.control.as.tsx'}, - 6: {name: 'keyword.control.default.tsx'}, - 7: {name: 'variable.other.readwrite.alias.tsx'} + 5: {name: 'string.quoted.alias.tsx'} }, match: - '(?|&&|\\|\\||\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[\\()]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\]|\\(([^\\)\\\\]|\\\\.)+\\))+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))', + '(?|&&|\\|\\||\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[\\()]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\]|\\(([^\\)\\\\]|\\\\.)+\\))+\\/([dgimsuvy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))', beginCaptures: {1: {name: 'punctuation.definition.string.begin.tsx'}}, - end: '(/)([dgimsuy]*)', + end: '(/)([dgimsuvy]*)', endCaptures: { 1: {name: 'punctuation.definition.string.end.tsx'}, 2: {name: 'keyword.other.tsx'} @@ -2397,9 +2401,9 @@ const grammar = { }, { begin: - '((? +// and licensed `mit`. +// See for more info. +/** + * @import {Grammar} from '@wooorm/starry-night' + */ + +/** @type {Grammar} */ +const grammar = { + dependencies: ['source.css', 'text.html.basic'], + extensions: ['.vue'], + names: ['vue'], + patterns: [ + {include: 'text.html.basic#comment'}, + {include: '#self-closing-tag'}, + { + begin: '(<)', + beginCaptures: {1: {name: 'punctuation.definition.tag.begin.html.vue'}}, + end: '(>)', + endCaptures: {1: {name: 'punctuation.definition.tag.end.html.vue'}}, + patterns: [ + { + begin: '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)md\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'text.html.markdown', + patterns: [{include: 'source.gfm'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)html\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'text.html.derivative', + patterns: [{include: '#html-stuff'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)pug\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'text.pug', + patterns: [{include: 'text.jade'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)stylus\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.stylus', + patterns: [{include: 'source.stylus'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)postcss\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.postcss', + patterns: [{include: 'source.postcss'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)sass\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.sass', + patterns: [{include: 'source.sass'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)css\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.css', + patterns: [{include: 'source.css'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)scss\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.css.scss', + patterns: [{include: 'source.css.scss'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)less\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.css.less', + patterns: [{include: 'source.css.less'}] + } + ] + }, + { + begin: '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)js\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.js', + patterns: [{include: 'source.js'}] + } + ] + }, + { + begin: '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)ts\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.ts', + patterns: [{include: 'source.ts'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)jsx\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.js.jsx', + patterns: [] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)tsx\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.tsx', + patterns: [{include: 'source.tsx'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)coffee\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.coffee', + patterns: [{include: 'source.coffee'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)json\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.json', + patterns: [{include: 'source.json'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)jsonc\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.json.comments', + patterns: [] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)json5\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.json5', + patterns: [] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)yaml\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.yaml', + patterns: [{include: 'source.yaml'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)toml\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.toml', + patterns: [{include: 'source.toml'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)(gql|graphql)\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.graphql', + patterns: [{include: 'source.graphql'}] + } + ] + }, + { + begin: + '([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*([\'"]?)vue\\b\\2)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/)', + name: 'source.vue', + patterns: [{include: 'source.vue'}] + } + ] + }, + { + begin: '(template)\\b', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/template\\b)', + name: 'text.html.derivative', + patterns: [{include: '#html-stuff'}] + } + ] + }, + { + begin: '(script)\\b', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/script\\b)', + name: 'source.js', + patterns: [{include: 'source.js'}] + } + ] + }, + { + begin: '(style)\\b', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + { + begin: '(?<=>)', + end: '(?=<\\/style\\b)', + name: 'source.css', + patterns: [{include: 'source.css'}] + } + ] + }, + { + begin: '([a-zA-Z0-9:-]+)', + beginCaptures: {1: {name: 'entity.name.tag.$1.html.vue'}}, + end: '()', + endCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + patterns: [ + {include: '#tag-stuff'}, + {begin: '(?<=>)', end: '(?=<\\/)', name: 'text'} + ] + } + ] + } + ], + repository: { + 'html-stuff': { + patterns: [{include: '#template-tag'}, {include: 'text.html.basic'}] + }, + 'self-closing-tag': { + begin: '(<)([a-zA-Z0-9:-]+)(?=([^>]+/>))', + beginCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'} + }, + end: '(/>)', + endCaptures: {1: {name: 'punctuation.definition.tag.end.html.vue'}}, + name: 'self-closing-tag', + patterns: [{include: '#tag-stuff'}] + }, + 'tag-stuff': { + begin: '\\G', + end: '(?=/>)|(>)', + endCaptures: {1: {name: 'punctuation.definition.tag.end.html.vue'}}, + name: 'meta.tag-stuff', + patterns: [ + {include: '#vue-directives'}, + {include: 'text.html.basic#attribute'} + ] + }, + 'template-tag': { + patterns: [{include: '#template-tag-1'}, {include: '#template-tag-2'}] + }, + 'template-tag-1': { + begin: '(<)(template)\\b(>)', + beginCaptures: { + 1: {name: 'punctuation.definition.tag.begin.html.vue'}, + 2: {name: 'entity.name.tag.$2.html.vue'}, + 3: {name: 'punctuation.definition.tag.end.html.vue'} + }, + end: '(/?>)', + endCaptures: {1: {name: 'punctuation.definition.tag.end.html.vue'}}, + name: 'meta.template-tag.start', + patterns: [ + { + begin: '\\G', + end: '(?=/>)|(()', + endCaptures: {1: {name: 'punctuation.definition.tag.end.html.vue'}}, + name: 'meta.template-tag.start', + patterns: [ + { + begin: '\\G', + end: '(?=/>)|((|\\/>))', + patterns: [ + { + begin: '(?=[^\'"`])', + end: '(?=(\\s|>|\\/>))', + name: 'source.ts.embedded.html.vue', + patterns: [{include: 'source.ts#expression'}] + } + ] + } + ] + }, + 'vue-directives-generic-attr': { + begin: '\\b(generic)\\s*(=)', + captures: { + 1: {name: 'entity.other.attribute-name.html.vue'}, + 2: {name: 'punctuation.separator.key-value.html.vue'} + }, + end: '(?<=\'|")', + name: 'meta.attribute.generic.vue', + patterns: [ + { + begin: '(\'|")', + beginCaptures: { + 1: {name: 'punctuation.definition.string.begin.html.vue'} + }, + end: '(\\1)', + endCaptures: { + 1: {name: 'punctuation.definition.string.end.html.vue'} + }, + name: 'meta.type.parameters.vue', + patterns: [ + {include: 'source.ts#comment'}, + { + match: + '(?)', name: 'keyword.operator.assignment.ts'} + ] + } + ] + }, + 'vue-directives-original': { + begin: + '(?:(?:(v-[\\w-]+)(:)?)|([:\\.])|(@)|(#))(?:(?:(\\[)([^\\]]*)(\\]))|([\\w-]+))?', + beginCaptures: { + 1: {name: 'entity.other.attribute-name.html.vue'}, + 2: {name: 'punctuation.separator.key-value.html.vue'}, + 3: {name: 'punctuation.attribute-shorthand.bind.html.vue'}, + 4: {name: 'punctuation.attribute-shorthand.event.html.vue'}, + 5: {name: 'punctuation.attribute-shorthand.slot.html.vue'}, + 6: {name: 'punctuation.separator.key-value.html.vue'}, + 7: { + name: 'source.ts.embedded.html.vue', + patterns: [{include: 'source.ts#expression'}] + }, + 8: {name: 'punctuation.separator.key-value.html.vue'}, + 9: {name: 'entity.other.attribute-name.html.vue'} + }, + end: '(?=\\s*[^=\\s])', + endCaptures: {1: {name: 'punctuation.definition.string.end.html.vue'}}, + name: 'meta.attribute.directive.vue', + patterns: [ + {match: '(\\.)([\\w-]*)'}, + {include: '#vue-directives-expression'} + ] + }, + 'vue-directives-style-attr': { + begin: '\\b(style)\\s*(=)', + captures: { + 1: {name: 'entity.other.attribute-name.html.vue'}, + 2: {name: 'punctuation.separator.key-value.html.vue'} + }, + end: '(?<=\'|")', + name: 'meta.attribute.style.vue', + patterns: [ + { + begin: '(\'|")', + beginCaptures: { + 1: {name: 'punctuation.definition.string.begin.html.vue'} + }, + end: '(\\1)', + endCaptures: { + 1: {name: 'punctuation.definition.string.end.html.vue'} + }, + name: 'source.css.embedded.html.vue', + patterns: [ + {include: 'source.css#comment-block'}, + {include: 'source.css#escapes'}, + {include: 'source.css#font-features'}, + { + match: + '(?x) (? -// and licensed permissive. +// and licensed `mit`. // See for more info. /** * @import {Grammar} from '@wooorm/starry-night' diff --git a/lang/text.adblock.js b/lang/text.adblock.js index ef0d39e..e96c7b7 100644 --- a/lang/text.adblock.js +++ b/lang/text.adblock.js @@ -619,7 +619,7 @@ const grammar = { }, { match: - '(windows|mac|android|ios|ext_chromium|ext_ff|ext_edge|ext_opera|ext_ublock|ext_safari|ext_android_cb)', + '(windows|mac|android|ios|ext_chromium_mv3|ext_chromium|ext_ff|ext_edge|ext_opera|ext_ublock|ext_safari|ext_android_cb)', name: 'constant.language.platform.name' }, {match: '(\\(|\\)|,)', name: 'keyword.control.characters'} diff --git a/lang/text.md.js b/lang/text.md.js index 0e3e362..7502875 100644 --- a/lang/text.md.js +++ b/lang/text.md.js @@ -202,7 +202,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.apib.md', patterns: [ @@ -225,7 +225,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.apib.md', patterns: [ @@ -252,7 +252,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.asciidoc.md', patterns: [ @@ -275,7 +275,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.asciidoc.md', patterns: [ @@ -302,7 +302,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.c.md', patterns: [ @@ -325,7 +325,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.c.md', patterns: [ @@ -352,7 +352,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.clojure.md', patterns: [ @@ -375,7 +375,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.clojure.md', patterns: [ @@ -402,7 +402,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.coffee.md', patterns: [ @@ -425,7 +425,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.coffee.md', patterns: [ @@ -452,7 +452,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.console.md', patterns: [ @@ -475,7 +475,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.console.md', patterns: [ @@ -502,7 +502,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.cpp.md', patterns: [ @@ -525,7 +525,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.cpp.md', patterns: [ @@ -552,7 +552,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.cs.md', patterns: [ @@ -575,7 +575,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.cs.md', patterns: [ @@ -602,7 +602,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.css.md', patterns: [ @@ -625,7 +625,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.css.md', patterns: [ @@ -652,7 +652,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.diff.md', patterns: [ @@ -675,7 +675,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.diff.md', patterns: [ @@ -702,7 +702,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.dockerfile.md', patterns: [ @@ -725,7 +725,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.dockerfile.md', patterns: [ @@ -752,7 +752,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.elixir.md', patterns: [ @@ -775,7 +775,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.elixir.md', patterns: [ @@ -802,7 +802,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.elm.md', patterns: [ @@ -825,7 +825,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.elm.md', patterns: [ @@ -852,7 +852,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.erlang.md', patterns: [ @@ -875,7 +875,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.erlang.md', patterns: [ @@ -902,7 +902,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.gitconfig.md', patterns: [ @@ -925,7 +925,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.gitconfig.md', patterns: [ @@ -952,7 +952,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.go.md', patterns: [ @@ -975,7 +975,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.go.md', patterns: [ @@ -1002,7 +1002,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.graphql.md', patterns: [ @@ -1025,7 +1025,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.graphql.md', patterns: [ @@ -1052,7 +1052,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.haskell.md', patterns: [ @@ -1075,7 +1075,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.haskell.md', patterns: [ @@ -1102,7 +1102,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.html.md', patterns: [ @@ -1125,7 +1125,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.html.md', patterns: [ @@ -1152,7 +1152,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.ini.md', patterns: [ @@ -1175,7 +1175,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.ini.md', patterns: [ @@ -1202,7 +1202,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.java.md', patterns: [ @@ -1225,7 +1225,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.java.md', patterns: [ @@ -1252,7 +1252,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.js.md', patterns: [ @@ -1275,7 +1275,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.js.md', patterns: [ @@ -1302,7 +1302,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.json.md', patterns: [ @@ -1325,7 +1325,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.json.md', patterns: [ @@ -1352,7 +1352,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.julia.md', patterns: [ @@ -1375,7 +1375,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.julia.md', patterns: [ @@ -1402,7 +1402,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.kotlin.md', patterns: [ @@ -1425,7 +1425,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.kotlin.md', patterns: [ @@ -1452,7 +1452,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.less.md', patterns: [ @@ -1475,7 +1475,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.less.md', patterns: [ @@ -1502,7 +1502,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.lua.md', patterns: [ @@ -1525,7 +1525,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.lua.md', patterns: [ @@ -1552,7 +1552,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.makefile.md', patterns: [ @@ -1575,7 +1575,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.makefile.md', patterns: [ @@ -1602,7 +1602,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.md.md', patterns: [ @@ -1625,7 +1625,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.md.md', patterns: [ @@ -1652,7 +1652,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.mdx.md', patterns: [ @@ -1675,7 +1675,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.mdx.md', patterns: [ @@ -1702,7 +1702,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.objc.md', patterns: [ @@ -1725,7 +1725,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.objc.md', patterns: [ @@ -1752,7 +1752,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.perl.md', patterns: [ @@ -1775,7 +1775,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.perl.md', patterns: [ @@ -1802,7 +1802,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.php.md', patterns: [ @@ -1825,7 +1825,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.php.md', patterns: [ @@ -1852,7 +1852,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.python.md', patterns: [ @@ -1875,7 +1875,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.python.md', patterns: [ @@ -1902,7 +1902,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.r.md', patterns: [ @@ -1925,7 +1925,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.r.md', patterns: [ @@ -1952,7 +1952,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.raku.md', patterns: [ @@ -1975,7 +1975,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.raku.md', patterns: [ @@ -2002,7 +2002,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.ruby.md', patterns: [ @@ -2025,7 +2025,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.ruby.md', patterns: [ @@ -2052,7 +2052,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.rust.md', patterns: [ @@ -2075,7 +2075,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.rust.md', patterns: [ @@ -2102,7 +2102,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.scala.md', patterns: [ @@ -2125,7 +2125,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.scala.md', patterns: [ @@ -2152,7 +2152,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.scss.md', patterns: [ @@ -2175,7 +2175,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.scss.md', patterns: [ @@ -2202,7 +2202,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.shell.md', patterns: [ @@ -2225,7 +2225,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.shell.md', patterns: [ @@ -2252,7 +2252,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.shell-session.md', patterns: [ @@ -2275,7 +2275,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.shell-session.md', patterns: [ @@ -2302,7 +2302,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.sql.md', patterns: [ @@ -2325,7 +2325,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.sql.md', patterns: [ @@ -2352,7 +2352,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.svg.md', patterns: [ @@ -2375,7 +2375,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.svg.md', patterns: [ @@ -2402,7 +2402,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.swift.md', patterns: [ @@ -2425,7 +2425,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.swift.md', patterns: [ @@ -2452,7 +2452,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.toml.md', patterns: [ @@ -2475,7 +2475,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.toml.md', patterns: [ @@ -2502,7 +2502,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.ts.md', patterns: [ @@ -2525,7 +2525,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.ts.md', patterns: [ @@ -2552,7 +2552,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.tsx.md', patterns: [ @@ -2575,7 +2575,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.tsx.md', patterns: [ @@ -2603,7 +2603,7 @@ const grammar = { 3: {patterns: [{include: '#markdown-string'}]} }, contentName: 'markup.raw.code.fenced.md', - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.other.md' }, @@ -2619,7 +2619,7 @@ const grammar = { 3: {patterns: [{include: '#markdown-string'}]} }, contentName: 'markup.raw.code.fenced.md', - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.other.md' } @@ -2629,7 +2629,7 @@ const grammar = { 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|(?:.*\\.)?(?:bi|ctl|dsr|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', + '(?:^|\\G)[ ]{0,3}(`{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)', beginCaptures: { 1: {name: 'string.other.begin.code.fenced.md'}, 2: { @@ -2638,7 +2638,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.vbnet.md', patterns: [ @@ -2652,7 +2652,7 @@ const grammar = { }, { 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|(?:.*\\.)?(?:bi|ctl|dsr|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', + '(?:^|\\G)[ ]{0,3}(~{3,})(?:[\\t ]*((?i:fb|freebasic|realbasic|vb\\x2d\\.net|vb\\.net|vbnet|vbscript|visual\\x2dbasic|visual\\x2dbasic\\x2d\\.net|(?:.*\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)', beginCaptures: { 1: {name: 'string.other.begin.code.fenced.md'}, 2: { @@ -2661,7 +2661,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.vbnet.md', patterns: [ @@ -2688,7 +2688,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.xml.md', patterns: [ @@ -2711,7 +2711,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.xml.md', patterns: [ @@ -2738,7 +2738,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.yaml.md', patterns: [ @@ -2761,7 +2761,7 @@ const grammar = { }, 3: {patterns: [{include: '#markdown-string'}]} }, - end: '(\\1)(?:[\\t ]*$)', + end: '(?:^|\\G)[ ]{0,3}(\\1)(?:[\\t ]*$)', endCaptures: {1: {name: 'string.other.end.code.fenced.md'}}, name: 'markup.code.yaml.md', patterns: [ @@ -2878,7 +2878,7 @@ const grammar = { }, match: '(?:^|\\G)[ ]{0,3}(#{3}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.md' + name: 'markup.heading.atx.3.md' }, { captures: { @@ -2891,7 +2891,7 @@ const grammar = { }, match: '(?:^|\\G)[ ]{0,3}(#{4}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.md' + name: 'markup.heading.atx.4.md' }, { captures: { @@ -2904,7 +2904,7 @@ const grammar = { }, match: '(?:^|\\G)[ ]{0,3}(#{5}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.md' + name: 'markup.heading.atx.5.md' }, { captures: { @@ -2917,7 +2917,7 @@ const grammar = { }, match: '(?:^|\\G)[ ]{0,3}(#{6}(?!#))(?:[ \\t]+([^\\r\\n]+?)(?:[ \\t]+(#+?))?)?[ \\t]*$', - name: 'markup.heading.atx.2.md' + name: 'markup.heading.atx.6.md' } ] }, diff --git a/lib/all.js b/lib/all.js index c6c6e3e..325250c 100644 --- a/lib/all.js +++ b/lib/all.js @@ -13,6 +13,7 @@ import source2da from '@wooorm/starry-night/source.2da' import source4dm from '@wooorm/starry-night/source.4dm' import source8xp from '@wooorm/starry-night/source.8xp' import sourceCaddyfile from '@wooorm/starry-night/source.Caddyfile' +import sourceQb4 from '@wooorm/starry-night/source.QB64' import sourceAbap from '@wooorm/starry-night/source.abap' import sourceAbapcds from '@wooorm/starry-night/source.abapcds' import sourceAbl from '@wooorm/starry-night/source.abl' @@ -309,9 +310,11 @@ import sourceModula3 from '@wooorm/starry-night/source.modula-3' import sourceModula2 from '@wooorm/starry-night/source.modula2' import sourceMojo from '@wooorm/starry-night/source.mojo' import sourceMonkey from '@wooorm/starry-night/source.monkey' +import sourceMoonbit from '@wooorm/starry-night/source.moonbit' import sourceMoonscript from '@wooorm/starry-night/source.moonscript' import sourceMove from '@wooorm/starry-night/source.move' import sourceMql5 from '@wooorm/starry-night/source.mql5' +import sourceMsg from '@wooorm/starry-night/source.msg' import sourceMsl from '@wooorm/starry-night/source.msl' import sourceMupad from '@wooorm/starry-night/source.mupad' import sourceNanorc from '@wooorm/starry-night/source.nanorc' @@ -319,6 +322,7 @@ import sourceNasal from '@wooorm/starry-night/source.nasal' import sourceNasl from '@wooorm/starry-night/source.nasl' import sourceNcl from '@wooorm/starry-night/source.ncl' import sourceNe from '@wooorm/starry-night/source.ne' +import sourceNed from '@wooorm/starry-night/source.ned' import sourceNemerle from '@wooorm/starry-night/source.nemerle' import sourceNeon from '@wooorm/starry-night/source.neon' import sourceNesc from '@wooorm/starry-night/source.nesc' @@ -475,6 +479,7 @@ import sourceSway from '@wooorm/starry-night/source.sway' import sourceSwift from '@wooorm/starry-night/source.swift' import sourceSy from '@wooorm/starry-night/source.sy' import sourceSystemverilog from '@wooorm/starry-night/source.systemverilog' +import sourceTact from '@wooorm/starry-night/source.tact' import sourceTalon from '@wooorm/starry-night/source.talon' import sourceTcl from '@wooorm/starry-night/source.tcl' import sourceTea from '@wooorm/starry-night/source.tea' @@ -491,6 +496,7 @@ import sourceToc from '@wooorm/starry-night/source.toc' import sourceToit from '@wooorm/starry-night/source.toit' import sourceToml from '@wooorm/starry-night/source.toml' import sourceTs from '@wooorm/starry-night/source.ts' +import sourceTsp from '@wooorm/starry-night/source.tsp' import sourceTsql from '@wooorm/starry-night/source.tsql' import sourceTsx from '@wooorm/starry-night/source.tsx' import sourceTuring from '@wooorm/starry-night/source.turing' @@ -509,6 +515,7 @@ import sourceVerilog from '@wooorm/starry-night/source.verilog' import sourceVhdl from '@wooorm/starry-night/source.vhdl' import sourceVimSnippet from '@wooorm/starry-night/source.vim-snippet' import sourceViml from '@wooorm/starry-night/source.viml' +import sourceVue from '@wooorm/starry-night/source.vue' import sourceVyper from '@wooorm/starry-night/source.vyper' import sourceWavefrontMtl from '@wooorm/starry-night/source.wavefront.mtl' import sourceWavefrontObj from '@wooorm/starry-night/source.wavefront.obj' @@ -590,7 +597,6 @@ import textHtmlSmarty from '@wooorm/starry-night/text.html.smarty' import textHtmlSoy from '@wooorm/starry-night/text.html.soy' import textHtmlStatamic from '@wooorm/starry-night/text.html.statamic' import textHtmlTwig from '@wooorm/starry-night/text.html.twig' -import textHtmlVue from '@wooorm/starry-night/text.html.vue' import textJade from '@wooorm/starry-night/text.jade' import textMarko from '@wooorm/starry-night/text.marko' import textMd from '@wooorm/starry-night/text.md' @@ -637,6 +643,7 @@ export const grammars = [ source4dm, source8xp, sourceCaddyfile, + sourceQb4, sourceAbap, sourceAbapcds, sourceAbl, @@ -864,7 +871,6 @@ export const grammars = [ sourceJq, sourceJs, sourceJsObjj, - // @ts-expect-error: TS is wrong, `.json` does not mean JSON. sourceJson, sourceJsoniq, sourceJsonnet, @@ -934,9 +940,11 @@ export const grammars = [ sourceModula2, sourceMojo, sourceMonkey, + sourceMoonbit, sourceMoonscript, sourceMove, sourceMql5, + sourceMsg, sourceMsl, sourceMupad, sourceNanorc, @@ -944,6 +952,7 @@ export const grammars = [ sourceNasl, sourceNcl, sourceNe, + sourceNed, sourceNemerle, sourceNeon, sourceNesc, @@ -1100,6 +1109,7 @@ export const grammars = [ sourceSwift, sourceSy, sourceSystemverilog, + sourceTact, sourceTalon, sourceTcl, sourceTea, @@ -1116,6 +1126,7 @@ export const grammars = [ sourceToit, sourceToml, sourceTs, + sourceTsp, sourceTsql, sourceTsx, sourceTuring, @@ -1134,6 +1145,7 @@ export const grammars = [ sourceVhdl, sourceVimSnippet, sourceViml, + sourceVue, sourceVyper, sourceWavefrontMtl, sourceWavefrontObj, @@ -1215,7 +1227,6 @@ export const grammars = [ textHtmlSoy, textHtmlStatamic, textHtmlTwig, - textHtmlVue, textJade, textMarko, textMd, diff --git a/lib/common.js b/lib/common.js index 58fc090..b90efbc 100644 --- a/lib/common.js +++ b/lib/common.js @@ -53,7 +53,6 @@ export const grammars = [ sourceIni, sourceJava, sourceJs, - // @ts-expect-error: TS is wrong, `.json` does not mean JSON. sourceJson, sourceKotlin, sourceLua, diff --git a/notice b/notice index 37175c7..7fa2230 100644 --- a/notice +++ b/notice @@ -5349,40 +5349,6 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -========================================================================================================= -Files in `starry-night`: lang/source.bsl.js, lang/source.sdbl.js -From source: -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE.md - -The MIT License (MIT) -===================== - -Copyright © 2015 xDrivenDevelopment - -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.clean.js From source: <> @@ -7303,22 +7269,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -========================================================================================================= -Files in `starry-night`: lang/source.cmake.js -From source: <> -SPDX: permissive ---------------------------------------------------------------------------------------------------------- -License from source file: ? - -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.peggy.js From source: @@ -13846,6 +13796,36 @@ OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to +========================================================================================================= +Files in `starry-night`: lang/source.vue.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2021-present Johnson Chu + +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.tsql.js From source: @@ -14390,7 +14370,7 @@ License from source file: license (The MIT License) -Copyright (c) 2023 Titus Wormer +Copyright (c) Titus Wormer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -14418,25 +14398,29 @@ License from source file: readme.md +[author]: https://wooorm.com + [build-badge]: https://github.com/wooorm/markdown-tm-language/workflows/main/badge.svg [build]: https://github.com/wooorm/markdown-tm-language/actions -[license]: license +[contribute]: https://opensource.guide/how-to-contribute/ -[author]: https://wooorm.com +[demo]: https://wooorm.com/markdown-tm-language/ -[contribute]: https://opensource.guide/how-to-contribute/ +[license]: license + +[linguist]: https://github.com/github-linguist/linguist [markdown]: https://commonmark.org [mdx]: https://mdxjs.com -[demo]: https://wooorm.com/markdown-tm-language/ +[shiki]: https://github.com/shikijs/shiki [starry-night]: https://github.com/wooorm/starry-night -[shiki]: https://github.com/shikijs/shiki +[vscode-mdx]: https://github.com/mdx-js/mdx-analyzer/tree/main/packages/vscode-mdx ========================================================================================================= Files in `starry-night`: lang/text.marko.js @@ -15018,93 +15002,304 @@ License from source file: ? monkey.tmbundle is made available under the [MIT License](http://choosealicense.com/licenses/mit/). ========================================================================================================= -Files in `starry-night`: lang/source.moonscript.js -From source: <> -SPDX: mit +Files in `starry-night`: lang/source.moonbit.js +From source: +SPDX: apache-2.0 --------------------------------------------------------------------------------------------------------- -License from source file: ? +License from source file: LICENSE -License (MIT) -Copyright (C) 2014 by Leaf Corcoran + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -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: + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + 1. Definitions. -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" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -========================================================================================================= -Files in `starry-night`: lang/source.nemerle.js -From source: <> -SPDX: permissive ---------------------------------------------------------------------------------------------------------- -License from source file: ? + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. -If not otherwise specified (see below), files in this repository fall under the following 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. - 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. + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. -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”. + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. -========================================================================================================= -Files in `starry-night`: lang/source.nesc.js -From source: <> -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: ? + "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. -MIT License + "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). -Copyright (c) 2016 Christopher Wilson + "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. -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: + "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." -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + "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. -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. 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. -========================================================================================================= -Files in `starry-night`: lang/source.nix.js -From source: -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE.txt + 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. -MIT License + 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: -Copyright (c) 2022 sam bacha -Copyright (c) 2021 VSCode Nix IDE Contributors + (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 -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: + (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 -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + (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. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + 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. + + +========================================================================================================= +Files in `starry-night`: lang/source.moonscript.js +From source: <> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: ? + +License (MIT) + +Copyright (C) 2014 by Leaf Corcoran + +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.nemerle.js +From source: <> +SPDX: permissive +--------------------------------------------------------------------------------------------------------- +License from source file: ? + +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.nesc.js +From source: <> +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: ? + +MIT License + +Copyright (c) 2016 Christopher Wilson + +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.nix.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.txt + +MIT License + +Copyright (c) 2022 sam bacha +Copyright (c) 2021 VSCode Nix IDE Contributors + + + + +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, @@ -15383,6 +15578,66 @@ 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.msg.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2024 OpenSim Ltd. + +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.ned.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2024 OpenSim Ltd. + +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.ooc.js From source: <> @@ -19926,6 +20181,40 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +========================================================================================================= +Files in `starry-night`: lang/source.tact.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) 2024 Novus Nota + +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) © [Novus Nota](https://github.com/novusnota). + ========================================================================================================= Files in `starry-night`: lang/source.tcl.js From source: <> @@ -20113,6 +20402,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.tsp.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + + MIT License + + Copyright (c) Microsoft Corporation. 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.typst.js From source: @@ -20230,6 +20549,77 @@ 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.bsl.js, lang/source.sdbl.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.md + +The MIT License (MIT) +===================== + +Copyright © 2015 xDrivenDevelopment + +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](https://github.com/1c-syntax/vsc-language-1c-bsl/blob/master/LICENSE.md) + +========================================================================================================= +Files in `starry-night`: lang/source.QB64.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE + +MIT License + +Copyright (c) [2022] [QB64Official] + +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 + +The VS Code for QB64 extension is subject to these license terms. The source code to this extension is available on https://github.com/QB64Official/vscode and licensed under the [MIT license](https://github.com/QB64Official/vscode/blob/main/LICENSE). + ========================================================================================================= Files in `starry-night`: lang/source.talon.js From source: @@ -20588,6 +20978,36 @@ License from source file: LICENSE limitations under the License. +========================================================================================================= +Files in `starry-night`: lang/source.cmake.js +From source: +SPDX: mit +--------------------------------------------------------------------------------------------------------- +License from source file: LICENSE.txt + +MIT License + +Copyright (c) 2018 vector-of-bool + +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.ql.js From source: @@ -20632,7 +21052,8 @@ License from source file: LICENSE MIT License -Copyright (c) 2019 Andrew Hodges +Original Work Copyright (c) 2019-2020 Andrew Hodges +Current Work and Modifications Copyright (c) 2020-present The CUE Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -21284,6 +21705,7 @@ License from source file: README.md [IntelliSense]: https://github.com/golang/vscode-go/wiki/features#intellisense [Code navigation]: https://github.com/golang/vscode-go/wiki/features#code-navigation [Code editing]: https://github.com/golang/vscode-go/wiki/features#code-editing +[Compatibility]: https://github.com/golang/vscode-go/wiki/compatibility [diagnostics]: https://github.com/golang/vscode-go/wiki/features#diagnostics [testing]: https://github.com/golang/vscode-go/wiki/features#run-and-test-in-the-editor [debugging]: https://github.com/golang/vscode-go/wiki/debugging#features @@ -22988,7 +23410,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ========================================================================================================= Files in `starry-night`: lang/source.scala.js From source: -SPDX: permissive +SPDX: mit --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md @@ -23900,44 +24322,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -========================================================================================================= -Files in `starry-night`: lang/text.html.vue.js -From source: -SPDX: mit ---------------------------------------------------------------------------------------------------------- -License from source file: LICENSE - -The MIT License (MIT) - -Copyright (c) 2013-2016 Evan You - -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](http://opensource.org/licenses/MIT) - ========================================================================================================= Files in `starry-night`: lang/source.wgsl.js From source: -SPDX: permissive +SPDX: mit --------------------------------------------------------------------------------------------------------- License from source file: LICENSE.md diff --git a/package.json b/package.json index d019913..72ff9fd 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,8 @@ "generate-css": "node --conditions development script/css.js", "generate-crawl": "gem install github-linguist -i gems", "generate-list": "node --conditions development script/list.js", - "generate": "npm run generate-build && npm run generate-list && npm run generate-css", + "generate#": "&& npm run generate-css", + "generate": "npm run generate-build && npm run generate-list", "prepack": "npm run build && npm run format", "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix", "test": "npm run generate && npm run build && npm run format && npm run test-coverage", diff --git a/readme.md b/readme.md index 257a765..b6befe6 100644 --- a/readme.md +++ b/readme.md @@ -1038,7 +1038,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.bp`](lang/source.bp.js) (mit) — [upstream](https://github.com/flimberger/android-system-tools) * [ ] [`source.bqn`](lang/source.bqn.js) (mit) — [upstream](https://github.com/razetime/bqn-vscode) * [ ] [`source.brs`](lang/source.brs.js) (mit) — [upstream](https://github.com/rokucommunity/vscode-brightscript-language) -* [ ] [`source.bsl`](lang/source.bsl.js) (mit) — [upstream](https://github.com/xDrivenDevelopment/atom-language-1c-bsl) — needs: `source.sdbl` +* [ ] [`source.bsl`](lang/source.bsl.js) (mit) — [upstream](https://github.com/1c-syntax/vsc-language-1c-bsl) — needs: `source.sdbl` * [ ] [`source.bsv`](lang/source.bsv.js) (mit) * [ ] [`source.c.ec`](lang/source.c.ec.js) (unlicense) — [upstream](https://github.com/ecere/ec.tmbundle) — needs: `source.c` * [ ] [`source.c.nwscript`](lang/source.c.nwscript.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) — needs: `source.c` @@ -1063,7 +1063,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.click`](lang/source.click.js) (mit) * [ ] [`source.clips`](lang/source.clips.js) (mit) * [ ] [`source.clojure`](lang/source.clojure.js) (mit) — [upstream](https://github.com/atom/language-clojure) -* [ ] [`source.cmake`](lang/source.cmake.js) +* [ ] [`source.cmake`](lang/source.cmake.js) (mit) — [upstream](https://github.com/microsoft/vscode-cmake-tools) * [ ] [`source.cobol`](lang/source.cobol.js) (mit) — [upstream](https://github.com/spgennard/vscode_cobol) * [ ] [`source.coffee`](lang/source.coffee.js) (mit) — [upstream](https://github.com/atom/language-coffee-script) — needs: `source.js` * [ ] [`source.commonlisp`](lang/source.commonlisp.js) (mit) — [upstream](https://github.com/qingpeng9802/common-lisp-tmlanguage) @@ -1271,9 +1271,11 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.modula2`](lang/source.modula2.js) (mit) — [upstream](https://github.com/harogaston/Sublime-Modula-2) * [ ] [`source.mojo`](lang/source.mojo.js) (mit) — [upstream](https://github.com/modularml/mojo-syntax) * [ ] [`source.monkey`](lang/source.monkey.js) (mit) +* [ ] [`source.moonbit`](lang/source.moonbit.js) (apache-2.0) — [upstream](https://github.com/moonbitlang/moonbit-tmLanguage) * [ ] [`source.moonscript`](lang/source.moonscript.js) (mit) * [ ] [`source.move`](lang/source.move.js) (mit) — [upstream](https://github.com/damirka/vscode-move-syntax) * [ ] [`source.mql5`](lang/source.mql5.js) (mit) +* [ ] [`source.msg`](lang/source.msg.js) (mit) — [upstream](https://github.com/omnetpp/omnetpp-textmate-msg) * [ ] [`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: `etc`, `injections.etc` @@ -1281,6 +1283,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`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) +* [ ] [`source.ned`](lang/source.ned.js) (mit) — [upstream](https://github.com/omnetpp/omnetpp-textmate-ned) * [ ] [`source.nemerle`](lang/source.nemerle.js) * [ ] [`source.neon`](lang/source.neon.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) * [ ] [`source.nesc`](lang/source.nesc.js) (mit) — needs: `source.c` @@ -1355,6 +1358,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.python.kivy`](lang/source.python.kivy.js) (mit) — [upstream](https://github.com/p0lygun/kivy-language-grammer) — needs: `source.python` * [ ] [`source.q`](lang/source.q.js) (mit) — [upstream](https://github.com/komsit37/sublime-q) * [ ] [`source.qasm`](lang/source.qasm.js) (mit) +* [ ] [`source.QB64`](lang/source.QB64.js) (mit) — [upstream](https://github.com/QB64Official/vscode) * [ ] [`source.ql`](lang/source.ql.js) (mit) — [upstream](https://github.com/github/vscode-codeql) * [ ] [`source.qmake`](lang/source.qmake.js) * [ ] [`source.qml`](lang/source.qml.js) (mit) — needs: `source.js` @@ -1389,12 +1393,12 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.sas`](lang/source.sas.js) (mit) — [upstream](https://github.com/rpardee/sas.tmbundle) * [ ] [`source.sass`](lang/source.sass.js) (mit) — [upstream](https://github.com/atom/language-sass) — needs: `source.css` * [ ] [`source.scad`](lang/source.scad.js) (mit) — [upstream](https://github.com/tbuser/openscad.tmbundle) -* [ ] [`source.scala`](lang/source.scala.js) — [upstream](https://github.com/scala/vscode-scala-syntax) +* [ ] [`source.scala`](lang/source.scala.js) (mit) — [upstream](https://github.com/scala/vscode-scala-syntax) * [ ] [`source.scaml`](lang/source.scaml.js) (apache-2.0) — [upstream](https://github.com/scalate/Scalate.tmbundle) — needs: `source.scala` * [ ] [`source.scenic`](lang/source.scenic.js) (mit) — [upstream](https://github.com/UCSCFormalMethods/Scenic-tmLanguage) * [ ] [`source.scheme`](lang/source.scheme.js) * [ ] [`source.scilab`](lang/source.scilab.js) -* [ ] [`source.sdbl`](lang/source.sdbl.js) (mit) — [upstream](https://github.com/xDrivenDevelopment/atom-language-1c-bsl) +* [ ] [`source.sdbl`](lang/source.sdbl.js) (mit) — [upstream](https://github.com/1c-syntax/vsc-language-1c-bsl) * [ ] [`source.sed`](lang/source.sed.js) (isc) — [upstream](https://github.com/Alhadis/language-sed) * [ ] [`source.sepolicy`](lang/source.sepolicy.js) (apache-2.0) — [upstream](https://github.com/google/selinux-policy-languages) * [ ] [`source.sfv`](lang/source.sfv.js) (isc) — [upstream](https://github.com/Alhadis/language-etc) @@ -1427,6 +1431,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`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) +* [ ] [`source.tact`](lang/source.tact.js) (mit) — [upstream](https://github.com/tact-lang/tact-sublime) * [ ] [`source.talon`](lang/source.talon.js) (mit) — [upstream](https://github.com/mrob95/vscode-TalonScript) * [ ] [`source.tcl`](lang/source.tcl.js) * [ ] [`source.tea`](lang/source.tea.js) (apache-2.0) — needs: `source.js`, `text.html.basic`, `text.xml` @@ -1442,6 +1447,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.toc`](lang/source.toc.js) (unlicense) — [upstream](https://github.com/nebularg/language-toc-wow) * [ ] [`source.toit`](lang/source.toit.js) (mit) — [upstream](https://github.com/toitware/ide-tools) * [ ] [`source.toml`](lang/source.toml.js) — [upstream](https://github.com/textmate/toml.tmbundle) +* [ ] [`source.tsp`](lang/source.tsp.js) (mit) — [upstream](https://github.com/microsoft/typespec) * [ ] [`source.tsql`](lang/source.tsql.js) (mit) — [upstream](https://github.com/beau-witter/language-tsql) * [ ] [`source.tsx`](lang/source.tsx.js) (mit) — [upstream](https://github.com/Microsoft/TypeScript-TmLanguage) * [ ] [`source.turing`](lang/source.turing.js) (isc) — [upstream](https://github.com/Alhadis/language-turing) @@ -1459,6 +1465,7 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`source.vhdl`](lang/source.vhdl.js) * [ ] [`source.vim-snippet`](lang/source.vim-snippet.js) (mit) — [upstream](https://github.com/Alhadis/language-viml) * [ ] [`source.viml`](lang/source.viml.js) (mit) — [upstream](https://github.com/Alhadis/language-viml) +* [ ] [`source.vue`](lang/source.vue.js) (mit) — [upstream](https://github.com/vuejs/language-tools) — needs: `source.css`, `text.html.basic` * [ ] [`source.vyper`](lang/source.vyper.js) (mit) — [upstream](https://github.com/davidhq/SublimeEthereum) * [ ] [`source.wavefront.mtl`](lang/source.wavefront.mtl.js) (isc) — [upstream](https://github.com/Alhadis/language-wavefront) * [ ] [`source.wavefront.obj`](lang/source.wavefront.obj.js) (isc) — [upstream](https://github.com/Alhadis/language-wavefront) @@ -1466,7 +1473,7 @@ 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.wgsl`](lang/source.wgsl.js) (mit) — [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) @@ -1537,7 +1544,6 @@ Changes should go to upstream repos and [`languages.yml`][languages-yml] in * [ ] [`text.html.soy`](lang/text.html.soy.js) (mit) — needs: `text.html.basic` * [ ] [`text.html.statamic`](lang/text.html.statamic.js) (mit) — [upstream](https://github.com/Stillat/vscode-antlers-language-server) — needs: `text.html.basic` * [ ] [`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.js` * [ ] [`text.muse`](lang/text.muse.js) (isc) — [upstream](https://github.com/Alhadis/language-emacs-lisp) diff --git a/script/build.js b/script/build.js index bf47e94..b849d67 100644 --- a/script/build.js +++ b/script/build.js @@ -171,6 +171,7 @@ for (name in languages) { // https://github.com/github-linguist/linguist/pull/6862#issuecomment-2157822516 scope === 'source.Caddyfile' || scope === 'source.iCalendar' || + scope === 'source.QB64' || /^[-a-z\d+_.]+$/.test(scope), scope ) @@ -491,7 +492,7 @@ ${[...missing] if (superfluous.size > 0) { console.warn( - `Superfluous entries in \`graph.yml\` for ${scope}, here’s the fields to remove: + `Superfluous entries in \`graph.yml\` for \`${scope}\`, here’s the fields to remove: \`${[...superfluous].sort().join('`, `')}\` ` ) @@ -570,14 +571,7 @@ await Promise.all( '/** @type {ReadonlyArray} */', 'export const grammars = [', ...list.flatMap(function (d) { - const useLine = ' ' + scopeToId(d) + ',' - - return d === 'source.json' - ? [ - ' // @ts-expect-error: TS is wrong, `.json` does not mean JSON.', - useLine - ] - : useLine + return ' ' + scopeToId(d) + ',' }), ']', '' @@ -914,7 +908,7 @@ function normalizeLinguistName(d) { // For example `DNS zone` can be used as `dns-zone`, not as `dns`, `dns_zone`, // or `dnszone`. const normal = d.toLowerCase().replace(/ /g, '-') - assert(/^[-a-z\d.#+'*()/]+$/.test(normal), normal) + assert(/^[-_a-z\d.#+'*()/]+$/.test(normal), normal) return normal } diff --git a/script/graph.yml b/script/graph.yml index 06d3055..1373aa9 100644 --- a/script/graph.yml +++ b/script/graph.yml @@ -65,7 +65,7 @@ source.cfscript: text.html.javadoc: false source.cobol: source.java: false - source.sql: false + source.openesql: false text.html.basic: false source.coffee: source.js: true @@ -260,7 +260,6 @@ source.julia.console: source.julia: true source.shell: true source.julia: - source.c++: false source.js: false source.python: false source.r: false @@ -677,6 +676,23 @@ source.vim-snippet: source.viml: false source.viml: text.vim-help: false +source.vue: + source.coffee: false + source.css: true + source.css.less: false + source.css.scss: false + source.graphql: false + source.js: false + source.json: false + source.postcss: false + source.sass: false + source.stylus: false + source.toml: false + source.ts: false + source.tsx: false + source.yaml: false + text.html.basic: true + text.jade: false source.wdl: source.shell: false source.wgetrc: diff --git a/script/info.js b/script/info.js index 6245361..071a8d2 100644 --- a/script/info.js +++ b/script/info.js @@ -451,15 +451,6 @@ export const info = { homepage: 'https://github.com/FStarLang/atom-fstar', license: 'apache-2.0' }, - 'source.bsl': { - dependencies: ['source.sdbl'], - homepage: 'https://github.com/xDrivenDevelopment/atom-language-1c-bsl', - license: 'mit' - }, - 'source.sdbl': { - homepage: 'https://github.com/xDrivenDevelopment/atom-language-1c-bsl', - license: 'mit' - }, 'source.clean': { license: 'mit' }, @@ -597,7 +588,6 @@ export const info = { homepage: 'https://github.com/hirosystems/clarity.tmbundle', license: 'mit' }, - 'source.cmake': {}, 'source.peggy': { dependencies: ['source.js'], homepage: 'https://github.com/peggyjs/code-peggy-language', @@ -1604,6 +1594,11 @@ export const info = { homepage: 'https://github.com/nebularg/language-toc-wow', license: 'unlicense' }, + 'source.vue': { + dependencies: ['source.css', 'text.html.basic'], + homepage: 'https://github.com/vuejs/language-tools', + license: 'mit' + }, 'source.tsql': { homepage: 'https://github.com/beau-witter/language-tsql', license: 'mit' @@ -1742,6 +1737,10 @@ export const info = { 'source.monkey': { license: 'mit' }, + 'source.moonbit': { + homepage: 'https://github.com/moonbitlang/moonbit-tmLanguage', + license: 'apache-2.0' + }, 'source.moonscript': { license: 'mit' }, @@ -1774,6 +1773,14 @@ export const info = { 'source.ocaml': { dependencies: ['source.camlp4.ocaml'] }, + 'source.msg': { + homepage: 'https://github.com/omnetpp/omnetpp-textmate-msg', + license: 'mit' + }, + 'source.ned': { + homepage: 'https://github.com/omnetpp/omnetpp-textmate-ned', + license: 'mit' + }, 'source.ooc': { license: 'bsd-2-clause' }, @@ -2101,6 +2108,10 @@ export const info = { homepage: 'https://github.com/MinecraftCommands/syntax-mcfunction', license: 'mit' }, + 'source.tact': { + homepage: 'https://github.com/tact-lang/tact-sublime', + license: 'mit' + }, 'source.tcl': {}, 'source.templ': { dependencies: ['source.go'], @@ -2131,6 +2142,10 @@ export const info = { homepage: 'https://github.com/peta/turtle.tmbundle', license: 'mit' }, + 'source.tsp': { + homepage: 'https://github.com/microsoft/typespec', + license: 'mit' + }, 'source.typst': { homepage: 'https://github.com/michidk/typst-grammar', license: 'mit' @@ -2151,6 +2166,19 @@ export const info = { homepage: 'https://github.com/kongeor/vsc-fennel', license: 'mit' }, + 'source.bsl': { + dependencies: ['source.sdbl'], + homepage: 'https://github.com/1c-syntax/vsc-language-1c-bsl', + license: 'mit' + }, + 'source.sdbl': { + homepage: 'https://github.com/1c-syntax/vsc-language-1c-bsl', + license: 'mit' + }, + 'source.QB64': { + homepage: 'https://github.com/QB64Official/vscode', + license: 'mit' + }, 'source.talon': { homepage: 'https://github.com/mrob95/vscode-TalonScript', license: 'mit' @@ -2176,6 +2204,10 @@ export const info = { homepage: 'https://github.com/onflow/vscode-cadence', license: 'apache-2.0' }, + 'source.cmake': { + homepage: 'https://github.com/microsoft/vscode-cmake-tools', + license: 'mit' + }, 'source.ql': { homepage: 'https://github.com/github/vscode-codeql', license: 'mit' @@ -2311,7 +2343,8 @@ export const info = { license: 'mit' }, 'source.scala': { - homepage: 'https://github.com/scala/vscode-scala-syntax' + homepage: 'https://github.com/scala/vscode-scala-syntax', + license: 'mit' }, 'source.singularity': { homepage: 'https://github.com/onnovalkering/vscode-singularity', @@ -2355,12 +2388,9 @@ export const info = { homepage: 'https://github.com/spgennard/vscode_cobol', license: 'mit' }, - 'text.html.vue': { - homepage: 'https://github.com/vuejs/vue-syntax-highlight', - license: 'mit' - }, 'source.wgsl': { - homepage: 'https://github.com/wgsl-analyzer/wgsl-analyzer' + homepage: 'https://github.com/wgsl-analyzer/wgsl-analyzer', + license: 'mit' }, 'source.witcherscript': { homepage: 'https://github.com/ADawesomeguy/witcherscript-grammar', diff --git a/test.js b/test.js index fc52bde..e520ce7 100644 --- a/test.js +++ b/test.js @@ -222,7 +222,6 @@ test('.flagToScope(flag)', async function (t) { 'should support language names with slashes (`/`)', async function () { const {default: json} = await import('@wooorm/starry-night/source.json') - // @ts-expect-error: TS is wrong, it doesn’t understand that `.json` is not an extension. const grammar = /** @type {Grammar} */ (json) const starryJson = await createStarryNight([grammar]) From 7468ff0ad2154eba4a085b1746962496f3d3f93f Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 15:57:41 +0100 Subject: [PATCH 2/7] Add `.tsbuildinfo` to `.gitignore` --- .gitignore | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index a7cae40..34c991f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,14 @@ +*.d.ts +*.log +*.map +*.tsbuildinfo +.DS_Store coverage/ gems/ media/preview.html node_modules/ -script/info/ script/grammars.yml -*.d.ts.map -*.d.ts -*.log -.DS_Store +script/info/ yarn.lock -!/lib/types.d.ts !/index.d.ts +!/lib/types.d.ts From 86b6b2fac940abbd627fa487726044de97786afd Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 15:57:56 +0100 Subject: [PATCH 3/7] Update Actions --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbb00c8..ade3921 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,3 @@ -name: main -on: - - pull_request - - push jobs: main: name: ${{matrix.node}} @@ -13,9 +9,13 @@ jobs: node-version: ${{matrix.node}} - run: npm install - run: npm test - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 strategy: matrix: node: - lts/hydrogen - node +name: main +on: + - pull_request + - push From 34503283cc88373ce1653c9267a910d5c7682322 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 15:59:06 +0100 Subject: [PATCH 4/7] Refactor `.editorconfig` --- .editorconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index c6c8b36..0f17867 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,9 +1,9 @@ root = true [*] -indent_style = space -indent_size = 2 -end_of_line = lf charset = utf-8 -trim_trailing_whitespace = true +end_of_line = lf +indent_size = 2 +indent_style = space insert_final_newline = true +trim_trailing_whitespace = true From f8bd7df305ce6c3bcf6874600959dedd4f935ce4 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 15:59:24 +0100 Subject: [PATCH 5/7] Refactor `.prettierignore` --- .prettierignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 1b374d9..31364b8 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,4 @@ +*.md coverage/ gems/ script/info/ -*.md From 0ba44c0413ea23b33080682215df80980b62e180 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 16:03:39 +0100 Subject: [PATCH 6/7] Refactor `package.json` --- package.json | 125 +++++++++++++++++++++++++-------------------------- 1 file changed, 62 insertions(+), 63 deletions(-) diff --git a/package.json b/package.json index 72ff9fd..269f6d9 100644 --- a/package.json +++ b/package.json @@ -1,62 +1,16 @@ { - "name": "@wooorm/starry-night", - "version": "3.5.0", - "description": "Syntax highlighting, like GitHub", - "license": "MIT", - "keywords": [ - "ast", - "code", - "dom", - "github", - "gogh", - "highlight", - "highlighting", - "linguist", - "prettylights", - "syntax", - "treelights", - "virtual" - ], - "repository": "wooorm/starry-night", - "bugs": "https://github.com/wooorm/starry-night/issues", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - }, "author": "Titus Wormer (https://wooorm.com)", + "bugs": "https://github.com/wooorm/starry-night/issues", "contributors": [ "Titus Wormer (https://wooorm.com)" ], - "sideEffects": [ - "style/*.css" - ], - "type": "module", - "main": "index.js", - "exports": { - ".": "./index.js", - "./*": "./lang/*.js", - "./style/*": "./style/*.css" - }, - "imports": { - "#get-oniguruma": { - "node": "./lib/get-oniguruma.fs.js", - "default": "./lib/get-oniguruma.default.js" - } - }, - "files": [ - "lang/", - "lib/", - "style/", - "index.d.ts", - "index.js", - "notice" - ], "dependencies": { "@types/hast": "^3.0.0", "import-meta-resolve": "^4.0.0", "vscode-oniguruma": "^2.0.0", "vscode-textmate": "^9.0.0" }, + "description": "Syntax highlighting, like GitHub", "devDependencies": { "@types/css": "^0.0.37", "@types/json-stable-stringify": "^1.0.0", @@ -77,20 +31,47 @@ "xo": "^0.59.0", "yaml": "^2.0.0" }, - "scripts": { - "build": "tsc --build --clean && tsc --build && type-coverage", - "generate-build": "node --conditions development script/build.js", - "generate-css": "node --conditions development script/css.js", - "generate-crawl": "gem install github-linguist -i gems", - "generate-list": "node --conditions development script/list.js", - "generate#": "&& npm run generate-css", - "generate": "npm run generate-build && npm run generate-list", - "prepack": "npm run build && npm run format", - "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix", - "test": "npm run generate && npm run build && npm run format && npm run test-coverage", - "test-api": "node --conditions development test.js", - "test-coverage": "c8 --100 --reporter lcov npm run test-api" + "exports": { + ".": "./index.js", + "./*": "./lang/*.js", + "./style/*": "./style/*.css" + }, + "files": [ + "index.d.ts", + "index.js", + "lang/", + "lib/", + "notice", + "style/" + ], + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + }, + "imports": { + "#get-oniguruma": { + "node": "./lib/get-oniguruma.fs.js", + "default": "./lib/get-oniguruma.default.js" + } }, + "keywords": [ + "ast", + "code", + "dom", + "github", + "gogh", + "highlight", + "highlighting", + "linguist", + "prettylights", + "syntax", + "treelights", + "virtual" + ], + "license": "MIT", + "main#": "to do: next major: remove `main`?", + "main": "index.js", + "name": "@wooorm/starry-night", "prettier": { "bracketSpacing": false, "semi": false, @@ -123,15 +104,33 @@ "./script/support.js" ] }, + "repository": "wooorm/starry-night", + "scripts": { + "build": "tsc --build --clean && tsc --build && type-coverage", + "generate-build": "node --conditions development script/build.js", + "generate-css": "node --conditions development script/css.js", + "generate-crawl": "gem install github-linguist --install-dir gems", + "generate-list": "node --conditions development script/list.js", + "generate#": "to do: add ` && npm run generate-css` back", + "generate": "npm run generate-build && npm run generate-list", + "prepack": "npm run build && npm run format", + "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix", + "test": "npm run generate && npm run build && npm run format && npm run test-coverage", + "test-api": "node --conditions development test.js", + "test-coverage": "c8 --100 --reporter lcov -- npm run test-api" + }, + "sideEffects": [ + "style/*.css" + ], "typeCoverage": { "atLeast": 100, - "detail": true, - "ignoreCatch": true, "ignoreFiles": [ "lang/*.js" ], "strict": true }, + "type": "module", + "version": "3.5.0", "xo": { "ignores": [ "gems/", From 923cecf25145b5602d8782cad5f1c608a52c7602 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 3 Jan 2025 16:09:46 +0100 Subject: [PATCH 7/7] 3.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 269f6d9..fbdde92 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ "strict": true }, "type": "module", - "version": "3.5.0", + "version": "3.6.0", "xo": { "ignores": [ "gems/",