diff --git a/packages/app-web-docs/src/docs/contributing/scopes/chapter.mdx b/packages/app-web-docs/src/docs/contributing/scopes/chapter.mdx new file mode 100644 index 0000000000..addd422656 --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/chapter.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Chapter + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/namedParagraph.mdx b/packages/app-web-docs/src/docs/contributing/scopes/namedParagraph.mdx new file mode 100644 index 0000000000..17c4bea0ba --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/namedParagraph.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Named paragraph + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/part.mdx b/packages/app-web-docs/src/docs/contributing/scopes/part.mdx new file mode 100644 index 0000000000..0579c06e4b --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/part.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Part + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelFive.mdx b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelFive.mdx new file mode 100644 index 0000000000..237028fc7f --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelFive.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Section level five + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelFour.mdx b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelFour.mdx new file mode 100644 index 0000000000..360af0ff37 --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelFour.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Section level four + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelOne.mdx b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelOne.mdx new file mode 100644 index 0000000000..5291a8fd6b --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelOne.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Section level one + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelSix.mdx b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelSix.mdx new file mode 100644 index 0000000000..639cac41ee --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelSix.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Section level six + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelThree.mdx b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelThree.mdx new file mode 100644 index 0000000000..4767a18d8d --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelThree.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Section level three + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelTwo.mdx b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelTwo.mdx new file mode 100644 index 0000000000..d9f080bb86 --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/sectionLevelTwo.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Section level two + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/subParagraph.mdx b/packages/app-web-docs/src/docs/contributing/scopes/subParagraph.mdx new file mode 100644 index 0000000000..f643933bde --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/subParagraph.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Sub paragraph + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/subSection.mdx b/packages/app-web-docs/src/docs/contributing/scopes/subSection.mdx new file mode 100644 index 0000000000..d4b143bef7 --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/subSection.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Sub section + + diff --git a/packages/app-web-docs/src/docs/contributing/scopes/subSubSection.mdx b/packages/app-web-docs/src/docs/contributing/scopes/subSubSection.mdx new file mode 100644 index 0000000000..d0110763b8 --- /dev/null +++ b/packages/app-web-docs/src/docs/contributing/scopes/subSubSection.mdx @@ -0,0 +1,5 @@ +import { Scopes } from "./components/Scopes"; + +# Sub sub section + + diff --git a/packages/lib-common/src/scopeSupportFacets/scopeSupportFacetInfos.ts b/packages/lib-common/src/scopeSupportFacets/scopeSupportFacetInfos.ts index 7af0dfa813..ca8799f7c5 100644 --- a/packages/lib-common/src/scopeSupportFacets/scopeSupportFacetInfos.ts +++ b/packages/lib-common/src/scopeSupportFacets/scopeSupportFacetInfos.ts @@ -39,6 +39,10 @@ export const scopeSupportFacetInfos: Record< scopeType: "environment", }, + chapter: { + description: "A document chapter", + scopeType: "chapter", + }, section: { description: "A document section", scopeType: "section", @@ -49,6 +53,51 @@ export const scopeSupportFacetInfos: Record< "sections", "the parent section", ), + subSection: { + description: "A document subsection", + scopeType: "subSection", + }, + subSubSection: { + description: "A document subsubsection", + scopeType: "subSubSection", + }, + sectionLevelOne: { + description: "A level one section", + scopeType: "sectionLevelOne", + }, + sectionLevelTwo: { + description: "A level two section", + scopeType: "sectionLevelTwo", + }, + sectionLevelThree: { + description: "A level three section", + scopeType: "sectionLevelThree", + }, + sectionLevelFour: { + description: "A level four section", + scopeType: "sectionLevelFour", + }, + sectionLevelFive: { + description: "A level five section", + scopeType: "sectionLevelFive", + }, + sectionLevelSix: { + description: "A level six section", + scopeType: "sectionLevelSix", + }, + namedParagraph: { + description: "A named paragraph", + scopeType: "namedParagraph", + }, + subParagraph: { + description: "A subparagraph", + scopeType: "subParagraph", + }, + part: { + description: "A document part", + scopeType: "part", + }, + list: { description: "A list/array", scopeType: "list", diff --git a/packages/lib-common/src/scopeSupportFacets/scopeSupportFacets.types.ts b/packages/lib-common/src/scopeSupportFacets/scopeSupportFacets.types.ts index f9a626b18b..3eaec2ce0b 100644 --- a/packages/lib-common/src/scopeSupportFacets/scopeSupportFacets.types.ts +++ b/packages/lib-common/src/scopeSupportFacets/scopeSupportFacets.types.ts @@ -16,9 +16,21 @@ export const scopeSupportFacets = [ "endTag", "attribute", + "chapter", "section", "section.iteration.document", "section.iteration.parent", + "subSection", + "subSubSection", + "sectionLevelOne", + "sectionLevelTwo", + "sectionLevelThree", + "sectionLevelFour", + "sectionLevelFive", + "sectionLevelSix", + "namedParagraph", + "subParagraph", + "part", "selector", "unit", diff --git a/resources/fixtures/scopeSupportFacetInfos.md b/resources/fixtures/scopeSupportFacetInfos.md index dcef59d83d..09c260a81d 100644 --- a/resources/fixtures/scopeSupportFacetInfos.md +++ b/resources/fixtures/scopeSupportFacetInfos.md @@ -86,6 +86,10 @@ - `branch.try` A try/catch/finally branch - `branch.try.iteration` Iteration scope for try/catch/finally branches: the try-catch statement. +### chapter + +- `chapter` A document chapter + ### character - `character` A single character in the document @@ -275,6 +279,10 @@ - `namedFunction.iteration.document` Iteration scope for named functions: the entire document including leading and trailing empty lines. - `namedFunction.method` A named method declaration in a class +### namedParagraph + +- `namedParagraph` A named paragraph + ### nonWhitespaceSequence - `nonWhitespaceSequence` A sequence of non-whitespace characters @@ -291,6 +299,10 @@ - `paragraph` A single paragraph(contiguous block of lines) in the document +### part + +- `part` A document part + ### regularExpression - `regularExpression` A regular expression @@ -301,6 +313,30 @@ - `section.iteration.document` Iteration scope for sections: the entire document including leading and trailing empty lines. - `section.iteration.parent` Iteration scope for sections: the parent section. +### sectionLevelFive + +- `sectionLevelFive` A level five section + +### sectionLevelFour + +- `sectionLevelFour` A level four section + +### sectionLevelOne + +- `sectionLevelOne` A level one section + +### sectionLevelSix + +- `sectionLevelSix` A level six section + +### sectionLevelThree + +- `sectionLevelThree` A level three section + +### sectionLevelTwo + +- `sectionLevelTwo` A level two section + ### selector - `selector` A selector in a css rule set @@ -363,6 +399,18 @@ - `string.multiLine` A multi-line string - `string.singleLine` A single-line string +### subParagraph + +- `subParagraph` A subparagraph + +### subSection + +- `subSection` A document subsection + +### subSubSection + +- `subSubSection` A document subsubsection + ### surroundingPair - `surroundingPair` A delimiter pair, such as parentheses or quotes