github-linguist 7.24.0 → 7.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/govulncheck.json +1 -0
- data/grammars/liquid.injection.json +1 -1
- data/grammars/source.abap.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.arr.json +1 -0
- data/grammars/source.astro.json +1 -1
- data/grammars/source.ats.json +1 -1
- data/grammars/source.basic.json +1 -1
- data/grammars/source.brs.json +1 -1
- data/grammars/source.cds.json +1 -1
- data/grammars/source.chapel.json +1 -1
- data/grammars/source.circom.json +1 -0
- data/grammars/source.clar.json +1 -1
- data/grammars/source.cobol.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.denizenscript.json +1 -1
- data/grammars/source.editorconfig.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.generic-config.json +1 -0
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.gleam.json +1 -1
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.hocon.json +1 -1
- data/grammars/source.hosts.json +1 -1
- data/grammars/source.j.json +1 -1
- data/grammars/source.jflex.json +1 -1
- data/grammars/source.kerboscript.json +1 -0
- data/grammars/source.kickstart.json +1 -0
- data/grammars/source.kotlin.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.mermaid.flowchart.json +1 -1
- data/grammars/source.mermaid.json +1 -1
- data/grammars/source.mermaid.mindmap.json +1 -0
- data/grammars/source.mo.json +1 -1
- data/grammars/source.move.json +1 -1
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nim_filter.json +1 -1
- data/grammars/source.nimcfg.json +1 -1
- data/grammars/source.pnlgrp.json +1 -1
- data/grammars/source.polar.json +1 -1
- data/grammars/source.postscript.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.rescript.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rust.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.singularity.json +1 -1
- data/grammars/source.sqf.json +1 -1
- data/grammars/source.stan.json +1 -1
- data/grammars/source.svelte.json +1 -1
- data/grammars/source.sway.json +1 -0
- data/grammars/source.talon.json +1 -1
- data/grammars/source.ts.json +1 -1
- data/grammars/source.tsql.json +1 -1
- data/grammars/source.tsx.json +1 -1
- data/grammars/source.turtle.json +1 -1
- data/grammars/source.v.json +1 -1
- data/grammars/source.yara.json +1 -1
- data/grammars/text.adblock.json +1 -1
- data/grammars/text.checksums.json +1 -1
- data/grammars/text.html.liquid.json +1 -1
- data/grammars/text.restructuredtext.json +1 -1
- data/grammars/text.sfd.json +1 -1
- data/grammars/text.xml.svg.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +8 -0
- data/lib/linguist/generic.yml +1 -0
- data/lib/linguist/heuristics.yml +38 -13
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +132 -16
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/vendor.yml +3 -0
- metadata +11 -4
- data/grammars/source.nim.comment.json +0 -1
data/grammars/source.m2.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Macaulay2","scopeName":"source.m2","patterns":[{"include":"#keywords"},{"include":"#comment"},{"include":"#strings"},{"include":"#fields"},{"include":"#math"},{"include":"#autogen"}],"repository":{"autogen":{"patterns":[{"name":"entity.name.type.m2","match":"(?x)(\\b|^)(Adjacent|AffineVariety|Analyzer|ANCHOR|AngleBarList|Array|AssociativeExpression|Bag|BasicList|BettiTally|BinaryOperation|BLOCKQUOTE|BODY|BOLD|Boolean|BR|CacheFunction|CacheTable|CC|CDATA|ChainComplex|ChainComplexMap|CODE|CoherentSheaf|Command|COMMENT|CompiledFunction|CompiledFunctionBody|CompiledFunctionClosure|ComplexField|Constant|Database|DD|Descent|Describe|Dictionary|DIV|Divide|DL|DocumentTag|DT|Eliminate|EM|EngineRing|Equation|ExampleItem|Expression|File|FilePosition|FractionField|Function|FunctionApplication|FunctionBody|FunctionClosure|GaloisField|GeneralOrderedMonoid|GlobalDictionary|GradedModule|GradedModuleMap|GroebnerBasis|GroebnerBasisOptions|HashTable|HEAD|HEADER1|HEADER2|HEADER3|HEADER4|HEADER5|HEADER6|HeaderType|Holder|HR|HREF|HTML|Hybrid|Hypertext|HypertextContainer|HypertextParagraph|Ideal|IMG|ImmutableType|IndeterminateNumber|IndexedVariable|IndexedVariableTable|InexactField|InexactFieldFamily|InexactNumber|InfiniteNumber|IntermediateMarkUpType|ITALIC|Keyword|LABEL|LATER|LI|LINK|List|LITERAL|LocalDictionary|LowerBound|Manipulator|MapExpression|MarkUpType|Matrix|MatrixExpression|MENU|META|MethodFunction|MethodFunctionBinary|MethodFunctionSingle|MethodFunctionWithOptions|Minus|Module|Monoid|MonoidElement|MonomialIdeal|MultigradedBettiTally|MutableHashTable|MutableList|MutableMatrix|Net|NetFile|NonAssociativeProduct|Nothing|Number|NumberedVerticalList|OL|OneExpression|Option|OptionTable|OrderedMonoid|Package|PARA|Parenthesize|Parser|Partition|PolynomialRing|Power|PRE|Product|ProductOrder|Program|ProgramRun|ProjectiveHilbertPolynomial|ProjectiveVariety|Pseudocode|QQ|QuotientRing|RealField|Resolution|Ring|RingElement|RingFamily|RingMap|RowExpression|RR|RRi|ScriptedFunctor|SelfInitializingType|Sequence|Set|SheafExpression|SheafOfRings|SMALL|SPAN|SparseMonomialVectorExpression|SparseVectorExpression|String|STRONG|STYLE|SUB|Subscript|SUBSECTION|Sum|SumOfTwists|SUP|Superscript|Symbol|SymbolBody|TABLE|Table|Tally|Task|TD|TestInput|TEX|TH|Thing|Time|TITLE|TO|TO2|TOH|TR|TT|Type|UL|URL|Variety|Vector|VectorExpression|VerticalList|VirtualTally|VisibleList|WrapperType|ZeroExpression|ZZ)\\b"},{"name":"entity.name.function.m2","match":"(?x)(\\b|^)(about|abs|accumulate|acos|acosh|acot|addCancelTask|addDependencyTask|addEndFunction|addHook|addStartFunction|addStartTask|adjoint|agm|alarm|all|ambient|analyticSpread|ancestor|ancestors|andP|ann|annihilator|antipode|any|append|applicationDirectory|apply|applyKeys|applyPairs|applyTable|applyValues|apropos|arXiv|ascii|asin|asinh|ass|assert|associatedGradedRing|associatedPrimes|atan|atan2|atEndOfFile|autoload|baseFilename|baseName|baseRing|basis|beginDocumentation|benchmark|BesselJ|BesselY|betti|between|binomial|borel|cacheValue|cancelTask|capture|ceiling|centerString|chainComplex|char|characters|charAnalyzer|check|chi|class|clean|clearEcho|code|codim|coefficient|coefficientRing|coefficients|cohomology|coimage|coker|cokernel|collectGarbage|columnAdd|columnate|columnMult|columnPermute|columnRankProfile|columnSwap|combine|commandInterpreter|commonest|commonRing|comodule|complement|complete|components|compose|compositions|compress|concatenate|conductor|cone|conjugate|connectionCount|constParser|content|contract|conwayPolynomial|copy|copyDirectory|copyFile|cos|cosh|cot|cotangentSheaf|coth|cover|coverMap|cpuTime|createTask|csc|csch|currentDirectory|currentLineNumber|currentTime|deadParser|debug|debugError|decompose|deepSplice|default|degree|degreeLength|degrees|degreesMonoid|degreesRing|delete|demark|denominator|depth|describe|det|determinant|diagonalMatrix|diameter|dictionary|diff|difference|dim|directSum|disassemble|discriminant|dismiss|distinguished|divideByVariable|doc|document|drop|dual|eagonNorthcott|echoOff|echoOn|eigenvalues|eigenvectors|eint|elements|eliminate|End|endPackage|entries|erase|erf|erfc|error|euler|eulers|even|EXAMPLE|examples|exec|exp|expectedReesIdeal|expm1|exponents|export|exportFrom|exportMutable|expression|extend|exteriorPower|factor|Fano|fileExecutable|fileExists|fileLength|fileMode|fileReadable|fileTime|fileWritable|fillMatrix|findFiles|findHeft|findProgram|findSynonyms|first|firstkey|fittingIdeal|flagLookup|flatten|flattenRing|flip|floor|fold|forceGB|fork|format|formation|frac|fraction|frames|fromDividedPowers|fromDual|functionBody|futureParser|Gamma|gb|gbRemove|gbSnapshot|gcd|gcdCoefficients|gcdLLL|GCstats|genera|generateAssertions|generator|generators|genericMatrix|genericSkewMatrix|genericSymmetricMatrix|gens|genus|get|getc|getChangeMatrix|getenv|getGlobalSymbol|getNetFile|getNonUnit|getPrimeWithRootOfUnity|getSymbol|getWWW|GF|globalAssign|globalAssignFunction|globalAssignment|globalReleaseFunction|gradedModule|gradedModuleMap|gramm|graphIdeal|graphRing|Grassmannian|groebnerBasis|groupID|hash|hashTable|heft|height|hermite|hilbertFunction|hilbertPolynomial|hilbertSeries|hold|Hom|homogenize|homology|homomorphism|hooks|horizontalJoin|html|httpHeaders|hypertext|icFracP|icFractions|icMap|icPIdeal|ideal|idealizer|identity|image|imaginaryPart|importFrom|independentSets|index|indices|inducedMap|inducesWellDefinedMap|info|input|insert|installAssignmentMethod|installedPackages|installHilbertFunction|installMethod|installMinprimes|installPackage|instance|instances|integralClosure|integrate|intersect|intersectInP|intersection|interval|inverse|inversePermutation|inverseSystem|irreducibleCharacteristicSeries|irreducibleDecomposition|isAffineRing|isANumber|isBorel|isCanceled|isCommutative|isConstant|isDirectory|isDirectSum|isEmpty|isField|isFinite|isFinitePrimeField|isFreeModule|isGlobalSymbol|isHomogeneous|isIdeal|isInfinite|isInjective|isInputFile|isIsomorphism|isLinearType|isListener|isLLL|isMember|isModule|isMonomialIdeal|isNormal|isOpen|isOutputFile|isPolynomialRing|isPrimary|isPrime|isPrimitive|isPseudoprime|isQuotientModule|isQuotientOf|isQuotientRing|isReady|isReal|isReduction|isRegularFile|isRing|isSkewCommutative|isSorted|isSquareFree|isStandardGradedPolynomialRing|isSubmodule|isSubquotient|isSubset|isSupportedInZeroLocus|isSurjective|isTable|isUnit|isWellDefined|isWeylAlgebra|jacobian|jacobianDual|join|ker|kernel|kernelLLL|kernelOfLocalization|keys|kill|koszul|last|lcm|leadCoefficient|leadComponent|leadMonomial|leadTerm|left|length|letterParser|lift|liftable|limitFiles|limitProcesses|lines|linkFile|listForm|listSymbols|LLL|lngamma|load|loadPackage|localDictionaries|localize|locate|log|log1p|lookup|lookupCount|LUdecomposition|makeDirectory|makeDocumentTag|makePackageIndex|makeS2|map|markedGB|match|mathML|matrix|max|maxPosition|member|memoize|merge|mergePairs|method|methodOptions|methods|midpoint|min|mingens|mingle|minimalBetti|minimalPresentation|minimalPrimes|minimalReduction|minimizeFilename|minors|minPosition|minPres|minprimes|minus|mkdir|mod|module|modulo|monoid|monomialCurveIdeal|monomialIdeal|monomials|monomialSubideal|moveFile|multidegree|multidoc|multigraded|multiplicity|mutable|mutableIdentity|mutableMatrix|nanosleep|needs|needsPackage|net|netList|newClass|newCoordinateSystem|newNetFile|newPackage|newRing|nextkey|nextPrime|NNParser|nonspaceAnalyzer|norm|normalCone|notImplemented|nullhomotopy|nullParser|nullSpace|number|numcols|numColumns|numerator|numeric|numericInterval|numgens|numRows|numrows|odd|ofClass|on|openDatabase|openDatabaseOut|openFiles|openIn|openInOut|openListener|openOut|openOutAppend|optionalSignParser|options|optP|orP|override|pack|package|packageTemplate|pad|pager|pairs|parent|part|partition|partitions|parts|pdim|peek|permanents|permutations|pfaffians|pivots|plus|poincare|poincareN|polarize|poly|position|positions|power|powermod|precision|preimage|prepend|presentation|pretty|primaryComponent|primaryDecomposition|print|printerr|printString|processID|product|profile|Proj|projectiveHilbertPolynomial|promote|protect|prune|pseudocode|pseudoRemainder|pushForward|QQParser|QRDecomposition|quotient|quotientRemainder|radical|radicalContainment|random|randomKRationalPoint|randomMutableMatrix|rank|read|readDirectory|readlink|readPackage|realPart|realpath|recursionDepth|reducedRowEchelonForm|reduceHilbert|reductionNumber|reesAlgebra|reesAlgebraIdeal|reesIdeal|regex|regexQuote|registerFinalizer|regSeqInIdeal|regularity|relations|relativizeFilename|remainder|remove|removeDirectory|removeFile|removeLowestDimension|reorganize|replace|res|reshape|resolution|resultant|reverse|right|ring|ringFromFractions|roots|rotate|round|rowAdd|rowMult|rowPermute|rowRankProfile|rowSwap|rsort|run|runHooks|runLengthEncode|runProgram|same|saturate|scan|scanKeys|scanLines|scanPairs|scanValues|schedule|schreyerOrder|Schubert|searchPath|sec|sech|seeParsing|select|selectInSubring|selectVariables|separate|separateRegexp|sequence|serialNumber|set|setEcho|setGroupID|setIOExclusive|setIOSynchronized|setIOUnSynchronized|setRandomSeed|setup|setupEmacs|sheaf|sheafHom|show|showHtml|showTex|simpleDocFrob|sin|singularLocus|sinh|size|size2|sleep|smithNormalForm|solve|someTerms|sort|sortColumns|source|span|Spec|specialFiber|specialFiberIdeal|splice|splitWWW|sqrt|stack|stacksProject|standardForm|standardPairs|stashValue|status|style|sub|sublists|submatrix|submatrixByDegrees|subquotient|subsets|substitute|substring|subtable|sum|super|support|SVD|switch|sylvesterMatrix|symbolBody|symlinkDirectory|symlinkFile|symmetricAlgebra|symmetricAlgebraIdeal|symmetricKernel|symmetricPower|synonym|SYNOPSIS|syz|syzygyScheme|table|take|tally|tan|tangentCone|tangentSheaf|tanh|target|taskResult|temporaryFileName|tensor|tensorAssociativity|terminalParser|terms|TEST|testHunekeQuestion|tests|tex|texMath|times|toAbsolutePath|toCC|toDividedPowers|toDual|toExternalString|toField|toList|toLower|top|topCoefficients|topComponents|toRR|toRRi|toSequence|toString|toUpper|trace|transpose|trim|truncate|truncateOutput|tutorial|ultimate|unbag|uncurry|undocumented|uniform|uninstallAllPackages|uninstallPackage|unique|unsequence|unstack|use|userSymbols|utf8|utf8check|validate|value|values|variety|vars|vector|versalEmbedding|wait|wedgeProduct|weightRange|whichGm|width|wikipedia|wrap|youngest|zero|zeta|ZZParser)\\b"},{"name":"constant.other.m2","match":"(?x)(\\b|^)(AbstractToricVarieties|Acknowledgement|AdditionalPaths|AdjointIdeal|AfterEval|AfterNoPrint|AfterPrint|AInfinity|AlgebraicSplines|Algorithm|Alignment|AllCodimensions|allowableThreads|AnalyzeSheafOnP1|applicationDirectorySuffix|argument|Ascending|AssociativeAlgebras|Authors|AuxiliaryFiles|backtrace|Bareiss|BaseFunction|baseRings|BaseRow|BasisElementLimit|Bayer|BeforePrint|BeginningMacaulay2|Benchmark|Bertini|BettiCharacters|BGG|BIBasis|Binary|Binomial|BinomialEdgeIdeals|Binomials|BKZ|BlockMatrix|Body|BoijSoederberg|Book3264Examples|BooleanGB|Boxes|Browse|Bruns|cache|CacheExampleOutput|CallLimit|CannedExample|Caveat|Center|Certification|ChainComplexExtras|ChainComplexOperations|ChangeMatrix|CharacteristicClasses|CheckDocumentation|Chordal|Classic|clearAll|clearOutput|close|closeIn|closeOut|ClosestFit|Code|CodimensionLimit|CoefficientRing|Cofactor|CohenEngine|CohenTopLevel|CohomCalg|CoincidentRootLoci|commandLine|CompactMatrix|compactMatrixForm|Complement|CompleteIntersection|CompleteIntersectionResolutions|Complexes|ConductorElement|Configuration|ConformalBlocks|Consequences|Constants|Contributors|ConvexInterface|ConwayPolynomials|copyright|Core|CorrespondenceScrolls|Cremona|currentFileDirectory|currentFileName|currentLayout|currentPackage|Cyclotomic|Date|dd|DebuggingMode|debuggingMode|debugLevel|DecomposableSparseSystems|Decompose|Default|defaultPrecision|Degree|DegreeLift|DegreeLimit|DegreeMap|DegreeOrder|DegreeRank|Degrees|Dense|Density|Depth|Descending|Description|DeterminantalRepresentations|DGAlgebras|dictionaryPath|DiffAlg|Dispatch|DivideConquer|DividedPowers|Divisor|Dmodules|docExample|docTemplate|Down|EagonResolution|EdgeIdeals|edit|EigenSolver|EisenbudHunekeVasconcelos|Elimination|EliminationMatrices|EllipticCurves|EllipticIntegrals|Email|end|endl|Engine|engineDebugLevel|EngineTests|EnumerationCurves|environment|EquivariantGB|errorDepth|EulerConstant|Example|ExampleFiles|ExampleSystems|Exclude|exit|Ext|ExteriorIdeals|ExteriorModules|false|FastMinors|FastNonminimal|FGLM|fileDictionaries|fileExitHooks|FileName|FindOne|FiniteFittingIdeals|First|FirstPackage|FlatMonoid|Flexible|flush|FollowLinks|FormalGroupLaws|Format|FourierMotzkin|FourTiTwo|fpLLL|FrobeniusThresholds|FunctionFieldDesingularization|GBDegrees|gbTrace|GenerateAssertions|Generic|GenericInitialIdeal|gfanInterface|Givens|GKMVarieties|GLex|Global|GlobalAssignHook|globalAssignmentHooks|GlobalHookStore|GlobalReleaseHook|Gorenstein|GradedLieAlgebras|GraphicalModels|GraphicalModelsMLE|Graphics|Graphs|GRevLex|GroebnerStrata|GroebnerWalk|GroupLex|GroupRevLex|GTZ|Hadamard|handleInterrupts|HardDegreeLimit|Heading|Headline|Heft|Height|help|Hermite|Hermitian|HH|hh|HigherCIOperators|HighestWeights|Hilbert|HodgeIntegrals|homeDirectory|HomePage|Homogeneous|Homogeneous2|HomotopyLieAlgebra|HorizontalSpace|HyperplaneArrangements|id|IgnoreExampleErrors|ii|incomparable|Increment|indeterminate|Index|indexComponents|infinity|InfoDirSection|infoHelp|Inhomogeneous|Inputs|InstallPrefix|IntegralClosure|interpreterDepth|Intersection|InvariantRing|InverseMethod|Inverses|InverseSystems|Invertible|InvolutiveBases|Item|Iterate|Jacobian|Jets|Join|Jupyter|K3Carpets|K3Surfaces|Keep|KeepFiles|KeepZeroes|Key|Keywords|Kronecker|KustinMiller|lastMatch|LatticePolytopes|Layout|Left|LengthLimit|Lex|LexIdeals|Licenses|LieTypes|Limit|Linear|LinearAlgebra|LinearTruncations|lineNumber|listLocalSymbols|listUserSymbols|LLLBases|loadDepth|LoadDocumentation|loadedFiles|loadedPackages|Local|LocalRings|LongPolynomial|M0nbar|Macaulay2Doc|MakeDocumentation|MakeHTML|MakeInfo|MakeLinks|MakePDF|MapleInterface|Markov|Matroids|maxAllowableThreads|maxExponent|MaximalRank|MaxReductionCount|MCMApproximations|minExponent|MinimalGenerators|MinimalMatrix|minimalPresentationMap|minimalPresentationMapInv|MinimalPrimes|Minimize|MinimumVersion|Miura|MixedMultiplicity|ModuleDeformations|MonodromySolver|Monomial|MonomialAlgebras|MonomialIntegerPrograms|MonomialOrbits|MonomialOrder|Monomials|MonomialSize|MultiGradedRationalMap|MultiplicitySequence|MultiplierIdeals|MultiplierIdealsDim2|MultiprojectiveVarieties|NAGtypes|Name|Nauty|NautyGraphs|NCAlgebra|NCLex|NewFromMethod|newline|NewMethod|NewOfFromMethod|NewOfMethod|nil|Node|NoetherianOperators|NoetherNormalization|NonminimalComplexes|NoPrint|Normaliz|NormalToricVarieties|notify|NTL|null|nullaryMethods|NumericalAlgebraicGeometry|NumericalCertification|NumericalImplicitization|NumericalLinearAlgebra|NumericalSchubertCalculus|NumericSolutions|OldPolyhedra|OldToricVectorBundles|OO|oo|ooo|oooo|OpenMath|operatorAttributes|OptionalComponentsPresent|Options|Order|order|OutputDictionary|Outputs|PackageCitations|PackageDictionary|PackageExports|PackageImports|PackageTemplate|PairLimit|PairsRemaining|Parametrization|Parsing|path|PencilsOfQuadrics|Permanents|PHCpack|PhylogeneticTrees|pi|PieriMaps|PlaneCurveSingularities|Points|Polyhedra|Polymake|Posets|Position|PositivityToricBundles|POSIX|Postfix|Pre|Precision|Prefix|prefixDirectory|prefixPath|PrimaryDecomposition|PrimaryTag|PrimitiveElement|Print|printingAccuracy|printingLeadLimit|printingPrecision|printingSeparator|printingTimeLimit|printingTrailLimit|printWidth|profileSummary|programPaths|Projective|Prune|PruneComplex|pruningMap|Pullback|PushForward|Python|QthPower|Quasidegrees|QuaternaryQuartics|QuillenSuslin|quit|Quotient|Radical|RadicalCodim1|RaiseError|RandomCanonicalCurves|RandomComplexes|RandomCurves|RandomCurvesOverVerySmallFiniteFields|RandomGenus14Curves|RandomIdeals|RandomMonomialIdeals|RandomObjects|RandomPlaneCurves|RandomPoints|RandomSpaceCurves|Range|RationalMaps|RationalPoints|RationalPoints2|ReactionNetworks|RealFP|RealQP|RealQP1|RealRoots|RealRR|RealXD|recursionLimit|Reduce|ReesAlgebra|References|ReflexivePolytopesDB|Regularity|RelativeCanonicalResolution|Reload|RemakeAllDocumentation|RerunExamples|ResidualIntersections|ResLengthThree|ResolutionsOfStanleyReisnerRings|restart|Result|Resultants|returnCode|Reverse|RevLex|Right|rootPath|rootURI|RunDirectory|RunExamples|RunExternalM2|Saturation|Schubert2|SchurComplexes|SchurFunctors|SchurRings|scriptCommandLine|SCSCP|SectionRing|SeeAlso|SegreClasses|SemidefiniteProgramming|Seminormalization|SeparateExec|Serialization|sheafExt|ShimoyamaYokoyama|showClassStructure|showStructure|showUserStructure|SimpleDoc|SimplicialComplexes|SimplicialDecomposability|SimplicialPosets|SimplifyFractions|SizeLimit|SkewCommutative|SlackIdeals|SLnEquivariantMatrices|SLPexpressions|Sort|SortStrategy|SourceCode|SourceRing|SpaceCurves|SparseResultants|SpechtModule|SpecialFanoFourfolds|SpectralSequences|SRdeformations|Standard|StartWithOneMinor|StatePolytope|StatGraphs|stderr|stdio|StopBeforeComputation|stopIfError|StopWithMinimalGenerators|Strategy|StronglyStableIdeals|Style|SubalgebraBases|Subnodes|SubringLimit|subscript|Sugarless|SumsOfSquares|SuperLinearAlgebra|superscript|SVDComplexes|SwitchingFields|SymbolicPowers|SymmetricPolynomials|Synopsis|Syzygies|SyzygyLimit|SyzygyMatrix|SyzygyRows|TangentCone|TateOnProducts|TensorComplexes|Test|testExample|TestIdeals|TeXmacs|Text|ThinSincereQuivers|ThreadedGB|Threshold|Topcom|topLevelMode|Tor|TorAlgebra|Toric|ToricInvariants|ToricTopology|ToricVectorBundles|TotalPairs|Tree|TriangularSets|Tries|Trim|Triplets|Tropical|true|Truncate|Truncations|TSpreadIdeals|TypicalValue|typicalValues|Undo|Unique|Units|Unmixed|Up|UpdateOnly|UpperTriangular|Usage|UseCachedExampleOutput|UseHilbertFunction|UserMode|UseSyzygies|Variable|VariableBaseName|Variables|Vasconcelos|VectorFields|VectorGraphics|Verbose|Verbosity|Verify|VersalDeformations|Version|version|VerticalSpace|viewHelp|VirtualResolutions|Visualize|WebApp|Weights|WeylAlgebra|WeylGroups|Wrap|XML)\\b"}]},"comment":{"patterns":[{"name":"comment.line.double-dash.m2","match":"(--).*$","captures":{"1":{"name":"punctuation.definition.comment.m2"}}},{"contentName":"comment.block.m2","begin":"-\\*","end":"\\*-","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.m2"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.m2"}}}]},"fields":{"patterns":[{"name":"entity.name.type.m2","match":"(ZZ|QQ)(\\/\\d+)?"}]},"keywords":{"patterns":[{"name":"keyword.control.m2","match":"(?x)(\\b|^)(and|break|catch|continue|do|elapsedTime|elapsedTiming|else|for|from|global|if|in|list|local|new|not|of|or|return|shield|SPACE|step|symbol|then|threadVariable|throw|time|timing|to|try|when|while|xor)\\b"},{"name":"keyword.operator.m2","match":"(?x)(\\b|^)(and|not|or)\\b"}]},"math":{"patterns":[{"name":"keyword.operator.arithmetic.m2","match":"(\\+|\\*)"},{"name":"constant.numeric.integer.m2","match":"(?\u003c=\\s)\\d+"}]},"strings":{"patterns":[{"name":"string.quoted.double.m2","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.m2"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.m2"}}},{"name":"string.unquoted.m2","match":"\"///\\(/?/?[^/]\\|\\(//\\)*////[^/]\\)*\\(//\\)*///\""}]}}}
|
1
|
+
{"name":"Macaulay2","scopeName":"source.m2","patterns":[{"include":"#keywords"},{"include":"#comment"},{"include":"#strings"},{"include":"#fields"},{"include":"#math"},{"include":"#autogen"}],"repository":{"autogen":{"patterns":[{"name":"entity.name.type.m2","match":"(?x)(\\b|^)(Adjacent|AffineVariety|Analyzer|ANCHOR|AngleBarList|Array|AssociativeExpression|Bag|BasicList|BettiTally|BinaryOperation|BLOCKQUOTE|BODY|BOLD|Boolean|BR|CacheFunction|CacheTable|CC|CDATA|ChainComplex|ChainComplexMap|CODE|CoherentSheaf|Command|COMMENT|CompiledFunction|CompiledFunctionBody|CompiledFunctionClosure|ComplexField|Constant|Database|DD|Descent|Describe|Dictionary|DIV|Divide|DL|DocumentTag|DT|Eliminate|EM|EngineRing|Equation|ExampleItem|Expression|File|FilePosition|FractionField|Function|FunctionApplication|FunctionBody|FunctionClosure|GaloisField|GeneralOrderedMonoid|GlobalDictionary|GradedModule|GradedModuleMap|GroebnerBasis|GroebnerBasisOptions|HashTable|HEAD|HEADER1|HEADER2|HEADER3|HEADER4|HEADER5|HEADER6|HeaderType|Holder|HR|HREF|HTML|Hybrid|Hypertext|HypertextContainer|HypertextParagraph|Ideal|IMG|ImmutableType|IndeterminateNumber|IndexedVariable|IndexedVariableTable|InexactField|InexactFieldFamily|InexactNumber|InfiniteNumber|IntermediateMarkUpType|ITALIC|Iterator|Keyword|LABEL|LATER|LI|LINK|List|LITERAL|LocalDictionary|LowerBound|Manipulator|MapExpression|MarkUpType|Matrix|MatrixExpression|MENU|META|MethodFunction|MethodFunctionBinary|MethodFunctionSingle|MethodFunctionWithOptions|Minus|Module|Monoid|MonoidElement|MonomialIdeal|MultigradedBettiTally|MutableHashTable|MutableList|MutableMatrix|Net|NetFile|NonAssociativeProduct|Nothing|Number|NumberedVerticalList|OL|OneExpression|Option|OptionTable|OrderedMonoid|Package|PARA|Parenthesize|Parser|Partition|PolynomialRing|Power|PRE|Product|ProductOrder|Program|ProgramRun|ProjectiveHilbertPolynomial|ProjectiveVariety|Pseudocode|QQ|QuotientRing|RealField|Resolution|Ring|RingElement|RingFamily|RingMap|RowExpression|RR|RRi|SCRIPT|ScriptedFunctor|SelfInitializingType|Sequence|Set|SheafExpression|SheafOfRings|SMALL|SPAN|SparseMonomialVectorExpression|SparseVectorExpression|String|STRONG|STYLE|SUB|Subscript|SUBSECTION|Sum|SumOfTwists|SUP|Superscript|Symbol|SymbolBody|TABLE|Table|Tally|Task|TD|TestInput|TEX|TH|Thing|Time|TITLE|TO|TO2|TOH|TR|TT|Type|UL|URL|Variety|Vector|VectorExpression|VerticalList|VirtualTally|VisibleList|WrapperType|ZeroExpression|ZZ)\\b"},{"name":"entity.name.function.m2","match":"(?x)(\\b|^)(about|abs|accumulate|acos|acosh|acot|acoth|addCancelTask|addDependencyTask|addEndFunction|addHook|addStartFunction|addStartTask|adjoint|agm|alarm|all|ambient|analyticSpread|ancestor|ancestors|andP|ann|annihilator|antipode|any|append|applicationDirectory|apply|applyKeys|applyPairs|applyTable|applyValues|apropos|arXiv|ascii|asin|asinh|ass|assert|associatedGradedRing|associatedPrimes|atan|atan2|atanh|atEndOfFile|autoload|baseFilename|baseName|baseRing|basis|beginDocumentation|benchmark|BesselJ|BesselY|Beta|betti|between|binomial|borel|cacheValue|cancelTask|capture|ceiling|centerString|chainComplex|changeBase|char|characters|charAnalyzer|check|checkDegrees|chi|class|clean|clearEcho|code|codim|coefficient|coefficientRing|coefficients|cohomology|coimage|coker|cokernel|collectGarbage|columnAdd|columnate|columnMult|columnPermute|columnRankProfile|columnSwap|combine|commandInterpreter|commonest|commonRing|comodule|complement|complete|components|compose|compositions|compress|concatenate|conductor|cone|conjugate|connectionCount|constParser|content|contract|conwayPolynomial|copy|copyDirectory|copyFile|cos|cosh|cot|cotangentSheaf|coth|cover|coverMap|cpuTime|createTask|csc|csch|currentColumnNumber|currentDirectory|currentPosition|currentRowNumber|currentTime|deadParser|debug|debugError|decompose|deepSplice|default|degree|degreeGroup|degreeLength|degrees|degreesMonoid|degreesRing|delete|demark|denominator|depth|describe|det|determinant|diagonalMatrix|diameter|dictionary|diff|difference|Digamma|dim|directSum|disassemble|discriminant|dismiss|distinguished|divideByVariable|doc|document|drop|dual|eagonNorthcott|echoOff|echoOn|eigenvalues|eigenvectors|eint|elements|eliminate|End|endPackage|entries|erase|erf|erfc|error|euler|eulers|even|EXAMPLE|examples|exec|exp|expectedReesIdeal|expm1|exponents|export|exportFrom|exportMutable|expression|extend|exteriorPower|factor|Fano|fileExecutable|fileExists|fileLength|fileMode|fileReadable|fileTime|fileWritable|fillMatrix|findFiles|findHeft|findProgram|findSynonyms|first|firstkey|fittingIdeal|flagLookup|flatten|flattenRing|flip|floor|fold|forceGB|fork|format|formation|frac|fraction|frames|fromDividedPowers|fromDual|functionBody|futureParser|Gamma|gb|gbRemove|gbSnapshot|gcd|gcdCoefficients|gcdLLL|GCstats|genera|generateAssertions|generator|generators|genericMatrix|genericSkewMatrix|genericSymmetricMatrix|gens|genus|get|getc|getChangeMatrix|getenv|getGlobalSymbol|getNetFile|getNonUnit|getPrimeWithRootOfUnity|getSymbol|getWWW|GF|globalAssign|globalAssignFunction|globalAssignment|globalReleaseFunction|gradedModule|gradedModuleMap|gramm|graphIdeal|graphRing|Grassmannian|groebnerBasis|groupID|hash|hashTable|heft|height|hermite|hilbertFunction|hilbertPolynomial|hilbertSeries|hold|Hom|homogenize|homology|homomorphism|hooks|horizontalJoin|html|httpHeaders|hypertext|icFracP|icFractions|icMap|icPIdeal|ideal|idealizer|identity|image|imaginaryPart|importFrom|independentSets|index|indices|inducedMap|inducesWellDefinedMap|info|input|insert|installAssignmentMethod|installedPackages|installHilbertFunction|installMethod|installMinprimes|installPackage|instance|instances|integralClosure|integrate|intersect|intersectInP|intersection|interval|inverse|inverseErf|inversePermutation|inverseRegularizedBeta|inverseRegularizedGamma|inverseSystem|irreducibleCharacteristicSeries|irreducibleDecomposition|isAffineRing|isANumber|isBorel|isc|isCanceled|isCommutative|isConstant|isDirectory|isDirectSum|isEmpty|isField|isFinite|isFinitePrimeField|isFreeModule|isGlobalSymbol|isHomogeneous|isIdeal|isInfinite|isInjective|isInputFile|isIsomorphic|isIsomorphism|isLinearType|isListener|isLLL|isMember|isModule|isMonomialIdeal|isNormal|isOpen|isOutputFile|isPolynomialRing|isPrimary|isPrime|isPrimitive|isPseudoprime|isQuotientModule|isQuotientOf|isQuotientRing|isReady|isReal|isReduction|isRegularFile|isRing|isSkewCommutative|isSorted|isSquareFree|isStandardGradedPolynomialRing|isSubmodule|isSubquotient|isSubset|isSupportedInZeroLocus|isSurjective|isTable|isUnit|isWellDefined|isWeylAlgebra|iterator|jacobian|jacobianDual|join|ker|kernel|kernelLLL|kernelOfLocalization|keys|kill|koszul|last|lcm|leadCoefficient|leadComponent|leadMonomial|leadTerm|left|length|letterParser|lift|liftable|limitFiles|limitProcesses|lines|linkFile|listForm|listSymbols|LLL|lngamma|load|loadPackage|localDictionaries|localize|locate|log|log1p|lookup|lookupCount|LUdecomposition|M2CODE|makeDirectory|makeDocumentTag|makePackageIndex|makeS2|map|markedGB|match|mathML|matrix|max|maxPosition|member|memoize|memoizeClear|memoizeValues|merge|mergePairs|method|methodOptions|methods|midpoint|min|mingens|mingle|minimalBetti|minimalPresentation|minimalPrimes|minimalReduction|minimizeFilename|minors|minPosition|minPres|minprimes|minus|mkdir|mod|module|modulo|monoid|monomialCurveIdeal|monomialIdeal|monomials|monomialSubideal|moveFile|multidegree|multidoc|multigraded|multiplicity|mutable|mutableIdentity|mutableMatrix|nanosleep|needs|needsPackage|net|netList|newClass|newCoordinateSystem|newNetFile|newPackage|newRing|next|nextkey|nextPrime|NNParser|nonspaceAnalyzer|norm|normalCone|notImplemented|nullhomotopy|nullParser|nullSpace|number|numcols|numColumns|numerator|numeric|numericInterval|numgens|numRows|numrows|odd|oeis|ofClass|on|openDatabase|openDatabaseOut|openFiles|openIn|openInOut|openListener|openOut|openOutAppend|optionalSignParser|options|optP|orP|override|pack|package|packageTemplate|pad|pager|pairs|parent|part|partition|partitions|parts|pdim|peek|permanents|permutations|pfaffians|pivots|plus|poincare|poincareN|polarize|poly|position|positions|power|powermod|precision|preimage|prepend|presentation|pretty|primaryComponent|primaryDecomposition|print|printerr|printString|processID|product|profile|Proj|projectiveHilbertPolynomial|promote|protect|prune|pseudocode|pseudoRemainder|pushForward|QQParser|QRDecomposition|quotient|quotientRemainder|radical|radicalContainment|random|randomKRationalPoint|randomMutableMatrix|rank|read|readDirectory|readlink|readPackage|realPart|realpath|recursionDepth|reducedRowEchelonForm|reduceHilbert|reductionNumber|reesAlgebra|reesAlgebraIdeal|reesIdeal|regex|regexQuote|registerFinalizer|regSeqInIdeal|regularity|regularizedBeta|regularizedGamma|relations|relativizeFilename|remainder|remove|removeDirectory|removeFile|removeLowestDimension|reorganize|replace|res|reshape|resolution|resultant|reverse|right|ring|ringFromFractions|roots|rotate|round|rowAdd|rowMult|rowPermute|rowRankProfile|rowSwap|rsort|run|runHooks|runLengthEncode|runProgram|same|saturate|scan|scanKeys|scanLines|scanPairs|scanValues|schedule|schreyerOrder|Schubert|searchPath|sec|sech|seeParsing|select|selectInSubring|selectVariables|separate|separateRegexp|sequence|serialNumber|set|setEcho|setGroupID|setIOExclusive|setIOSynchronized|setIOUnSynchronized|setRandomSeed|setup|setupEmacs|sheaf|sheafHom|show|showHtml|showTex|simpleDocFrob|sin|singularLocus|sinh|size|size2|sleep|smithNormalForm|solve|someTerms|sort|sortColumns|source|span|Spec|specialFiber|specialFiberIdeal|splice|splitWWW|sqrt|stack|stacksProject|standardForm|standardPairs|stashValue|status|style|sub|sublists|submatrix|submatrixByDegrees|subquotient|subsets|substitute|substring|subtable|sum|super|support|SVD|switch|sylvesterMatrix|symbolBody|symlinkDirectory|symlinkFile|symmetricAlgebra|symmetricAlgebraIdeal|symmetricKernel|symmetricPower|synonym|SYNOPSIS|syz|syzygyScheme|table|take|tally|tan|tangentCone|tangentSheaf|tanh|target|taskResult|temporaryFileName|tensor|tensorAssociativity|terminalParser|terms|TEST|testHunekeQuestion|tests|tex|texMath|times|toAbsolutePath|toCC|toDividedPowers|toDual|toExternalString|toField|toList|toLower|top|topCoefficients|topComponents|toRR|toRRi|toSequence|toString|toUpper|trace|transpose|trim|truncate|truncateOutput|tutorial|ultimate|unbag|uncurry|undocumented|uniform|uninstallAllPackages|uninstallPackage|unique|uniquePermutations|unsequence|unstack|urlEncode|use|userSymbols|utf8|utf8check|utf8substring|validate|value|values|variety|vars|vector|versalEmbedding|wait|wedgeProduct|weightRange|whichGm|width|wikipedia|wrap|youngest|zero|zeta|ZZParser)\\b"},{"name":"constant.other.m2","match":"(?x)(\\b|^)(AbstractToricVarieties|Acknowledgement|AdditionalPaths|AdjointIdeal|AfterEval|AfterNoPrint|AfterPrint|AInfinity|AlgebraicSplines|Algorithm|Alignment|AllCodimensions|allowableThreads|AnalyzeSheafOnP1|applicationDirectorySuffix|argument|Ascending|AssociativeAlgebras|Authors|AuxiliaryFiles|backtrace|Bareiss|BaseFunction|baseRings|BaseRow|BasisElementLimit|Bayer|BeforePrint|BeginningMacaulay2|Benchmark|Bertini|BettiCharacters|BGG|BIBasis|Binary|Binomial|BinomialEdgeIdeals|Binomials|BKZ|blockMatrixForm|Body|BoijSoederberg|Book3264Examples|BooleanGB|Boxes|Browse|Bruns|cache|CacheExampleOutput|CallLimit|CannedExample|CatalanConstant|Caveat|Center|Certification|ChainComplexExtras|ChainComplexOperations|ChangeMatrix|CharacteristicClasses|CheckDocumentation|Chordal|Classic|clearAll|clearOutput|close|closeIn|closeOut|ClosestFit|Code|CodimensionLimit|CodingTheory|CoefficientRing|Cofactor|CohenEngine|CohenTopLevel|CohomCalg|CoincidentRootLoci|commandLine|compactMatrixForm|Complement|CompleteIntersection|CompleteIntersectionResolutions|Complexes|ConductorElement|Configuration|ConformalBlocks|Consequences|Constants|Contributors|ConvexInterface|ConwayPolynomials|copyright|Core|CorrespondenceScrolls|CotangentSchubert|Cremona|currentFileDirectory|currentFileName|currentLayout|currentPackage|Cyclotomic|Date|dd|DebuggingMode|debuggingMode|debugLevel|DecomposableSparseSystems|Decompose|Default|defaultPrecision|Degree|DegreeGroup|DegreeLift|DegreeLimit|DegreeMap|DegreeOrder|DegreeRank|Degrees|Dense|Density|Depth|Descending|Description|DeterminantalRepresentations|DGAlgebras|dictionaryPath|DiffAlg|Dispatch|DivideConquer|DividedPowers|Divisor|Dmodules|docExample|docTemplate|Down|Dynamic|EagonResolution|EdgeIdeals|edit|EigenSolver|EisenbudHunekeVasconcelos|Elimination|EliminationMatrices|EllipticCurves|EllipticIntegrals|Email|end|endl|Engine|engineDebugLevel|EngineTests|EnumerationCurves|environment|EquivariantGB|errorDepth|EulerConstant|Example|ExampleFiles|ExampleSystems|Exclude|exit|Ext|ExteriorIdeals|ExteriorModules|false|FastMinors|FastNonminimal|FGLM|fileDictionaries|fileExitHooks|FileName|FindOne|FiniteFittingIdeals|First|FirstPackage|FlatMonoid|Flexible|flush|FollowLinks|ForeignFunctions|FormalGroupLaws|Format|FourierMotzkin|FourTiTwo|fpLLL|FrobeniusThresholds|FunctionFieldDesingularization|GBDegrees|gbTrace|GenerateAssertions|Generic|GenericInitialIdeal|GeometricDecomposability|gfanInterface|Givens|GKMVarieties|GLex|Global|GlobalAssignHook|globalAssignmentHooks|GlobalHookStore|GlobalReleaseHook|Gorenstein|GradedLieAlgebras|GraphicalModels|GraphicalModelsMLE|Graphics|Graphs|GRevLex|GroebnerStrata|GroebnerWalk|GroupLex|GroupRevLex|GTZ|Hadamard|handleInterrupts|HardDegreeLimit|Heading|Headline|Heft|Height|help|Hermite|Hermitian|HH|hh|HigherCIOperators|HighestWeights|Hilbert|HodgeIntegrals|homeDirectory|HomePage|Homogeneous|Homogeneous2|HomotopyLieAlgebra|HorizontalSpace|HyperplaneArrangements|id|IgnoreExampleErrors|ii|incomparable|Increment|indeterminate|Index|indexComponents|infinity|InfoDirSection|infoHelp|Inhomogeneous|Inputs|InstallPrefix|IntegralClosure|interpreterDepth|Intersection|InvariantRing|InverseMethod|Inverses|InverseSystems|Invertible|InvolutiveBases|Isomorphism|Item|Iterate|Jacobian|Jets|Join|JSON|Jupyter|K3Carpets|K3Surfaces|Keep|KeepFiles|KeepZeroes|Key|Keywords|Kronecker|KustinMiller|lastMatch|LatticePolytopes|Layout|Left|LengthLimit|Lex|LexIdeals|Licenses|LieTypes|Limit|Linear|LinearAlgebra|LinearTruncations|lineNumber|listLocalSymbols|listUserSymbols|LLLBases|loadDepth|LoadDocumentation|loadedFiles|loadedPackages|Local|LocalRings|LongPolynomial|M0nbar|Macaulay2Doc|MakeDocumentation|MakeHTML|MakeInfo|MakeLinks|MakePDF|MapleInterface|Markov|Matroids|maxAllowableThreads|maxExponent|MaximalRank|MaxReductionCount|MCMApproximations|MergeTeX|minExponent|MinimalGenerators|MinimalMatrix|minimalPresentationMap|minimalPresentationMapInv|MinimalPrimes|Minimize|MinimumVersion|Miura|MixedMultiplicity|ModuleDeformations|MonodromySolver|Monomial|MonomialAlgebras|MonomialIntegerPrograms|MonomialOrbits|MonomialOrder|Monomials|MonomialSize|MultiGradedRationalMap|MultiplicitySequence|MultiplierIdeals|MultiplierIdealsDim2|MultiprojectiveVarieties|NAGtypes|Name|Nauty|NautyGraphs|NCAlgebra|NCLex|NewFromMethod|newline|NewMethod|NewOfFromMethod|NewOfMethod|nil|Node|NoetherianOperators|NoetherNormalization|NonminimalComplexes|NoPrint|Normaliz|NormalToricVarieties|notify|NTL|null|nullaryMethods|NumericalAlgebraicGeometry|NumericalCertification|NumericalImplicitization|NumericalLinearAlgebra|NumericalSchubertCalculus|NumericSolutions|OldPolyhedra|OldToricVectorBundles|OnlineLookup|OO|oo|ooo|oooo|OpenMath|operatorAttributes|OptionalComponentsPresent|Options|Order|order|OutputDictionary|Outputs|PackageCitations|PackageDictionary|PackageExports|PackageImports|PackageTemplate|PairLimit|PairsRemaining|Parametrization|Parsing|path|PencilsOfQuadrics|Permanents|PHCpack|PhylogeneticTrees|pi|PieriMaps|PlaneCurveSingularities|Points|Polyhedra|Polymake|Posets|Position|PositivityToricBundles|POSIX|Postfix|Pre|Precision|Prefix|prefixDirectory|prefixPath|PrimaryDecomposition|PrimaryTag|PrimitiveElement|Print|printingAccuracy|printingLeadLimit|printingPrecision|printingSeparator|printingTimeLimit|printingTrailLimit|printWidth|Probability|profileSummary|programPaths|Projective|Prune|PruneComplex|pruningMap|PseudomonomialPrimaryDecomposition|Pullback|PushForward|Python|QthPower|Quasidegrees|QuaternaryQuartics|QuillenSuslin|quit|Quotient|Radical|RadicalCodim1|RaiseError|RandomCanonicalCurves|RandomComplexes|RandomCurves|RandomCurvesOverVerySmallFiniteFields|RandomGenus14Curves|RandomIdeals|RandomMonomialIdeals|RandomObjects|RandomPlaneCurves|RandomPoints|RandomSpaceCurves|Range|RationalMaps|RationalPoints|RationalPoints2|ReactionNetworks|RealFP|RealQP|RealQP1|RealRoots|RealRR|RealXD|recursionLimit|Reduce|ReesAlgebra|References|ReflexivePolytopesDB|Regularity|RelativeCanonicalResolution|Reload|RemakeAllDocumentation|RerunExamples|ResidualIntersections|ResLengthThree|ResolutionsOfStanleyReisnerRings|restart|Result|Resultants|returnCode|Reverse|RevLex|Right|rootPath|rootURI|RunDirectory|RunExamples|RunExternalM2|Saturation|Schubert2|SchurComplexes|SchurFunctors|SchurRings|scriptCommandLine|SCSCP|SectionRing|SeeAlso|SegreClasses|SemidefiniteProgramming|Seminormalization|SeparateExec|Serialization|sheafExt|ShimoyamaYokoyama|showClassStructure|showStructure|showUserStructure|SimpleDoc|SimplicialComplexes|SimplicialDecomposability|SimplicialPosets|SimplifyFractions|SizeLimit|SkewCommutative|SlackIdeals|SLnEquivariantMatrices|SLPexpressions|Sort|SortStrategy|SourceCode|SourceRing|SpaceCurves|SparseResultants|SpechtModule|SpecialFanoFourfolds|SpectralSequences|SRdeformations|Standard|StartWithOneMinor|StatePolytope|StatGraphs|stderr|stdio|StopBeforeComputation|stopIfError|StopIteration|StopWithMinimalGenerators|Strategy|Strict|StronglyStableIdeals|Style|SubalgebraBases|Subnodes|SubringLimit|subscript|Sugarless|SumsOfSquares|SuperLinearAlgebra|superscript|SVDComplexes|SwitchingFields|SymbolicPowers|SymmetricPolynomials|Synopsis|Syzygies|SyzygyLimit|SyzygyMatrix|SyzygyRows|TangentCone|TateOnProducts|TensorComplexes|Test|testExample|TestIdeals|TeXmacs|Text|ThinSincereQuivers|ThreadedGB|Threshold|Topcom|topLevelMode|Tor|TorAlgebra|Toric|ToricInvariants|ToricTopology|ToricVectorBundles|Torsion|TotalPairs|Tree|TriangularSets|Triangulations|Tries|Trim|Triplets|Tropical|true|Truncate|Truncations|TSpreadIdeals|TypicalValue|typicalValues|Undo|Unique|Units|Unmixed|Up|UpdateOnly|UpperTriangular|Usage|UseCachedExampleOutput|UseHilbertFunction|UserMode|UseSyzygies|Variable|VariableBaseName|Variables|Vasconcelos|VectorFields|VectorGraphics|Verbose|Verbosity|Verify|VersalDeformations|Version|version|VerticalSpace|viewHelp|VirtualResolutions|Visualize|WebApp|Weights|WeylAlgebra|WeylGroups|WhitneyStratifications|Wrap|XML)\\b"}]},"comment":{"patterns":[{"name":"comment.line.double-dash.m2","match":"(--).*$","captures":{"1":{"name":"punctuation.definition.comment.m2"}}},{"contentName":"comment.block.m2","begin":"-\\*","end":"\\*-","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.m2"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.m2"}}}]},"fields":{"patterns":[{"name":"entity.name.type.m2","match":"(ZZ|QQ)(\\/\\d+)?"}]},"keywords":{"patterns":[{"name":"keyword.control.m2","match":"(?x)(\\b|^)(and|break|catch|continue|do|elapsedTime|elapsedTiming|else|for|from|global|if|in|list|local|new|not|of|or|return|shield|SPACE|step|symbol|then|threadVariable|throw|time|timing|to|try|when|while|xor)\\b"},{"name":"keyword.operator.m2","match":"(?x)(\\b|^)(and|not|or)\\b"}]},"math":{"patterns":[{"name":"keyword.operator.arithmetic.m2","match":"(\\+|\\*)"},{"name":"constant.numeric.integer.m2","match":"(?\u003c=\\s)\\d+"}]},"strings":{"patterns":[{"name":"string.quoted.double.m2","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.m2"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.m2"}}},{"name":"string.unquoted.m2","match":"\"///\\(/?/?[^/]\\|\\(//\\)*////[^/]\\)*\\(//\\)*///\""}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"scopeName":"source.mermaid.flowchart","patterns":[{"include":"#main"}],"repository":{"class":{"name":"meta.class.statement.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))class(?=$|\\s|;)","end":"([\\w$\u0026]+)?[ \\t]*(?=$|;)","patterns":[{"name":"entity.name.tag.node.mermaid","match":"([\\w$\u0026]+)(?=$|\\s|;|,)"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"storage.type.style-assignment.mermaid"}},"endCaptures":{"1":{"name":"entity.name.class.mermaid"}}},"click":{"name":"meta.click.statement.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))(click)(?=$|\\s|;)(?:\\s+([\\w$\u0026]+))?","end":"[ \\t]*$|(?=;)","patterns":[{"include":"#click-href"},{"include":"#click-call"}],"beginCaptures":{"1":{"name":"storage.type.interactive-command.mermaid"},"2":{"name":"entity.name.tag.node.mermaid"}}},"click-call":{"name":"meta.callback-assignment.mermaid","begin":"\\G\\s+(?:(call)(?=$|\\s|;)[ \\t]*|(?=[^\\s\\(%;\"']))","end":"[ \\t]*$|(?=;)","patterns":[{"name":"meta.callback-reference.mermaid","begin":"\\G[^\\s\\(%;\"']+","end":"(?!\\G)|(?=[ \\t]*(?:$|;))","patterns":[{"name":"meta.callback-arguments.mermaid","begin":"\\G\\(","end":"\\)","patterns":[{"name":"variable.parameter.function.mermaid","match":"[^\\s,\\)%;]+"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.mermaid"}}}],"beginCaptures":{"0":{"name":"entity.name.function.callback.mermaid"}}},{"include":"#tooltip"}],"beginCaptures":{"1":{"name":"storage.modifier.callback-assignment.mermaid"}}},"click-href":{"name":"meta.link-assignment.mermaid","begin":"\\G\\s+(?:(href)(?=$|\\s|;)[ \\t]*|(?=[\"']))","end":"[ \\t]*$|(?=;)","patterns":[{"begin":"\\G(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#url"}]},{"include":"#tooltip"},{"include":"#target-name"}],"beginCaptures":{"1":{"name":"storage.modifier.link-assignment.mermaid"}}},"link":{"patterns":[{"name":"meta.labelled-link.delimited.mermaid","contentName":"string.quoted.other.link-label.mermaid","begin":"([xo\u003c]?(?:--+[-xo\u003e]|==+[=xo\u003e]|-?\\.+-[xo\u003e]?))\\s*(\\|)[ \\t]*","end":"\\s*(\\|)","beginCaptures":{"1":{"patterns":[{"include":"#link"}]},"2":{"name":"keyword.operator.link-label.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link-label.end.mermaid"}}},{"name":"keyword.operator.link.thin.mermaid","match":"[xo\u003c]?--+[-xo\u003e]"},{"name":"keyword.operator.link.thick.mermaid","match":"[xo\u003c]?==+[=xo\u003e]"},{"name":"keyword.operator.link.dotted.mermaid","match":"[xo\u003c]?-?\\.+-[xo\u003e]?"},{"name":"meta.labelled-link.mermaid","contentName":"string.unquoted.link-label.mermaid","begin":"([xo\u003c]?--)[ \\t]*","end":"\\s*([xo\u003c]?--+[-xo\u003e])","beginCaptures":{"1":{"name":"keyword.operator.link.thin.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link.thin.end.mermaid"}}},{"name":"meta.link.thick.labelled.unpiped.mermaid","contentName":"string.unquoted.link-label.mermaid","begin":"([xo\u003c]?==)[ \\t]*","end":"\\s*([xo\u003c]?==+[=xo\u003e])","beginCaptures":{"1":{"name":"keyword.operator.link.thick.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link.thick.end.mermaid"}}},{"name":"meta.link.dotted.labelled.unpiped.mermaid","contentName":"string.unquoted.link-label.mermaid","begin":"([xo\u003c]?-\\.)[ \\t]*","end":"\\s*([xo\u003c]?-?\\.+-[xo\u003e]?)","beginCaptures":{"1":{"name":"keyword.operator.link.dotted.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link.dotted.end.mermaid"}}}]},"main":{"patterns":[{"include":"source.mermaid#a11y"},{"include":"#style"},{"include":"#class"},{"include":"#click"},{"include":"#link"},{"include":"#subgraph"},{"include":"#node"},{"include":"source.mermaid#terminator"},{"include":"source.mermaid#directive"},{"include":"source.mermaid#comment"}]},"node":{"name":"meta.node.statement.mermaid","begin":"[\\w$\u0026]+","end":"(?!\\G)|(?=\\s*(?:$|;))","patterns":[{"name":"string.unquoted.node-text.polygon.mermaid","begin":"\\G(\\[[/\\\\])","end":"(([\\\\/]\\]))|((?:[^\\r\\n\\]]|(?\u003c![\\\\/])\\])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.stadium.mermaid","begin":"\\G(\\(\\[)","end":"((\\]\\)))|((?:[^\\r\\n)]|(?\u003c!\\])\\))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.cylinder.mermaid","begin":"\\G(\\[\\()","end":"((\\)\\]))|((?:[^\\r\\n)]|\\)(?!\\]))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.subroutine.mermaid","begin":"\\G(\\[\\[)","end":"((\\]\\]))|((?:[^\\r\\n\\]]|(?\u003c!\\])\\])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.rectangle-with-props.mermaid","begin":"\\G((\\[\\|))([A-Za-z]+)((:))([A-Za-z]+)((\\|))(?!\\])","end":"((\\|\\]))|((?:[^\\r\\n\\]]|(?\u003c!\\|)\\])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"entity.other.attribute-name.class.mermaid"},"4":{"name":"punctuation.separator.key-value.colon.mermaid"},"5":{"name":"sublimelinter.gutter-mark.mermaid"},"6":{"name":"constant.other.attribute-value.mermaid"},"7":{"name":"punctuation.separator.pipe.mermaid"},"8":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.square.mermaid","begin":"\\G(\\[)","end":"((\\]))|([^\\r\\n\\]]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.double-circle.mermaid","begin":"\\G(\\({3})","end":"((\\){3}))|((?:[^\\r\\n)]|(?\u003c!\\)\\))\\))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.circle.mermaid","begin":"\\G(\\({2})","end":"((\\){2}))|((?:(?\u003c!\\))\\)(?!\\))|[^\\r\\n)])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.ellipse.mermaid","begin":"\\G(\\(-)","end":"((-\\)))|((?:[^-\\r\\n)]|-(?!\\)))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.round.mermaid","begin":"\\G(\\()","end":"((\\)))|([^\\r\\n)]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.hexagon.mermaid","begin":"\\G({{)","end":"((}}))|((?:[^\\r\\n}]|}(?!}))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.diamond.mermaid","begin":"\\G({)","end":"((}))|([^\\r\\n}]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"name":"string.unquoted.node-text.ribbon.mermaid","begin":"\\G(\u003e)","end":"((\\]))|([^\\r\\n\\]]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"invalid.illegal.unclosed-string.mermaid","patterns":[{"include":"#br"}]}}},{"match":"(?\u003c=\\S)(:::)(?:(?:(default)|([\\w$\u0026]+))(?:\\b|(?\u003c=[$\u0026])))?","captures":{"1":{"name":"keyword.operator.node-class.mermaid"},"2":{"name":"constant.language.default-styling.mermaid"},"3":{"name":"entity.name.class.mermaid"}}},{"match":"\\s+(\u0026)(?:$|[ \\t]+)","captures":{"1":{"name":"keyword.operator.logical.and.mermaid"}}},{"include":"#link"}],"beginCaptures":{"0":{"name":"entity.name.tag.node.mermaid"}},"applyEndPatternLast":true},"node-innards":{"patterns":[{"name":"string.quoted.double.mermaid","begin":"\\G\"","end":"(\")|([^\"]+)$","patterns":[{"include":"#br"},{"include":"#entity"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"invalid.illegal.unclosed-string.mermaid"}}},{"name":"string.quoted.single.mermaid","begin":"\\G'","end":"(')|([^']+)$","patterns":[{"include":"#br"},{"include":"#entity"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"invalid.illegal.unclosed-string.mermaid"}}},{"include":"#br"},{"include":"#entity"}]},"style":{"name":"meta.$1.statement.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))(style|classDef|linkStyle)(?=$|\\s|;)","end":"[ \\t]*$|(?=;)","patterns":[{"match":"(?\u003c=style)\\G\\s+([\\w$\u0026]+)","captures":{"1":{"name":"entity.name.tag.node.mermaid"}}},{"match":"(?\u003c=classDef)\\G\\s+(?:(default)|([\\w$\u0026]+))(?:\\b|(?\u003c=[$\u0026]))","captures":{"1":{"name":"constant.language.default-styling.mermaid"},"2":{"name":"entity.name.class.mermaid"}}},{"match":"(?\u003c=linkStyle)\\G\\s+(?:(default)|([,\\d]+))(?:\\s+(interpolate)\\s+([\\w$\u0026]+))?(?=$|\\s|;)","captures":{"1":{"name":"constant.language.default-styling.mermaid"},"2":{"name":"meta.link-indexes.mermaid","patterns":[{"name":"constant.numeric.integer.link-index.mermaid","match":"\\d+"},{"include":"#comma"}]},"3":{"name":"keyword.operator.interpolation-type.mermaid"},"4":{"name":"support.constant.interpolation-type.mermaid"}}},{"include":"source.mermaid#inline-css"}],"beginCaptures":{"0":{"name":"storage.type.style-definition.mermaid"}}},"subgraph":{"name":"meta.subgraph.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))subgraph(?=$|\\s|;)","end":"(?:\\G|^|(?\u003c=\\s|;|%%))end(?=$|\\s|;)","patterns":[{"begin":"\\G\\s+([\\w$\u0026]+)[ \\t]*","end":"(?!\\G)|(?=[ \\t]*(?:$|;))","patterns":[{"name":"string.unquoted.subgraph-title.mermaid","begin":"\\G(\\[)","end":"(\\])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}}}],"beginCaptures":{"1":{"name":"entity.name.subgraph.mermaid"}}},{"include":"source.mermaid#direction"},{"include":"#main"}],"beginCaptures":{"0":{"name":"keyword.control.subgraph.begin.mermaid"}},"endCaptures":{"0":{"name":"keyword.control.subgraph.end.mermaid"}}},"target-name":{"name":"constant.language.link-target.mermaid","match":"(?\u003c=\\s|;|%%)(_)[-\\w]+(?=$|\\s|;|%%)","captures":{"1":{"name":"punctuation.definition.link-target.mermaid"}}},"tooltip":{"name":"string.quoted.double.callback-tooltip.mermaid","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"}}},"url":{"patterns":[{"name":"string.quoted.double.link-destination.mermaid","contentName":"string.other.link.mermaid","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"}}},{"name":"string.quoted.single.link-destination.mermaid","contentName":"string.other.link.mermaid","begin":"'","end":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"}}}]}}}
|
1
|
+
{"scopeName":"source.mermaid.flowchart","patterns":[{"include":"#main"}],"repository":{"class":{"name":"meta.class.statement.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))class(?=$|\\s|;)","end":"([\\w$\u0026]+)?[ \\t]*(?=$|;)","patterns":[{"name":"entity.name.tag.node.mermaid","match":"([\\w$\u0026]+)(?=$|\\s|;|,)"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"storage.type.style-assignment.mermaid"}},"endCaptures":{"1":{"name":"entity.name.class.mermaid"}}},"click":{"name":"meta.click.statement.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))(click)(?=$|\\s|;)(?:\\s+([\\w$\u0026]+))?","end":"[ \\t]*$|(?=;)","patterns":[{"include":"#click-href"},{"include":"#click-call"}],"beginCaptures":{"1":{"name":"storage.type.interactive-command.mermaid"},"2":{"name":"entity.name.tag.node.mermaid"}}},"click-call":{"name":"meta.callback-assignment.mermaid","begin":"\\G\\s+(?:(call)(?=$|\\s|;)[ \\t]*|(?=[^\\s\\(%;\"']))","end":"[ \\t]*$|(?=;)","patterns":[{"name":"meta.callback-reference.mermaid","begin":"\\G[^\\s\\(%;\"']+","end":"(?!\\G)|(?=[ \\t]*(?:$|;))","patterns":[{"name":"meta.callback-arguments.mermaid","begin":"\\G\\(","end":"\\)","patterns":[{"name":"variable.parameter.function.mermaid","match":"[^\\s,\\)%;]+"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.mermaid"}}}],"beginCaptures":{"0":{"name":"entity.name.function.callback.mermaid"}}},{"include":"#tooltip"}],"beginCaptures":{"1":{"name":"storage.modifier.callback-assignment.mermaid"}}},"click-href":{"name":"meta.link-assignment.mermaid","begin":"\\G\\s+(?:(href)(?=$|\\s|;)[ \\t]*|(?=[\"']))","end":"[ \\t]*$|(?=;)","patterns":[{"begin":"\\G(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#url"}]},{"include":"#tooltip"},{"include":"#target-name"}],"beginCaptures":{"1":{"name":"storage.modifier.link-assignment.mermaid"}}},"html":{"patterns":[{"include":"source.mermaid#br"},{"include":"source.mermaid#entity"}]},"link":{"patterns":[{"name":"meta.labelled-link.delimited.mermaid","contentName":"string.quoted.other.link-label.mermaid","begin":"([xo\u003c]?(?:--+[-xo\u003e]|==+[=xo\u003e]|-?\\.+-[xo\u003e]?))\\s*(\\|)[ \\t]*","end":"\\s*(\\|)","beginCaptures":{"1":{"patterns":[{"include":"#link"}]},"2":{"name":"keyword.operator.link-label.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link-label.end.mermaid"}}},{"name":"keyword.operator.link.thin.mermaid","match":"[xo\u003c]?--+[-xo\u003e]"},{"name":"keyword.operator.link.thick.mermaid","match":"[xo\u003c]?==+[=xo\u003e]"},{"name":"keyword.operator.link.dotted.mermaid","match":"[xo\u003c]?-?\\.+-[xo\u003e]?"},{"name":"meta.labelled-link.mermaid","contentName":"string.unquoted.link-label.mermaid","begin":"([xo\u003c]?--)[ \\t]*","end":"\\s*([xo\u003c]?--+[-xo\u003e])","beginCaptures":{"1":{"name":"keyword.operator.link.thin.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link.thin.end.mermaid"}}},{"name":"meta.link.thick.labelled.unpiped.mermaid","contentName":"string.unquoted.link-label.mermaid","begin":"([xo\u003c]?==)[ \\t]*","end":"\\s*([xo\u003c]?==+[=xo\u003e])","beginCaptures":{"1":{"name":"keyword.operator.link.thick.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link.thick.end.mermaid"}}},{"name":"meta.link.dotted.labelled.unpiped.mermaid","contentName":"string.unquoted.link-label.mermaid","begin":"([xo\u003c]?-\\.)[ \\t]*","end":"\\s*([xo\u003c]?-?\\.+-[xo\u003e]?)","beginCaptures":{"1":{"name":"keyword.operator.link.dotted.begin.mermaid"}},"endCaptures":{"1":{"name":"keyword.operator.link.dotted.end.mermaid"}}}]},"main":{"patterns":[{"include":"source.mermaid#a11y"},{"include":"#style"},{"include":"#class"},{"include":"#click"},{"include":"#link"},{"include":"#subgraph"},{"include":"#node"},{"include":"source.mermaid#terminator"},{"include":"source.mermaid#directive"},{"include":"source.mermaid#comment"}]},"node":{"name":"meta.node.statement.mermaid","begin":"[\\w$\u0026]+","end":"(?!\\G)|(?=\\s*(?:$|;))","patterns":[{"include":"#node-shapes"},{"include":"#node-class-shorthand"},{"include":"#node-combinator"},{"include":"#link"}],"beginCaptures":{"0":{"name":"entity.name.tag.node.mermaid"}},"applyEndPatternLast":true},"node-class-shorthand":{"match":"(?\u003c=\\S)(:::)(?:(?:(default)|([\\w$\u0026]+))(?:\\b|(?\u003c=[$\u0026])))?","captures":{"1":{"name":"keyword.operator.node-class.mermaid"},"2":{"name":"constant.language.default-styling.mermaid"},"3":{"name":"entity.name.class.mermaid"}}},"node-combinator":{"match":"\\s+(\u0026)(?:$|[ \\t]+)","captures":{"1":{"name":"keyword.operator.logical.and.mermaid"}}},"node-innards":{"patterns":[{"name":"string.quoted.double.mermaid","begin":"\\G\"","end":"(\")|([^\"]+)$","patterns":[{"include":"#html"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"patterns":[{"include":"#unclosed-string"}]}}},{"name":"string.quoted.single.mermaid","begin":"\\G'","end":"(')|([^']+)$","patterns":[{"include":"#html"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"patterns":[{"include":"#unclosed-string"}]}}},{"include":"#html"}]},"node-shape-circle":{"name":"string.unquoted.node-text.circle.mermaid","begin":"\\G(\\({2})","end":"((\\){2}))|((?:(?\u003c!\\))\\)(?!\\))|[^\\r\\n)])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-cylinder":{"name":"string.unquoted.node-text.cylinder.mermaid","begin":"\\G(\\[\\()","end":"((\\)\\]))|((?:[^\\r\\n)]|\\)(?!\\]))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-diamond":{"name":"string.unquoted.node-text.diamond.mermaid","begin":"\\G({)","end":"((}))|([^\\r\\n}]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-double-circle":{"name":"string.unquoted.node-text.double-circle.mermaid","begin":"\\G(\\({3})","end":"((\\){3}))|((?:[^\\r\\n)]|(?\u003c!\\)\\))\\))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-ellipse":{"name":"string.unquoted.node-text.ellipse.mermaid","begin":"\\G(\\(-)","end":"((-\\)))|((?:[^-\\r\\n)]|-(?!\\)))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-hexagon":{"name":"string.unquoted.node-text.hexagon.mermaid","begin":"\\G({{)","end":"((}}))|((?:[^\\r\\n}]|}(?!}))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-polygon":{"name":"string.unquoted.node-text.polygon.mermaid","begin":"\\G(\\[[/\\\\])","end":"(([\\\\/]\\]))|((?:[^\\r\\n\\]]|(?\u003c![\\\\/])\\])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-rectangle-with-props":{"name":"string.unquoted.node-text.rectangle-with-props.mermaid","begin":"\\G((\\[\\|))([A-Za-z]+)((:))([A-Za-z]+)((\\|))(?!\\])","end":"((\\|\\]))|((?:[^\\r\\n\\]]|(?\u003c!\\|)\\])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"name":"entity.other.attribute-name.class.mermaid"},"4":{"name":"punctuation.separator.key-value.colon.mermaid"},"5":{"name":"sublimelinter.gutter-mark.mermaid"},"6":{"name":"constant.other.attribute-value.mermaid"},"7":{"name":"punctuation.separator.pipe.mermaid"},"8":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-ribbon":{"name":"string.unquoted.node-text.ribbon.mermaid","begin":"\\G(\u003e)","end":"((\\]))|([^\\r\\n\\]]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-round":{"name":"string.unquoted.node-text.round.mermaid","begin":"\\G(\\()","end":"((\\)))|([^\\r\\n)]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-square":{"name":"string.unquoted.node-text.square.mermaid","begin":"\\G(\\[)","end":"((\\]))|([^\\r\\n\\]]+)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-stadium":{"name":"string.unquoted.node-text.stadium.mermaid","begin":"\\G(\\(\\[)","end":"((\\]\\)))|((?:[^\\r\\n)]|(?\u003c!\\])\\))++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shape-subroutine":{"name":"string.unquoted.node-text.subroutine.mermaid","begin":"\\G(\\[\\[)","end":"((\\]\\]))|((?:[^\\r\\n\\]]|(?\u003c!\\])\\])++)$","patterns":[{"include":"#node-innards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"#unclosed-string"}]}}},"node-shapes":{"patterns":[{"include":"#node-shape-polygon"},{"include":"#node-shape-stadium"},{"include":"#node-shape-cylinder"},{"include":"#node-shape-subroutine"},{"include":"#node-shape-rectangle-with-props"},{"include":"#node-shape-square"},{"include":"#node-shape-double-circle"},{"include":"#node-shape-circle"},{"include":"#node-shape-ellipse"},{"include":"#node-shape-round"},{"include":"#node-shape-hexagon"},{"include":"#node-shape-diamond"},{"include":"#node-shape-ribbon"}]},"style":{"name":"meta.$1.statement.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))(style|classDef|linkStyle)(?=$|\\s|;)","end":"[ \\t]*$|(?=;)","patterns":[{"match":"(?\u003c=style)\\G\\s+([\\w$\u0026]+)","captures":{"1":{"name":"entity.name.tag.node.mermaid"}}},{"match":"(?\u003c=classDef)\\G\\s+(?:(default)|([\\w$\u0026]+))(?:\\b|(?\u003c=[$\u0026]))","captures":{"1":{"name":"constant.language.default-styling.mermaid"},"2":{"name":"entity.name.class.mermaid"}}},{"match":"(?\u003c=linkStyle)\\G\\s+(?:(default)|([,\\d]+))(?:\\s+(interpolate)\\s+([\\w$\u0026]+))?(?=$|\\s|;)","captures":{"1":{"name":"constant.language.default-styling.mermaid"},"2":{"name":"meta.link-indexes.mermaid","patterns":[{"name":"constant.numeric.integer.link-index.mermaid","match":"\\d+"},{"include":"#comma"}]},"3":{"name":"keyword.operator.interpolation-type.mermaid"},"4":{"name":"support.constant.interpolation-type.mermaid"}}},{"include":"source.mermaid#inline-css"}],"beginCaptures":{"0":{"name":"storage.type.style-definition.mermaid"}}},"subgraph":{"name":"meta.subgraph.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))subgraph(?=$|\\s|;)","end":"(?:\\G|^|(?\u003c=\\s|;|%%))end(?=$|\\s|;)","patterns":[{"begin":"\\G\\s+([\\w$\u0026]+)[ \\t]*","end":"(?!\\G)|(?=[ \\t]*(?:$|;))","patterns":[{"name":"string.unquoted.subgraph-title.mermaid","begin":"\\G(\\[)","end":"(\\])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}}}],"beginCaptures":{"1":{"name":"entity.name.subgraph.mermaid"}}},{"include":"source.mermaid#direction"},{"include":"#main"}],"beginCaptures":{"0":{"name":"keyword.control.subgraph.begin.mermaid"}},"endCaptures":{"0":{"name":"keyword.control.subgraph.end.mermaid"}}},"target-name":{"name":"constant.language.link-target.mermaid","match":"(?\u003c=\\s|;|%%)(_)[-\\w]+(?=$|\\s|;|%%)","captures":{"1":{"name":"punctuation.definition.link-target.mermaid"}}},"tooltip":{"name":"string.quoted.double.callback-tooltip.mermaid","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"}}},"unclosed-string":{"name":"invalid.illegal.unclosed-string.mermaid","match":"(?:^|\\G).+","captures":{"0":{"patterns":[{"include":"#html"}]}}},"url":{"patterns":[{"name":"string.quoted.double.link-destination.mermaid","contentName":"string.other.link.mermaid","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"}}},{"name":"string.quoted.single.link-destination.mermaid","contentName":"string.other.link.mermaid","begin":"'","end":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.mermaid"}}}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"Mermaid","scopeName":"source.mermaid","patterns":[{"include":"#main"}],"repository":{"a11y":{"name":"meta.a11y-option.${1:/downcase}.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))acc(Title|Descr)(?:(?=\\s*[:{])|[ \\t]*$)","end":"(?!\\G)","patterns":[{"include":"#a11y-innards"},{"begin":"\\G$","end":"(?!\\G)","patterns":[{"begin":"\\G","end":"(?=\\S)"},{"begin":"(?=:|{)","end":"(?!\\G)","patterns":[{"include":"#a11y-innards"}]}],"applyEndPatternLast":true}],"beginCaptures":{"0":{"name":"variable.assignment.accessibility.mermaid"}}},"a11y-innards":{"patterns":[{"contentName":"string.unquoted.directive-value.single-line.mermaid","begin":"\\G\\s*(:)[ \\t]*","end":"[ \\t]*$","beginCaptures":{"1":{"name":"keyword.operator.assignment.key-value.colon"}}},{"contentName":"string.quoted.other.curly.brackets.directive-value.multi-line.mermaid","begin":"\\G\\s*({)[ \\t]*","end":"[ \\t]*(})","beginCaptures":{"1":{"name":"punctuation.definition.string.curly.bracket.begin.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.curly.bracket.end.mermaid"}}}]},"br":{"name":"text.embedded.html.basic","match":"(?i)\u003cbr\\s*/?\u003e","captures":{"0":{"patterns":[{"include":"text.html.basic"}]}}},"brace":{"patterns":[{"name":"punctuation.definition.class.block.begin.mermaid","match":"{","captures":{"0":{"name":"sublimelinter.gutter-mark"}}},{"name":"punctuation.definition.class.block.end.mermaid","match":"}","captures":{"0":{"name":"sublimelinter.gutter-mark"}}}]},"c4c-diagram":{"name":"meta.c4c-diagram.c4-${2:/downcase}.mermaid","begin":"^[ \\t]*(C4(Component|Container|Context|Deployment|Dynamic))(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.c4c-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.c4c-diagram.begin.mermaid"}}},"class-diagram":{"name":"meta.class-diagram.mermaid","begin":"^[ \\t]*(classDiagram(?:-v2)?)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.class-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.class-diagram.begin.mermaid"}}},"colon":{"name":"keyword.operator.assignment.mermaid","match":":","captures":{"0":{"name":"punctuation.separator.message.key-value.mermaid"}}},"comma":{"name":"punctuation.delimiter.comma.mermaid","match":",","captures":{"0":{"name":"sublimelinter.gutter-mark.mermaid"}}},"comment":{"name":"comment.line.percentage.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))(%%)","end":"$","beginCaptures":{"1":{"name":"punctuation.definition.comment.mermaid"}}},"direction":{"name":"meta.direction.statement.mermaid","match":"(?:\\G|^|(?\u003c=\\s|;|%%))(direction)(?:\\s+(BT|LR|RL|TB|TD))?(?=$|\\s|;)","captures":{"1":{"name":"storage.type.direction.mermaid"},"2":{"name":"constant.language.orientation.diagram.mermaid"}}},"directive":{"name":"meta.directive.mermaid","contentName":"source.embedded.js","begin":"%%(?={)","end":"%%$","patterns":[{"include":"source.js"}],"beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.directive.end.mermaid"}}},"entity":{"patterns":[{"name":"constant.character.entity.codepoint.mermaid","match":"(#)\\d+(;)","captures":{"1":{"name":"punctuation.definition.entity.begin.mermaid"},"2":{"name":"punctuation.definition.entity.end.mermaid"}}},{"name":"constant.character.entity.named.mermaid","match":"(#)[a-zA-Z0-9]+(;)","captures":{"1":{"name":"punctuation.definition.entity.begin.mermaid"},"2":{"name":"punctuation.definition.entity.end.mermaid"}}}]},"er-diagram":{"name":"meta.er-diagram.mermaid","begin":"^[ \\t]*(erDiagram)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.er-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.er-diagram.begin.mermaid"}}},"flowchart":{"name":"meta.flowchart.mermaid","begin":"^[ \\t]*(flowchart(?:-v2)?|graph)(?!-)\\b","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"match":"\\G\\s+(BT|LR|RL|TB|TD)(?=$|\\s)","captures":{"1":{"name":"constant.language.orientation.flowchart.mermaid"}}},{"include":"source.mermaid.flowchart"}],"beginCaptures":{"1":{"name":"keyword.control.flowchart.begin.mermaid"}}},"gantt":{"name":"meta.gantt-chart.mermaid","begin":"(?i)^[ \\t]*(gantt)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.gantt"}],"beginCaptures":{"1":{"name":"keyword.control.gantt-chart.begin.mermaid"}}},"gitgraph":{"name":"meta.gitgraph.mermaid","begin":"(?i)^[ \\t]*(gitGraph)(?:\\s+(LR|BT))?(?:\\s*(:))?(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.gitgraph"}],"beginCaptures":{"1":{"name":"keyword.control.gitgraph.begin.mermaid"},"2":{"name":"constant.language.orientation.flowchart.mermaid"},"3":{"patterns":[{"include":"source.mermaid#colon"}]}}},"inline-css":{"patterns":[{"name":"source.embedded.css","match":"(?=\\S)(?:[^,;\\r\\n%]|(?\u003c!%)%(?!%))++","captures":{"0":{"patterns":[{"include":"source.css#rule-list-innards"}]}}},{"include":"#comma"}]},"main":{"patterns":[{"include":"#directive"},{"include":"#comment"},{"include":"#flowchart"},{"include":"#sequence-diagram"},{"include":"#class-diagram"},{"include":"#state-diagram"},{"include":"#er-diagram"},{"include":"#user-journey"},{"include":"#gantt"},{"include":"#pie-chart"},{"include":"#requirement-diagram"},{"include":"#gitgraph"},{"include":"#c4c-diagram"}]},"pie-chart":{"name":"meta.pie-chart.mermaid","begin":"(?i)^[ \\t]*(pie)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.pie-chart"}],"beginCaptures":{"1":{"name":"keyword.control.pie-chart.begin.mermaid"}}},"requirement-diagram":{"name":"meta.requirement-diagram.mermaid","begin":"(?i)^[ \\t]*(requirementDiagram)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.requirement-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.requirement-diagram.begin.mermaid"}}},"sequence-diagram":{"name":"meta.sequence-diagram.mermaid","begin":"(?i)^[ \\t]*(sequenceDiagram)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.sequence-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.sequence-diagram.begin.mermaid"}}},"state-diagram":{"name":"meta.state-diagram.mermaid","begin":"(?i)^[ \\t]*(stateDiagram(?:-v2)?)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.state-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.state-diagram.begin.mermaid"}}},"terminator":{"name":"punctuation.terminator.statement.mermaid","match":";","captures":{"0":{"name":"sublimelinter.gutter-mark.mermaid"}}},"user-journey":{"name":"meta.user-journey.mermaid","begin":"(?i)^[ \\t]*(journey)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.user-journey"}],"beginCaptures":{"1":{"name":"keyword.control.user-journey.begin.mermaid"}}}}}
|
1
|
+
{"name":"Mermaid","scopeName":"source.mermaid","patterns":[{"include":"#main"}],"repository":{"a11y":{"name":"meta.a11y-option.${1:/downcase}.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))acc(Title|Descr)(?:(?=\\s*[:{])|[ \\t]*$)","end":"(?!\\G)","patterns":[{"include":"#a11y-innards"},{"begin":"\\G$","end":"(?!\\G)","patterns":[{"begin":"\\G","end":"(?=\\S)"},{"begin":"(?=:|{)","end":"(?!\\G)","patterns":[{"include":"#a11y-innards"}]}],"applyEndPatternLast":true}],"beginCaptures":{"0":{"name":"variable.assignment.accessibility.mermaid"}}},"a11y-innards":{"patterns":[{"contentName":"string.unquoted.directive-value.single-line.mermaid","begin":"\\G\\s*(:)[ \\t]*","end":"[ \\t]*$","beginCaptures":{"1":{"name":"keyword.operator.assignment.key-value.colon"}}},{"contentName":"string.quoted.other.curly.brackets.directive-value.multi-line.mermaid","begin":"\\G\\s*({)[ \\t]*","end":"[ \\t]*(})","beginCaptures":{"1":{"name":"punctuation.definition.string.curly.bracket.begin.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.curly.bracket.end.mermaid"}}}]},"br":{"name":"text.embedded.html.basic","match":"(?i)\u003cbr\\s*/?\u003e","captures":{"0":{"patterns":[{"include":"text.html.basic"}]}}},"brace":{"patterns":[{"name":"punctuation.definition.class.block.begin.mermaid","match":"{","captures":{"0":{"name":"sublimelinter.gutter-mark"}}},{"name":"punctuation.definition.class.block.end.mermaid","match":"}","captures":{"0":{"name":"sublimelinter.gutter-mark"}}}]},"c4c-diagram":{"name":"meta.c4c-diagram.c4-${2:/downcase}.mermaid","begin":"^[ \\t]*(C4(Component|Container|Context|Deployment|Dynamic))(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.c4c-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.c4c-diagram.begin.mermaid"}}},"class-diagram":{"name":"meta.class-diagram.mermaid","begin":"^[ \\t]*(classDiagram(?:-v2)?)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.class-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.class-diagram.begin.mermaid"}}},"colon":{"name":"keyword.operator.assignment.mermaid","match":":","captures":{"0":{"name":"punctuation.separator.message.key-value.mermaid"}}},"comma":{"name":"punctuation.delimiter.comma.mermaid","match":",","captures":{"0":{"name":"sublimelinter.gutter-mark.mermaid"}}},"comment":{"name":"comment.line.percentage.mermaid","begin":"(?:\\G|^|(?\u003c=\\s|;|%%))(%%)","end":"$","beginCaptures":{"1":{"name":"punctuation.definition.comment.mermaid"}}},"direction":{"name":"meta.direction.statement.mermaid","match":"(?:\\G|^|(?\u003c=\\s|;|%%))(direction)(?:\\s+(BT|LR|RL|TB|TD))?(?=$|\\s|;)","captures":{"1":{"name":"storage.type.direction.mermaid"},"2":{"name":"constant.language.orientation.diagram.mermaid"}}},"directive":{"name":"meta.directive.mermaid","contentName":"source.embedded.js","begin":"%%(?={)","end":"%%$","patterns":[{"include":"source.js"}],"beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.mermaid"}},"endCaptures":{"0":{"name":"punctuation.definition.directive.end.mermaid"}}},"entity":{"patterns":[{"name":"constant.character.entity.codepoint.mermaid","match":"(#)\\d+(;)","captures":{"1":{"name":"punctuation.definition.entity.begin.mermaid"},"2":{"name":"punctuation.definition.entity.end.mermaid"}}},{"name":"constant.character.entity.named.mermaid","match":"(#)[a-zA-Z0-9]+(;)","captures":{"1":{"name":"punctuation.definition.entity.begin.mermaid"},"2":{"name":"punctuation.definition.entity.end.mermaid"}}}]},"er-diagram":{"name":"meta.er-diagram.mermaid","begin":"^[ \\t]*(erDiagram)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.er-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.er-diagram.begin.mermaid"}}},"flowchart":{"name":"meta.flowchart.mermaid","begin":"^[ \\t]*(flowchart(?:-v2)?|graph)(?!-)\\b","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"match":"\\G\\s+(BT|LR|RL|TB|TD)(?=$|\\s)","captures":{"1":{"name":"constant.language.orientation.flowchart.mermaid"}}},{"include":"source.mermaid.flowchart"}],"beginCaptures":{"1":{"name":"keyword.control.flowchart.begin.mermaid"}}},"gantt":{"name":"meta.gantt-chart.mermaid","begin":"(?i)^[ \\t]*(gantt)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.gantt"}],"beginCaptures":{"1":{"name":"keyword.control.gantt-chart.begin.mermaid"}}},"gitgraph":{"name":"meta.gitgraph.mermaid","begin":"(?i)^[ \\t]*(gitGraph)(?:\\s+(LR|BT))?(?:\\s*(:))?(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.gitgraph"}],"beginCaptures":{"1":{"name":"keyword.control.gitgraph.begin.mermaid"},"2":{"name":"constant.language.orientation.flowchart.mermaid"},"3":{"patterns":[{"include":"source.mermaid#colon"}]}}},"inline-css":{"patterns":[{"name":"source.embedded.css","match":"(?=\\S)(?:[^,;\\r\\n%]|(?\u003c!%)%(?!%))++","captures":{"0":{"patterns":[{"include":"source.css#rule-list-innards"}]}}},{"include":"#comma"}]},"main":{"patterns":[{"include":"#directive"},{"include":"#comment"},{"include":"#flowchart"},{"include":"#sequence-diagram"},{"include":"#class-diagram"},{"include":"#state-diagram"},{"include":"#er-diagram"},{"include":"#user-journey"},{"include":"#gantt"},{"include":"#pie-chart"},{"include":"#requirement-diagram"},{"include":"#gitgraph"},{"include":"#c4c-diagram"},{"include":"#mindmap"}]},"mindmap":{"name":"meta.mindmap.mermaid","begin":"(?i)^[ \\t]*(mindmap)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.mindmap"}],"beginCaptures":{"1":{"name":"keyword.control.mindmap.begin.mermaid"}}},"pie-chart":{"name":"meta.pie-chart.mermaid","begin":"(?i)^[ \\t]*(pie)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.pie-chart"}],"beginCaptures":{"1":{"name":"keyword.control.pie-chart.begin.mermaid"}}},"requirement-diagram":{"name":"meta.requirement-diagram.mermaid","begin":"(?i)^[ \\t]*(requirementDiagram)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.requirement-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.requirement-diagram.begin.mermaid"}}},"sequence-diagram":{"name":"meta.sequence-diagram.mermaid","begin":"(?i)^[ \\t]*(sequenceDiagram)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.sequence-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.sequence-diagram.begin.mermaid"}}},"state-diagram":{"name":"meta.state-diagram.mermaid","begin":"(?i)^[ \\t]*(stateDiagram(?:-v2)?)(?=$|\\s|;)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.state-diagram"}],"beginCaptures":{"1":{"name":"keyword.control.state-diagram.begin.mermaid"}}},"terminator":{"name":"punctuation.terminator.statement.mermaid","match":";","captures":{"0":{"name":"sublimelinter.gutter-mark.mermaid"}}},"user-journey":{"name":"meta.user-journey.mermaid","begin":"(?i)^[ \\t]*(journey)(?=$|\\s)","end":"(?=A)B|(?=^[ \\t]*(?:`{3,}|~{3,})\\s*$)","patterns":[{"include":"source.mermaid.user-journey"}],"beginCaptures":{"1":{"name":"keyword.control.user-journey.begin.mermaid"}}}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"scopeName":"source.mermaid.mindmap","patterns":[{"include":"#main"}],"repository":{"class":{"name":"constant.language.css-class.mermaid","match":"[^\\)\\s]+"},"classes":{"name":"meta.node.class-list.mermaid","begin":"^([ \\t]*)(:::)[ \\t]*","end":"(?=\\s*$)","patterns":[{"include":"#class"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.mermaid"},"2":{"name":"keyword.operator.css-class.mermaid"}}},"icon":{"name":"meta.icon.class-list.mermaid","begin":"(?i)^([ \\t]*)((::)icon)(?=\\()","end":"(?!\\G)","patterns":[{"name":"meta.arguments.mermaid","begin":"\\G(\\()","end":"(\\))","patterns":[{"include":"#class"}],"beginCaptures":{"0":{"name":"punctuation.section.function.bracket.round.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"0":{"name":"punctuation.section.function.bracket.round.end.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.mermaid"},"2":{"name":"keyword.operator.css-class.mermaid"},"3":{"name":"punctuation.definition.keyword.mermaid"}}},"main":{"patterns":[{"include":"source.mermaid#a11y"},{"include":"source.mermaid#directive"},{"include":"source.mermaid#comment"},{"include":"#node"}]},"node":{"name":"meta.node.${2:/asciify/downcase}.mermaid","begin":"(?i)^([ \\t]+|^(?!\\s))(?!%|\\s|:::|::icon\\x28)([^-\\(\\[\\r\\n\\){}]+)[ \\t]*","end":"^(?!\\1\\s+)(?=\\s)|^(?=\\S)","patterns":[{"include":"source.mermaid.flowchart#node-shape-square"},{"include":"source.mermaid.flowchart#node-shape-hexagon"},{"include":"source.mermaid.flowchart#node-shape-circle"},{"include":"source.mermaid.flowchart#node-shape-round"},{"include":"#node-shape-bang"},{"include":"#node-shape-cloud"},{"include":"#classes"},{"include":"#icon"},{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.mermaid"},"2":{"name":"entity.name.tag.node.mermaid","patterns":[{"include":"source.mermaid#br"}]}}},"node-shape-bang":{"name":"string.unquoted.node-text.bang.mermaid","begin":"\\G(\\){2})","end":"((\\({2}))|((?:(?\u003c!\\))\\)(?!\\))|[^\\r\\n)])++)$","patterns":[{"include":"source.mermaid#br"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"source.mermaid#br"}]}}},"node-shape-cloud":{"name":"string.unquoted.node-text.cloud.mermaid","begin":"\\G(\\))","end":"((\\())|((?:(?\u003c!\\))\\)(?!\\))|[^\\r\\n)])++)$","patterns":[{"include":"source.mermaid#br"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mermaid"},"1":{"name":"sublimelinter.gutter-mark.mermaid"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.mermaid"},"2":{"name":"sublimelinter.gutter-mark.mermaid"},"3":{"patterns":[{"include":"source.mermaid#br"}]}}}}}
|
data/grammars/source.mo.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Motoko","scopeName":"source.mo","patterns":[{"include":"#shebang-line"},{"include":"#comment"},{"include":"#attribute"},{"include":"#literal"},{"include":"#operator"},{"include":"#declaration"},{"include":"#storage-type"},{"include":"#keyword"},{"include":"#type"},{"include":"#boolean"}],"repository":{"access-level-modifier":{"name":"keyword.other.access-level-modifier.motoko","match":"\\b(public|system|private)\\b"},"arithmetic-operator":{"name":"keyword.operator.arithmetic.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\+|\\-|\\*|\\/)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"array-type":{"name":"meta.array.motoko","begin":"\\b(Array)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.array.motoko"},"2":{"name":"punctuation.array.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.array.end.motoko"}}},"assignment-operator":{"name":"keyword.operator.assignment.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\+|\\-|\\*|\\/|%|\u003c\u003c|\u003e\u003e|\u0026|\\^|\\||\u0026\u0026|\\|\\|)?=(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"async-await-keyword":{"name":"keyword.async-await.motoko","match":"\\b(async|await)\\b"},"attribute":{"name":"meta.attribute.motoko","patterns":[{"contentName":"meta.attribute.arguments.motoko","begin":"((@)(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B))(\\()","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.modifier.attribute.motoko"},"2":{"name":"punctuation.definition.attribute.motoko"},"3":{"name":"punctuation.definition.attribute-arguments.begin.motoko"}},"endCaptures":{"0":{"name":"punctuation.definition.attribute-arguments.end.motoko"}}},{"match":"((@)(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B))","captures":{"1":{"name":"storage.modifier.attribute.motoko"},"2":{"name":"punctuation.definition.attribute.motoko"}}}]},"bitwise-operator":{"name":"keyword.operator.bitwise.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\u0026|\\||\\^|\u003c\u003c|\u003e\u003e)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"block-comment":{"name":"comment.block.motoko","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.motoko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.motoko"}}},"boolean":{"name":"keyword.constant.boolean.motoko","match":"\\b(true|false)\\b"},"branch-statement-keyword":{"name":"keyword.control.branch.motoko","patterns":[{"include":"#if-statement-keyword"},{"include":"#switch-statement-keyword"}]},"catch-statement-keyword":{"name":"kewyord.control.catch.motoko","match":"\\b(catch|do)\\b"},"code-block":{"begin":"(\\{)","end":"(\\})","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.code-block.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.definition.code-block.end.motoko"}}},"comment":{"patterns":[{"include":"#documentation-comment"},{"include":"#block-comment"},{"include":"#in-line-comment"}]},"comparative-operator":{"name":"keyword.operator.comparative.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])((=|!)==?|(\u003c|\u003e)=?|~=)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"control-transfer-statement-keyword":{"name":"keyword.control.transfer.motoko","match":"\\b(continue|break|return)\\b"},"custom-operator":{"patterns":[{"name":"keyword.operator.custom.prefix.unary.motoko","match":"(?\u003c=[\\s(\\[{,;:])([/=\\-+!*%\u003c\u003e\u0026|\\^~.]++)(?![\\s)\\]},;:])"},{"name":"keyword.operator.custom.postfix.unary.motoko","match":"(?\u003c![\\s(\\[{,;:])([/=\\-+!*%\u003c\u003e\u0026|\\^~.]++)(?![\\s)\\]},;:\\.])"},{"name":"keyword.operator.custom.binary.motoko","match":"(?\u003c=[\\s(\\[{,;:])([/=\\-+!*%\u003c\u003e\u0026|\\^~.]++)(?=[\\s)\\]},;:])"}]},"declaration":{"name":"meta.declaration.motoko","patterns":[{"include":"#import-declaration"}]},"declaration-modifier":{"name":"keyword.other.declaration-modifier.motoko","match":"\\b(class|object|type|shared)\\b"},"dictionary-type":{"name":"meta.dictionary.motoko","begin":"\\b(Dictionary)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.dictionary.motoko"},"2":{"name":"punctuation.dictionary.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.dictionary.end.motoko"}}},"documentation-comment":{"name":"comment.block.documentation.motoko","begin":"/\\*\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.documentation.begin.motoko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.documentation.end.motoko"}}},"floating-point-literal":{"name":"constant.numeric.floating-point.motoko","patterns":[{"match":"\\b([0-9][0-9_]*)(\\.([0-9][0-9_]*))?([eE][+\\-]?([0-9][0-9_]*))?\\b"},{"match":"\\b(0x[[:xdigit:]][[[:xdigit:]]_]*)(\\.(0x[[:xdigit:]][[[:xdigit:]]_]*))?([pP][+\\-]?(0x[[:xdigit:]][[[:xdigit:]]_]*))\\b"}]},"function-body":{"name":"meta.function-body.motoko","patterns":[{"include":"#code-block"}]},"function-declaration":{"name":"meta.function-declaration.motoko","begin":"\\b(func)\\s+(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B|[/=\\-+!*%\u003c\u003e\u0026|\\^~.]+)\\s*(?=\\(|\u003c)","end":"(?\u003c=\\})","patterns":[{"include":"#generic-parameter-clause"},{"include":"#parameter-clause"},{"include":"#function-result"},{"include":"#function-body"}],"beginCaptures":{"1":{"name":"storage.type.function.motoko"},"2":{"name":"entity.type.function.motoko"}}},"function-result":{"name":"meta.function-result.motoko","begin":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\-\u003e)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\s*","end":"\\s*(?=\\{)","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.operator.function-result.motoko"}}},"generic-parameter-clause":{"name":"meta.generic-parameter-clause.motoko","begin":"(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.generic-parameter-clause.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.definition.generic-parameter-clause.end.motoko"}}},"identifier":{"name":"meta.identifier.motoko","match":"(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B)"},"if-statement-keyword":{"name":"keyword.control.if.motoko","match":"\\b(if|else)\\b"},"import-declaration":{"name":"meta.import.motoko","match":"\\b(import)\\s+(?:(class|var|func)\\s+)?((?:\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B|[/=\\-+!*%\u003c\u003e\u0026|\\^~.]+)(?:\\.(?:\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B|[/=\\-+!*%\u003c\u003e\u0026|\\^~.]+))*)","captures":{"1":{"name":"keyword.other.import.motoko"},"2":{"name":"storage.modifier.motoko"},"3":{"name":"support.type.module.import.motoko"}}},"in-line-comment":{"name":"comment.line.double-slash.motoko","match":"(//).*","captures":{"1":{"name":"punctuation.definition.comment.line.double-slash.motoko"}}},"increment-decrement-operator":{"name":"keyword.operator.increment-or-decrement.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\+\\+|\\-\\-)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"integer-literal":{"name":"constant.numeric.integer.motoko","patterns":[{"name":"constant.numeric.integer.binary.motoko","match":"(\\B\\-|\\b)(0b[01][01_]*)\\b"},{"name":"constant.numeric.integer.octal.motoko","match":"(\\B\\-|\\b)(0o[0-7][0-7_]*)\\b"},{"name":"constant.numeric.integer.decimal.motoko","match":"(\\B\\-|\\b)([0-9][0-9_]*)\\b"},{"name":"constant.numeric.integer.hexadecimal.motoko","match":"(\\B\\-|\\b)(0x[[:xdigit:]][[[:xdigit:]]_]*)\\b"}]},"keyword":{"patterns":[{"include":"#branch-statement-keyword"},{"include":"#control-transfer-statement-keyword"},{"include":"#loop-statement-keyword"},{"include":"#catch-statement-keyword"},{"include":"#async-await-keyword"},{"include":"#operator-declaration-modifier"},{"include":"#declaration-modifier"},{"include":"#access-level-modifier"},{"name":"keyword.declaration.motoko","match":"\\b(actor|and|class|func|import|let|module|not|or)\\b"},{"name":"keyword.statement.motoko","match":"\\b(assert|break|case|continue|default|debug|debug_show|else|if|ignore|in|for|label|null|return|switch|while|loop|try|throw|catch|do|to_candid|from_candid|with)\\b"},{"name":"keyword.other.motoko","match":"\\b(flexible|query|stable)\\b"}]},"literal":{"patterns":[{"include":"#integer-literal"},{"include":"#floating-point-literal"},{"include":"#nil-literal"},{"include":"#string-literal"},{"include":"#special-literal"}]},"logical-operator":{"name":"keyword.operator.logical.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(!|\u0026\u0026|\\|\\|)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"loop-statement-keyword":{"name":"keyword.control.loop.motoko","match":"\\b(while|repeat|for|in|loop)\\b"},"null-literal":{"name":"constant.null.motoko","match":"\\bnull\\b"},"operator":{"patterns":[{"include":"#comparative-operator"},{"include":"#assignment-operator"},{"include":"#logical-operator"},{"include":"#remainder-operator"},{"include":"#increment-decrement-operator"},{"include":"#overflow-operator"},{"include":"#range-operator"},{"include":"#bitwise-operator"},{"include":"#arithmetic-operator"},{"include":"#ternary-operator"},{"include":"#type-casting-operator"},{"include":"#custom-operator"}]},"optional-type":{"name":"meta.optional.motoko","match":"\\b(Optional)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.optional.motoko"},"2":{"name":"punctuation.optional.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.optional.end.motoko"}}},"overflow-operator":{"name":"keyword.operator.overflow.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\\u0026(\\+|\\-|\\*|\\/|%)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"parameter-clause":{"name":"meta.parameter-clause.motoko","begin":"(\\()","end":"(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.function-arguments.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.definition.function-arguments.end.motoko"}}},"primitive-type":{"name":"support.type.motoko","match":"\\b(Blob|Bool|Char|Float|(Int|Nat)(8|16|32|64)?|Principal|Text|Error)\\b"},"protocol-composition-type":{"name":"meta.protocol.motoko","match":"\\b(protocol)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.protocol.motoko"},"2":{"name":"punctuation.protocol.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.protocol.end.motoko"}}},"range-operator":{"name":"keyword.operator.range.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\.\\.(?:\\.)?(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"remainder-operator":{"name":"keyword.operator.remainder.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\%(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"resolved-type":{"name":"support.type.motoko","match":"\\b[A-Z].*?\\b"},"shebang-line":{"name":"comment.line.shebang.motoko","match":"^(#!).*$","captures":{"1":{"name":"punctuation.definition.comment.line.shebang.motoko"}}},"special-literal":{"name":"keyword.other.literal.motoko","match":"\\b__(FILE|LINE|COLUMN|FUNCTION)__\\b"},"storage-type":{"name":"storage.type.motoko","match":"\\b(var|func|let|class|enum)\\b"},"string-literal":{"name":"meta.literal.string.motoko","begin":"\\\"","end":"\\\"","patterns":[{"name":"constant.character.escape.motoko","match":"\\\\([0tnr\\\"\\'\\\\]|x[[:xdigit:]]{2}|u[[:xdigit:]]{4}|U[[:xdigit:]]{8})"},{"contentName":"meta.expression.motoko","begin":"(\\\\\\()","end":"(\\))","patterns":[{}],"beginCaptures":{"1":{"name":"support.punctuation.expression.begin.motoko"}},"endCaptures":{"1":{"name":"support.punctuation.expression.end.motoko"}}},{"name":"invalid.illegal.motoko","match":"(\\\"|\\\\)"},{"name":"string.quoted.double.motoko","match":"(.)"}],"beginCaptures":{"0":{"name":"string.quoted.double.motoko"}},"endCaptures":{"0":{"name":"string.quoted.double.motoko"}}},"switch-statement-keyword":{"name":"keyword.control.switch.motoko","match":"\\b(switch|case|default)\\b"},"type":{"patterns":[{"include":"#primitive-type"},{"include":"#resolved-type"},{"include":"#optional-type"},{"include":"#protocol-composition-type"}]}}}
|
1
|
+
{"name":"Motoko","scopeName":"source.mo","patterns":[{"include":"#shebang-line"},{"include":"#comment"},{"include":"#attribute"},{"include":"#literal"},{"include":"#operator"},{"include":"#declaration"},{"include":"#storage-type"},{"include":"#keyword"},{"include":"#type"},{"include":"#boolean"}],"repository":{"access-level-modifier":{"name":"keyword.other.access-level-modifier.motoko","match":"\\b(public|system|private)\\b"},"arithmetic-operator":{"name":"keyword.operator.arithmetic.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\+|\\-|\\*|\\/)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"array-type":{"name":"meta.array.motoko","begin":"\\b(Array)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.array.motoko"},"2":{"name":"punctuation.array.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.array.end.motoko"}}},"assignment-operator":{"name":"keyword.operator.assignment.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\+|\\-|\\*|\\/|%|\u003c\u003c\u003e?|\u003c?\u003e\u003e|\u0026|\\^|\\||\u0026\u0026|\\|\\|)?=(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"async-await-keyword":{"name":"keyword.async-await.motoko","match":"\\b(async|await)\\b"},"attribute":{"name":"meta.attribute.motoko","patterns":[{"contentName":"meta.attribute.arguments.motoko","begin":"((@)(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B))(\\()","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.modifier.attribute.motoko"},"2":{"name":"punctuation.definition.attribute.motoko"},"3":{"name":"punctuation.definition.attribute-arguments.begin.motoko"}},"endCaptures":{"0":{"name":"punctuation.definition.attribute-arguments.end.motoko"}}},{"match":"((@)(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B))","captures":{"1":{"name":"storage.modifier.attribute.motoko"},"2":{"name":"punctuation.definition.attribute.motoko"}}}]},"bitwise-operator":{"name":"keyword.operator.bitwise.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\u0026|\\||\\^|\u003c\u003c\u003e?|\u003c?\u003e\u003e)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"block-comment":{"name":"comment.block.motoko","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.motoko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.motoko"}}},"boolean":{"name":"keyword.constant.boolean.motoko","match":"\\b(true|false)\\b"},"branch-statement-keyword":{"name":"keyword.control.branch.motoko","patterns":[{"include":"#if-statement-keyword"},{"include":"#switch-statement-keyword"}]},"catch-statement-keyword":{"name":"kewyord.control.catch.motoko","match":"\\b(catch|do)\\b"},"char-literal":{"name":"meta.literal.char.motoko","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.motoko","match":"\\\\([0tnr\\\"\\'\\\\]|x[[:xdigit:]]{2}|u[[:xdigit:]]{4}|U[[:xdigit:]]{8})"},{"name":"invalid.illegal.motoko","match":"(\\'|\\\\)"},{"name":"string.quoted.single.motoko","match":"(.)"}],"beginCaptures":{"0":{"name":"string.quoted.double.motoko"}},"endCaptures":{"0":{"name":"string.quoted.single.motoko"}}},"code-block":{"begin":"(\\{)","end":"(\\})","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.code-block.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.definition.code-block.end.motoko"}}},"comment":{"patterns":[{"include":"#documentation-comment"},{"include":"#block-comment"},{"include":"#in-line-comment"}]},"comparative-operator":{"name":"keyword.operator.comparative.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])((=|!)==?|(\u003c|\u003e)=?|~=)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"control-transfer-statement-keyword":{"name":"keyword.control.transfer.motoko","match":"\\b(continue|break|return)\\b"},"custom-operator":{"patterns":[{"name":"keyword.operator.custom.prefix.unary.motoko","match":"(?\u003c=[\\s(\\[{,;:])([/=\\-+!*%\u003c\u003e\u0026|\\^~.]++)(?![\\s)\\]},;:])"},{"name":"keyword.operator.custom.postfix.unary.motoko","match":"(?\u003c![\\s(\\[{,;:])([/=\\-+!*%\u003c\u003e\u0026|\\^~.]++)(?![\\s)\\]},;:\\.])"},{"name":"keyword.operator.custom.binary.motoko","match":"(?\u003c=[\\s(\\[{,;:])([/=\\-+!*%\u003c\u003e\u0026|\\^~.]++)(?=[\\s)\\]},;:])"}]},"declaration":{"name":"meta.declaration.motoko","patterns":[{"include":"#import-declaration"}]},"declaration-modifier":{"name":"keyword.other.declaration-modifier.motoko","match":"\\b(class|object|type|shared)\\b"},"dictionary-type":{"name":"meta.dictionary.motoko","begin":"\\b(Dictionary)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.dictionary.motoko"},"2":{"name":"punctuation.dictionary.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.dictionary.end.motoko"}}},"documentation-comment":{"name":"comment.block.documentation.motoko","begin":"/\\*\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.documentation.begin.motoko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.documentation.end.motoko"}}},"floating-point-literal":{"name":"constant.numeric.floating-point.motoko","patterns":[{"match":"\\b([0-9][0-9_]*)(\\.([0-9][0-9_]*))?([eE][+\\-]?([0-9][0-9_]*))?\\b"},{"match":"\\b(0x[[:xdigit:]][[[:xdigit:]]_]*)(\\.(0x[[:xdigit:]][[[:xdigit:]]_]*))?([pP][+\\-]?(0x[[:xdigit:]][[[:xdigit:]]_]*))\\b"}]},"function-body":{"name":"meta.function-body.motoko","patterns":[{"include":"#code-block"}]},"function-declaration":{"name":"meta.function-declaration.motoko","begin":"\\b(func)\\s+(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B|[/=\\-+!*%\u003c\u003e\u0026|\\^~.]+)\\s*(?=\\(|\u003c)","end":"(?\u003c=\\})","patterns":[{"include":"#generic-parameter-clause"},{"include":"#parameter-clause"},{"include":"#function-result"},{"include":"#function-body"}],"beginCaptures":{"1":{"name":"storage.type.function.motoko"},"2":{"name":"entity.type.function.motoko"}}},"function-result":{"name":"meta.function-result.motoko","begin":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\-\u003e)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\s*","end":"\\s*(?=\\{)","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.operator.function-result.motoko"}}},"generic-parameter-clause":{"name":"meta.generic-parameter-clause.motoko","begin":"(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.generic-parameter-clause.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.definition.generic-parameter-clause.end.motoko"}}},"identifier":{"name":"meta.identifier.motoko","match":"(\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B)"},"if-statement-keyword":{"name":"keyword.control.if.motoko","match":"\\b(if|else)\\b"},"import-declaration":{"name":"meta.import.motoko","match":"\\b(import)\\s+(?:(class|var|func)\\s+)?((?:\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B|[/=\\-+!*%\u003c\u003e\u0026|\\^~.]+)(?:\\.(?:\\B\\$[0-9]+|\\b[\\w^\\d][\\w\\d]*\\b|\\B`[\\w^\\d][\\w\\d]*`\\B|[/=\\-+!*%\u003c\u003e\u0026|\\^~.]+))*)","captures":{"1":{"name":"keyword.other.import.motoko"},"2":{"name":"storage.modifier.motoko"},"3":{"name":"support.type.module.import.motoko"}}},"in-line-comment":{"name":"comment.line.double-slash.motoko","match":"(//).*","captures":{"1":{"name":"punctuation.definition.comment.line.double-slash.motoko"}}},"increment-decrement-operator":{"name":"keyword.operator.increment-or-decrement.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(\\+\\+|\\-\\-)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"integer-literal":{"name":"constant.numeric.integer.motoko","patterns":[{"name":"constant.numeric.integer.binary.motoko","match":"(\\B\\-|\\b)(0b[01][01_]*)\\b"},{"name":"constant.numeric.integer.octal.motoko","match":"(\\B\\-|\\b)(0o[0-7][0-7_]*)\\b"},{"name":"constant.numeric.integer.decimal.motoko","match":"(\\B\\-|\\b)([0-9][0-9_]*)\\b"},{"name":"constant.numeric.integer.hexadecimal.motoko","match":"(\\B\\-|\\b)(0x[[:xdigit:]][[[:xdigit:]]_]*)\\b"}]},"keyword":{"patterns":[{"include":"#branch-statement-keyword"},{"include":"#control-transfer-statement-keyword"},{"include":"#loop-statement-keyword"},{"include":"#catch-statement-keyword"},{"include":"#async-await-keyword"},{"include":"#operator-declaration-modifier"},{"include":"#declaration-modifier"},{"include":"#access-level-modifier"},{"name":"keyword.declaration.motoko","match":"\\b(actor|and|class|func|import|let|module|not|or)\\b"},{"name":"keyword.statement.motoko","match":"\\b(assert|break|case|continue|default|debug|debug_show|else|if|ignore|in|for|label|null|return|switch|while|loop|try|throw|catch|do|to_candid|from_candid|with)\\b"},{"name":"keyword.other.motoko","match":"\\b(flexible|query|stable)\\b"}]},"literal":{"patterns":[{"include":"#integer-literal"},{"include":"#floating-point-literal"},{"include":"#nil-literal"},{"include":"#string-literal"},{"include":"#char-literal"}]},"logical-operator":{"name":"keyword.operator.logical.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])(!|\u0026\u0026|\\|\\|)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"loop-statement-keyword":{"name":"keyword.control.loop.motoko","match":"\\b(while|repeat|for|in|loop)\\b"},"null-literal":{"name":"constant.null.motoko","match":"\\bnull\\b"},"operator":{"patterns":[{"include":"#comparative-operator"},{"include":"#assignment-operator"},{"include":"#logical-operator"},{"include":"#remainder-operator"},{"include":"#increment-decrement-operator"},{"include":"#overflow-operator"},{"include":"#range-operator"},{"include":"#bitwise-operator"},{"include":"#arithmetic-operator"},{"include":"#ternary-operator"},{"include":"#type-casting-operator"},{"include":"#custom-operator"}]},"optional-type":{"name":"meta.optional.motoko","match":"\\b(Optional)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.optional.motoko"},"2":{"name":"punctuation.optional.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.optional.end.motoko"}}},"overflow-operator":{"name":"keyword.operator.overflow.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\\u0026(\\+|\\-|\\*|\\/|%)(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"parameter-clause":{"name":"meta.parameter-clause.motoko","begin":"(\\()","end":"(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.function-arguments.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.definition.function-arguments.end.motoko"}}},"primitive-type":{"name":"support.type.motoko","match":"\\b(Blob|Bool|Char|Float|(Int|Nat)(8|16|32|64)?|Principal|Text|Error)\\b"},"protocol-composition-type":{"name":"meta.protocol.motoko","match":"\\b(protocol)(\u003c)","end":"(\u003e)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"support.type.protocol.motoko"},"2":{"name":"punctuation.protocol.begin.motoko"}},"endCaptures":{"1":{"name":"punctuation.protocol.end.motoko"}}},"range-operator":{"name":"keyword.operator.range.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\.\\.(?:\\.)?(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"remainder-operator":{"name":"keyword.operator.remainder.motoko","match":"(?\u003c![/=\\-+!*%\u003c\u003e\u0026|\\^~.])\\%(?![/=\\-+!*%\u003c\u003e\u0026|\\^~.])"},"resolved-type":{"name":"support.type.motoko","match":"\\b[A-Z].*?\\b"},"shebang-line":{"name":"comment.line.shebang.motoko","match":"^(#!).*$","captures":{"1":{"name":"punctuation.definition.comment.line.shebang.motoko"}}},"storage-type":{"name":"storage.type.motoko","match":"\\b(var|func|let|class|enum)\\b"},"string-literal":{"name":"meta.literal.string.motoko","begin":"\\\"","end":"\\\"","patterns":[{"name":"constant.character.escape.motoko","match":"\\\\([0tnr\\\"\\'\\\\]|x[[:xdigit:]]{2}|u[[:xdigit:]]{4}|U[[:xdigit:]]{8})"},{"name":"invalid.illegal.motoko","match":"(\\\"|\\\\)"},{"name":"string.quoted.double.motoko","match":"(.)"}],"beginCaptures":{"0":{"name":"string.quoted.double.motoko"}},"endCaptures":{"0":{"name":"string.quoted.double.motoko"}}},"switch-statement-keyword":{"name":"keyword.control.switch.motoko","match":"\\b(switch|case|default)\\b"},"type":{"patterns":[{"include":"#primitive-type"},{"include":"#resolved-type"},{"include":"#optional-type"},{"include":"#protocol-composition-type"}]}}}
|
data/grammars/source.move.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"scopeName":"source.move","patterns":[{"include":"#address"},{"include":"#comments"},{"include":"#module"},{"include":"#script"},{"include":"#macros"}],"repository":{"address":{"name":"meta.address_block.move","begin":"\\b(address)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"meta.address.definition.move","begin":"(?\u003c=address)","end":"(?=[{])","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"name":"entity.name.type.move","match":"\\b(\\w+)\\b"}]},{"include":"#module"}],"beginCaptures":{"1":{"name":"storage.modifier.type.address.keyword.move"}}},"address_literal":{"patterns":[{"name":"support.constant.diem.address.move","match":"\\b(0x[A-Fa-f0-9][A-Fa-f0-9]{,31})\\b"},{"name":"support.constant.dfinance.address.move","match":"\\b(wallet1\\w{38})"},{"name":"support.constant.named.address.move","match":"\\s([@]\\w+)\\b"}]},"as":{"name":"keyword.control.move","match":"\\b(as)\\b"},"as-import":{"name":"meta.import_as.move","match":"\\b(as)\\b"},"assert":{"name":"support.function.assert.move","match":"\\b(assert)\\b"},"block":{"name":"meta.block.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#as"},{"include":"#mut"},{"include":"#let"},{"include":"#types"},{"include":"#assert"},{"include":"#literals"},{"include":"#control"},{"include":"#move_copy"},{"include":"#resource_methods"},{"include":"#module_access"},{"include":"#fun_call"},{"include":"#block"}]},"block-comments":{"patterns":[{"name":"comment.block.documentation.move","begin":"/\\*[\\*!](?![\\*/])","end":"\\*/"},{"name":"comment.block.move","begin":"/\\*","end":"\\*/"}]},"comments":{"name":"meta.comments.move","patterns":[{"include":"#line-comments"},{"include":"#block-comments"}]},"const":{"name":"meta.const.move","begin":"\\b(const)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#primitives"},{"include":"#vector"},{"include":"#literals"},{"name":"constant.other.move","match":"\\b([\\w_]+)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.const.move"}}},"control":{"name":"keyword.control.move","match":"\\b(return|while|loop|if|else|break|continue|abort)\\b"},"entry_fun":{"name":"meta.entry_fun.move","begin":"\\b(entry)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"storage.modifier.native.move","match":"\\b(native)\\b"},{"name":"storage.modifier.public.move","match":"\\b(public)\\b"},{"include":"#fun"}],"beginCaptures":{"1":{"name":"storage.modifier.entry.move"}}},"friend":{"name":"meta.friend.move","begin":"\\b(friend)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"name":"entity.name.type.module.move","match":"\\b(\\w+)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"fun":{"patterns":[{"include":"#fun_signature"},{"include":"#fun_body"}]},"fun_body":{"name":"meta.fun_body.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#as"},{"include":"#mut"},{"include":"#let"},{"include":"#types"},{"include":"#assert"},{"include":"#literals"},{"include":"#control"},{"include":"#move_copy"},{"include":"#resource_methods"},{"include":"#self_access"},{"include":"#module_access"},{"include":"#fun_call"},{"include":"#block"}]},"fun_call":{"name":"meta.fun_call.move","begin":"\\b(\\w+)\\s*(?:\u003c[\\w\\s,]+\u003e)?\\s*[(]","end":"[)]","patterns":[{"include":"#comments"},{"include":"#resource_methods"},{"include":"#self_access"},{"include":"#module_access"},{"include":"#move_copy"},{"include":"#literals"},{"include":"#fun_call"},{"include":"#block"},{"include":"#mut"},{"include":"#as"}],"beginCaptures":{"1":{"name":"entity.name.function.call.move"}}},"fun_signature":{"name":"meta.fun_signature.move","begin":"\\b(fun)\\b","end":"(?=[;{])","patterns":[{"include":"#comments"},{"include":"#module_access"},{"include":"#types"},{"include":"#mut"},{"name":"meta.function_name.move","begin":"(?\u003c=fun)","end":"(?=[\u003c(])","patterns":[{"include":"#comments"},{"name":"entity.name.function.move","match":"\\b(\\w+)\\b"}]},{"include":"#type_param"},{"name":"meta.parentheses.move","begin":"[(]","end":"[)]","patterns":[{"include":"#comments"},{"include":"#self_access"},{"include":"#module_access"},{"include":"#types"},{"include":"#mut"}]},{"name":"storage.modifier","match":"\\b(acquires)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.fun.move"}}},"import":{"name":"meta.import.move","begin":"\\b(use)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"include":"#as-import"},{"name":"entity.name.type.move","match":"\\b([A-Z]\\w*)\\b"},{"begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#as-import"},{"name":"entity.name.type.move","match":"\\b([A-Z]\\w*)\\b"}]},{"name":"meta.entity.name.type.module.move","match":"\\b(\\w+)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"let":{"name":"keyword.control.move","match":"\\b(let)\\b"},"line-comments":{"name":"comment.line.double-slash.move","begin":"//","end":"$"},"literals":{"patterns":[{"name":"constant.numeric.hex.move","match":"0x[_a-fA-F0-9]+(?:[iu](?:8|16|32|64|size))?"},{"name":"constant.numeric.move","match":"(?\u003c!(?:\\w|(?:(?\u003c!\\.)\\.)))[0-9][_0-9]*(?:\\.(?!\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+\\-]?[_0-9]+)?(?:[u](?:8|64|128|))?"},{"match":"\\b(?:h)(\"[a-fA-F0-9]+\")","captures":{"1":{"name":"constant.character.move"}}},{"name":"meta.ascii_literal.move","match":"\\b(\"(.*)\")","captures":{"1":{"name":"string.quoted.double.raw.byte.move"}}},{"name":"meta.hex_literal.move","match":"x\"([A-F0-9a-f]+)\"","captures":{"1":{"name":"constant.numeric.hex.move"}}},{"name":"constant.language.boolean.move","match":"\\b(?:true|false)\\b"},{"include":"#address_literal"}]},"macros":{"name":"support.constant.macro.move","match":"#\\[(?:[\\w0-9=_\\(\\)\\s\"]+)\\]"},"module":{"name":"meta.module.move","begin":"\\b(module)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"begin":"(?\u003c=module)","end":"(?={)","patterns":[{"include":"#comments"},{"name":"constant.other.move","begin":"(?\u003c=module)","end":"(?=[(::){])"},{"name":"entity.name.type.move","begin":"(?\u003c=::)","end":"(?=[\\s{])"}]},{"name":"meta.module_scope.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#macros"},{"include":"#import"},{"include":"#friend"},{"include":"#const"},{"include":"#struct"},{"include":"#entry_fun"},{"include":"#native_fun"},{"include":"#public_fun"},{"include":"#fun"},{"include":"#spec"},{"include":"#block"}]}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"module_access":{"name":"meta.module_access.move","match":"\\b(\\w+)::(\\w+)\\b","captures":{"1":{"name":"meta.entity.name.type.accessed.module.move"},"2":{"name":"entity.name.function.call.move"}}},"move_copy":{"name":"variable.language.move","match":"\\b(move|copy)\\b"},"mut":{"name":"storage.modifier.mut.move","match":"(?\u003c=\u0026)(mut)\\b"},"native_fun":{"name":"meta.native_fun.move","begin":"\\b(native)\\b","end":"(?\u003c=[;}])","patterns":[{"include":"#comments"},{"name":"storage.modifier.public.move","match":"\\b(public)\\b"},{"name":"storage.modifier.entry.move","match":"\\b(entry)\\b"},{"include":"#fun_signature"}],"beginCaptures":{"1":{"name":"storage.modifier.native.move"}}},"phantom":{"name":"keyword.control.phantom.move","match":"\\b(phantom)\\b"},"primitives":{"name":"support.type.primitives.move","match":"\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\b"},"public_fun":{"name":"meta.public_fun.move","begin":"\\b(public)\\b","end":"(?\u003c=[;}])","patterns":[{"include":"#comments"},{"name":"storage.modifier.native.move","match":"\\b(native)\\b"},{"name":"storage.modifier.entry.move","match":"\\b(entry)\\b"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"name":"storage.modifier.public.script.move","match":"\\b(script|friend)\\b"}]},{"include":"#fun"}],"beginCaptures":{"1":{"name":"storage.modifier.public.move"}}},"resource_methods":{"name":"support.function.typed.move","match":"\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\b"},"script":{"name":"meta.script.move","begin":"\\b(script)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"meta.script_scope.move","begin":"{","end":"}","patterns":[{"include":"#const"},{"include":"#comments"},{"include":"#import"},{"include":"#fun"}]}],"beginCaptures":{"1":{"name":"storage.modifier.script.move"}}},"self_access":{"name":"meta.self_access.move","match":"\\b(Self)::(\\w+)\\b","captures":{"1":{"name":"variable.language.self.move"},"2":{"name":"entity.name.function.call.move"}}},"spec":{"name":"meta.spec.move","begin":"\\b(spec)\\b","end":"(?\u003c=[;}])","patterns":[{"name":"storage.modifier.spec.target.move","match":"\\b(module|schema|struct|fun)"},{"name":"storage.modifier.spec.define.move","match":"\\b(define)"},{"name":"entity.name.function.move","match":"\\b(\\w+)\\b"},{"begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#spec_block"},{"include":"#spec_types"},{"include":"#spec_define"},{"include":"#spec_keywords"},{"include":"#control"},{"include":"#fun_call"},{"include":"#literals"},{"include":"#types"},{"include":"#let"}]}],"beginCaptures":{"1":{"name":"storage.modifier.spec.move"}}},"spec_block":{"name":"meta.spec_block.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#spec_block"},{"include":"#spec_types"},{"include":"#fun_call"},{"include":"#literals"},{"include":"#control"},{"include":"#types"},{"include":"#let"}]},"spec_define":{"name":"meta.spec_define.move","begin":"\\b(define)\\b","end":"(?=[;{])","patterns":[{"include":"#comments"},{"include":"#spec_types"},{"include":"#types"},{"begin":"(?\u003c=define)","end":"(?=[(])","patterns":[{"include":"#comments"},{"name":"entity.name.function.move","match":"\\b(\\w+)\\b"}]}],"beginCaptures":{"1":{"name":"keyword.control.move.spec"}}},"spec_keywords":{"name":"keyword.control.move.spec","match":"\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\b"},"spec_types":{"name":"support.type.vector.move","match":"\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\b"},"struct":{"name":"meta.struct.move","begin":"\\b(struct)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"meta.struct_def.move","begin":"(?\u003c=struct)","end":"(?={)","patterns":[{"include":"#comments"},{"name":"keyword.control.ability.has.move","match":"\\b(has)\\b"},{"name":"entity.name.type.ability.move","match":"\\b(store|key|drop|copy)\\b"},{"name":"entity.name.type.move","match":"\\b(\\w+)\\b"},{"include":"#type_param"}]},{"name":"meta.struct_body.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#self_access"},{"include":"#module_access"},{"include":"#types"}]}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"type_param":{"name":"meta.generic_param.move","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#phantom"},{"include":"#module_access"},{"name":"entity.name.type.kind.move","match":"\\b(store|drop|key|copy)\\b"}]},"types":{"name":"meta.types.move","patterns":[{"include":"#primitives"},{"include":"#vector"},{"name":"entity.name.type","match":"\\b([A-Z][A-Za-z_]+)\\b"},{"name":"constant.other.move","match":"\\b([A-Z_]+)\\b"}]},"vector":{"name":"meta.vector.move","begin":"\\b(vector)\u003c","end":"\u003e","patterns":[{"include":"#primitives"},{"include":"#vector"}],"beginCaptures":{"1":{"name":"support.type.vector.move"}}}}}
|
1
|
+
{"scopeName":"source.move","patterns":[{"include":"#address"},{"include":"#comments"},{"include":"#module"},{"include":"#script"},{"include":"#macros"}],"repository":{"address":{"name":"meta.address_block.move","begin":"\\b(address)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"meta.address.definition.move","begin":"(?\u003c=address)","end":"(?=[{])","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"name":"entity.name.type.move","match":"\\b(\\w+)\\b"}]},{"include":"#module"}],"beginCaptures":{"1":{"name":"storage.modifier.type.address.keyword.move"}}},"address_literal":{"patterns":[{"name":"support.constant.diem.address.move","match":"\\b(0x[A-Fa-f0-9][A-Fa-f0-9]{,31})\\b"},{"name":"support.constant.dfinance.address.move","match":"\\b(wallet1\\w{38})"},{"name":"support.constant.named.address.move","match":"\\s([@]\\w+)\\b"}]},"all_upper":{"name":"constant.other.move","match":"\\b([A-Z_]+)\\b"},"as":{"name":"keyword.control.move","match":"\\b(as)\\b"},"as-import":{"name":"meta.import_as.move","match":"\\b(as)\\b"},"assert":{"name":"support.function.assert.move","match":"\\b(assert)\\b"},"block":{"name":"meta.block.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#as"},{"include":"#mut"},{"include":"#let"},{"include":"#types"},{"include":"#assert"},{"include":"#literals"},{"include":"#control"},{"include":"#move_copy"},{"include":"#resource_methods"},{"include":"#module_access"},{"include":"#fun_call"},{"include":"#block"}]},"block-comments":{"patterns":[{"name":"comment.block.documentation.move","begin":"/\\*[\\*!](?![\\*/])","end":"\\*/"},{"name":"comment.block.move","begin":"/\\*","end":"\\*/"}]},"comments":{"name":"meta.comments.move","patterns":[{"include":"#line-comments"},{"include":"#block-comments"}]},"const":{"name":"meta.const.move","begin":"\\b(const)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#primitives"},{"include":"#vector"},{"include":"#literals"},{"name":"constant.other.move","match":"\\b([\\w_]+)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.const.move"}}},"control":{"name":"keyword.control.move","match":"\\b(return|while|loop|if|else|break|continue|abort)\\b"},"e_const":{"name":"constant.other.e_camel_case.move","match":"\\b(E[A-Z][a-zA-Z0-9]+)\\b"},"entry_fun":{"name":"meta.entry_fun.move","begin":"\\b(entry)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"storage.modifier.native.move","match":"\\b(native)\\b"},{"name":"storage.modifier.public.move","match":"\\b(public)\\b"},{"include":"#fun"}],"beginCaptures":{"1":{"name":"storage.modifier.entry.move"}}},"friend":{"name":"meta.friend.move","begin":"\\b(friend)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"name":"entity.name.type.module.move","match":"\\b(\\w+)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"fun":{"patterns":[{"include":"#fun_signature"},{"include":"#fun_body"}]},"fun_body":{"name":"meta.fun_body.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#as"},{"include":"#mut"},{"include":"#let"},{"include":"#types"},{"include":"#assert"},{"include":"#literals"},{"include":"#control"},{"include":"#move_copy"},{"include":"#resource_methods"},{"include":"#module_access"},{"include":"#fun_call"},{"include":"#block"}]},"fun_call":{"name":"meta.fun_call.move","begin":"\\b(\\w+)\\s*(?:\u003c[\\w\\s,]+\u003e)?\\s*[(]","end":"[)]","patterns":[{"include":"#comments"},{"include":"#resource_methods"},{"include":"#module_access"},{"include":"#move_copy"},{"include":"#literals"},{"include":"#fun_call"},{"include":"#block"},{"include":"#mut"},{"include":"#as"}],"beginCaptures":{"1":{"name":"entity.name.function.call.move"}}},"fun_signature":{"name":"meta.fun_signature.move","begin":"\\b(fun)\\b","end":"(?=[;{])","patterns":[{"include":"#comments"},{"include":"#module_access"},{"include":"#types"},{"include":"#mut"},{"name":"meta.function_name.move","begin":"(?\u003c=fun)","end":"(?=[\u003c(])","patterns":[{"include":"#comments"},{"name":"entity.name.function.move","match":"\\b(\\w+)\\b"}]},{"include":"#type_param"},{"name":"meta.parentheses.move","begin":"[(]","end":"[)]","patterns":[{"begin":"(?\u003c=\\()","end":"(?=:)","patterns":[{"include":"#self_keyword"}]},{"include":"#comments"},{"include":"#module_access"},{"include":"#types"},{"include":"#mut"}]},{"name":"storage.modifier","match":"\\b(acquires)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.fun.move"}}},"import":{"name":"meta.import.move","begin":"\\b(use)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"include":"#as-import"},{"name":"entity.name.type.move","match":"\\b([A-Z]\\w*)\\b"},{"begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#as-import"},{"name":"entity.name.type.move","match":"\\b([A-Z]\\w*)\\b"}]},{"name":"meta.entity.name.type.module.move","match":"\\b(\\w+)\\b"}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"let":{"name":"keyword.control.move","match":"\\b(let)\\b"},"line-comments":{"name":"comment.line.double-slash.move","begin":"//","end":"$"},"literals":{"patterns":[{"name":"constant.numeric.hex.move","match":"0x[_a-fA-F0-9]+(?:[iu](?:8|16|32|64|size))?"},{"name":"constant.numeric.move","match":"(?\u003c!(?:\\w|(?:(?\u003c!\\.)\\.)))[0-9][_0-9]*(?:\\.(?!\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+\\-]?[_0-9]+)?(?:[u](?:8|64|128|))?"},{"match":"\\b(?:h)(\"[a-fA-F0-9]+\")","captures":{"1":{"name":"constant.character.move"}}},{"name":"meta.ascii_literal.move","begin":"\\bb\"","end":"\"","patterns":[{"name":"constant.character.escape.move","match":"\\\\[nrt\\0\"]"},{"name":"constant.character.escape.hex.move","match":"\\\\x[a-fA-F0-9][A-Fa-f0-9]"},{"name":"string.quoted.double.raw.move","match":"[\\x00-\\x7F]"}]},{"name":"meta.hex_literal.move","match":"x\"([A-F0-9a-f]+)\"","captures":{"1":{"name":"constant.numeric.hex.move"}}},{"name":"constant.language.boolean.move","match":"\\b(?:true|false)\\b"},{"include":"#address_literal"}]},"macros":{"name":"support.constant.macro.move","match":"#\\[(?:[\\w0-9=_\\(\\)\\:\\s\"]+)\\]"},"module":{"name":"meta.module.move","begin":"\\b(module)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"begin":"(?\u003c=module)","end":"(?={)","patterns":[{"include":"#comments"},{"name":"constant.other.move","begin":"(?\u003c=module)","end":"(?=[(::){])"},{"name":"entity.name.type.move","begin":"(?\u003c=::)","end":"(?=[\\s{])"}]},{"name":"meta.module_scope.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#macros"},{"include":"#import"},{"include":"#friend"},{"include":"#const"},{"include":"#struct"},{"include":"#entry_fun"},{"include":"#native_fun"},{"include":"#public_fun"},{"include":"#fun"},{"include":"#spec"},{"include":"#block"}]}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"module_access":{"name":"meta.module_access.move","match":"\\b(\\w+)::(\\w+)\\b","captures":{"1":{"name":"meta.entity.name.type.accessed.module.move"},"2":{"name":"entity.name.function.call.move"}}},"move_copy":{"name":"variable.language.move","match":"\\b(move|copy)\\b"},"mut":{"name":"storage.modifier.mut.move","match":"(?\u003c=\u0026)(mut)\\b"},"native_fun":{"name":"meta.native_fun.move","begin":"\\b(native)\\b","end":"(?\u003c=[;}])","patterns":[{"include":"#comments"},{"name":"storage.modifier.public.move","match":"\\b(public)\\b"},{"name":"storage.modifier.entry.move","match":"\\b(entry)\\b"},{"include":"#fun_signature"}],"beginCaptures":{"1":{"name":"storage.modifier.native.move"}}},"phantom":{"name":"keyword.control.phantom.move","match":"\\b(phantom)\\b"},"primitives":{"name":"support.type.primitives.move","match":"\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\b"},"public_fun":{"name":"meta.public_fun.move","begin":"\\b(public)\\b","end":"(?\u003c=[;}])","patterns":[{"include":"#comments"},{"name":"storage.modifier.native.move","match":"\\b(native)\\b"},{"name":"storage.modifier.entry.move","match":"\\b(entry)\\b"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"name":"storage.modifier.public.script.move","match":"\\b(script|friend)\\b"}]},{"include":"#fun"}],"beginCaptures":{"1":{"name":"storage.modifier.public.move"}}},"resource_methods":{"name":"support.function.typed.move","match":"\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\b"},"script":{"name":"meta.script.move","begin":"\\b(script)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"meta.script_scope.move","begin":"{","end":"}","patterns":[{"include":"#const"},{"include":"#comments"},{"include":"#import"},{"include":"#fun"}]}],"beginCaptures":{"1":{"name":"storage.modifier.script.move"}}},"self_keyword":{"name":"variable.language.self.move","match":"\\b(self)\\b"},"spec":{"name":"meta.spec.move","begin":"\\b(spec)\\b","end":"(?\u003c=[;}])","patterns":[{"name":"storage.modifier.spec.target.move","match":"\\b(module|schema|struct|fun)"},{"name":"storage.modifier.spec.define.move","match":"\\b(define)"},{"name":"entity.name.function.move","match":"\\b(\\w+)\\b"},{"begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#spec_block"},{"include":"#spec_types"},{"include":"#spec_define"},{"include":"#spec_keywords"},{"include":"#control"},{"include":"#fun_call"},{"include":"#literals"},{"include":"#types"},{"include":"#let"}]}],"beginCaptures":{"1":{"name":"storage.modifier.spec.move"}}},"spec_block":{"name":"meta.spec_block.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#spec_block"},{"include":"#spec_types"},{"include":"#fun_call"},{"include":"#literals"},{"include":"#control"},{"include":"#types"},{"include":"#let"}]},"spec_define":{"name":"meta.spec_define.move","begin":"\\b(define)\\b","end":"(?=[;{])","patterns":[{"include":"#comments"},{"include":"#spec_types"},{"include":"#types"},{"begin":"(?\u003c=define)","end":"(?=[(])","patterns":[{"include":"#comments"},{"name":"entity.name.function.move","match":"\\b(\\w+)\\b"}]}],"beginCaptures":{"1":{"name":"keyword.control.move.spec"}}},"spec_keywords":{"name":"keyword.control.move.spec","match":"\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\b"},"spec_types":{"name":"support.type.vector.move","match":"\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\b"},"struct":{"name":"meta.struct.move","begin":"\\b(struct)\\b","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"name":"meta.struct_def.move","begin":"(?\u003c=struct)","end":"(?={)","patterns":[{"include":"#comments"},{"name":"keyword.control.ability.has.move","match":"\\b(has)\\b"},{"name":"entity.name.type.ability.move","match":"\\b(store|key|drop|copy)\\b"},{"name":"entity.name.type.move","match":"\\b(\\w+)\\b"},{"include":"#type_param"}]},{"name":"meta.struct_body.move","begin":"{","end":"}","patterns":[{"include":"#comments"},{"include":"#module_access"},{"include":"#types"}]}],"beginCaptures":{"1":{"name":"storage.modifier.type.move"}}},"type_param":{"name":"meta.generic_param.move","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#phantom"},{"include":"#module_access"},{"name":"entity.name.type.kind.move","match":"\\b(store|drop|key|copy)\\b"}]},"types":{"name":"meta.types.move","patterns":[{"include":"#primitives"},{"include":"#vector"},{"include":"#e_const"},{"name":"entity.name.type","match":"\\b([A-Z][A-Za-z0-9]+)\\b"},{"include":"#all_upper"}]},"vector":{"name":"meta.vector.move","begin":"\\b(vector)\u003c","end":"\u003e","patterns":[{"include":"#primitives"},{"include":"#vector"}],"beginCaptures":{"1":{"name":"support.type.vector.move"}}}}}
|