diff --git a/packages/app-web-docs/src/docs/user/languages/latex.mdx b/packages/app-web-docs/src/docs/user/languages/latex.mdx index 1953217cfc..241f09d4d8 100644 --- a/packages/app-web-docs/src/docs/user/languages/latex.mdx +++ b/packages/app-web-docs/src/docs/user/languages/latex.mdx @@ -30,6 +30,14 @@ Below are visualizations of all our scope tests for this language. These were cr +### Chapter + +#### 1. Chapter + +A document chapter + + + ### Collection item #### 1. Collection item: Unenclosed multi line @@ -90,6 +98,22 @@ Below are visualizations of all our scope tests for this language. These were cr +### Named paragraph + +#### 1. Named paragraph + +A named paragraph + + + +### Part + +#### 1. Part + +A document part + + + ### Section #### 1. Section @@ -112,6 +136,30 @@ Below are visualizations of all our scope tests for this language. These were cr +### Sub paragraph + +#### 1. Sub paragraph + +A subparagraph + + + +### Sub section + +#### 1. Sub section + +A document subsection + + + +### Sub sub section + +#### 1. Sub sub section + +A document subsubsection + + + ### Xml both tags #### 1. Tags diff --git a/packages/app-web-docs/src/docs/user/languages/markdown.mdx b/packages/app-web-docs/src/docs/user/languages/markdown.mdx index 83c834ec4a..300314631d 100644 --- a/packages/app-web-docs/src/docs/user/languages/markdown.mdx +++ b/packages/app-web-docs/src/docs/user/languages/markdown.mdx @@ -70,6 +70,54 @@ Below are visualizations of all our scope tests for this language. These were cr +### Section level five + +#### 1. Section level five + +A level five section + + + +### Section level four + +#### 1. Section level four + +A level four section + + + +### Section level one + +#### 1. Section level one + +A level one section + + + +### Section level six + +#### 1. Section level six + +A level six section + + + +### Section level three + +#### 1. Section level three + +A level three section + + + +### Section level two + +#### 1. Section level two + +A level two section + + + ## Internal scopes The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. diff --git a/packages/app-web-docs/src/docs/user/scopes/chapter.mdx b/packages/app-web-docs/src/docs/user/scopes/chapter.mdx index 4a5f782f39..23103435fa 100644 --- a/packages/app-web-docs/src/docs/user/scopes/chapter.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/chapter.mdx @@ -2,6 +2,8 @@ sidebar_label: Chapter --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Chapter Cursorless ID: `chapter` @@ -17,3 +19,19 @@ Default: `chapter` ## Examples - `"take chapter blue air"` - Selects the chapter containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Chapter + +A document chapter + +##### LaTeX + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/namedParagraph.mdx b/packages/app-web-docs/src/docs/user/scopes/namedParagraph.mdx index 0d4cce192d..c8db72d232 100644 --- a/packages/app-web-docs/src/docs/user/scopes/namedParagraph.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/namedParagraph.mdx @@ -2,6 +2,8 @@ sidebar_label: Paragraph --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Paragraph (Named paragraph) Cursorless ID: `namedParagraph` @@ -17,3 +19,19 @@ Default: `paragraph` ## Examples - `"take paragraph blue air"` - Selects the named paragraph containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Named paragraph + +A named paragraph + +##### LaTeX + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/part.mdx b/packages/app-web-docs/src/docs/user/scopes/part.mdx index 64099e4aec..9f82ed1389 100644 --- a/packages/app-web-docs/src/docs/user/scopes/part.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/part.mdx @@ -2,6 +2,8 @@ sidebar_label: Part --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Part Cursorless ID: `part` @@ -17,3 +19,19 @@ Default: `part` ## Examples - `"take part blue air"` - Selects the part containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Part + +A document part + +##### LaTeX + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/sectionLevelFive.mdx b/packages/app-web-docs/src/docs/user/scopes/sectionLevelFive.mdx index c5631ac3b7..8da400e0e7 100644 --- a/packages/app-web-docs/src/docs/user/scopes/sectionLevelFive.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/sectionLevelFive.mdx @@ -2,6 +2,8 @@ sidebar_label: Five section --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Five section (Section level five) Cursorless ID: `sectionLevelFive` @@ -18,3 +20,19 @@ Default: `five section`\ ## Examples - `"take five section blue air"` - Selects the section level five containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Section level five + +A level five section + +##### Markdown + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/sectionLevelFour.mdx b/packages/app-web-docs/src/docs/user/scopes/sectionLevelFour.mdx index 2815abbf6a..d2b699917e 100644 --- a/packages/app-web-docs/src/docs/user/scopes/sectionLevelFour.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/sectionLevelFour.mdx @@ -2,6 +2,8 @@ sidebar_label: Four section --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Four section (Section level four) Cursorless ID: `sectionLevelFour` @@ -18,3 +20,19 @@ Default: `four section`\ ## Examples - `"take four section blue air"` - Selects the section level four containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Section level four + +A level four section + +##### Markdown + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/sectionLevelOne.mdx b/packages/app-web-docs/src/docs/user/scopes/sectionLevelOne.mdx index 356b6dd986..0554bb1d18 100644 --- a/packages/app-web-docs/src/docs/user/scopes/sectionLevelOne.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/sectionLevelOne.mdx @@ -2,6 +2,8 @@ sidebar_label: One section --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # One section (Section level one) Cursorless ID: `sectionLevelOne` @@ -18,3 +20,19 @@ Default: `one section`\ ## Examples - `"take one section blue air"` - Selects the section level one containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Section level one + +A level one section + +##### Markdown + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/sectionLevelSix.mdx b/packages/app-web-docs/src/docs/user/scopes/sectionLevelSix.mdx index b854c06393..b406f83092 100644 --- a/packages/app-web-docs/src/docs/user/scopes/sectionLevelSix.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/sectionLevelSix.mdx @@ -2,6 +2,8 @@ sidebar_label: Six section --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Six section (Section level six) Cursorless ID: `sectionLevelSix` @@ -18,3 +20,19 @@ Default: `six section`\ ## Examples - `"take six section blue air"` - Selects the section level six containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Section level six + +A level six section + +##### Markdown + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/sectionLevelThree.mdx b/packages/app-web-docs/src/docs/user/scopes/sectionLevelThree.mdx index 3489dc3077..f5bf2b16b4 100644 --- a/packages/app-web-docs/src/docs/user/scopes/sectionLevelThree.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/sectionLevelThree.mdx @@ -2,6 +2,8 @@ sidebar_label: Three section --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Three section (Section level three) Cursorless ID: `sectionLevelThree` @@ -18,3 +20,19 @@ Default: `three section`\ ## Examples - `"take three section blue air"` - Selects the section level three containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Section level three + +A level three section + +##### Markdown + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/sectionLevelTwo.mdx b/packages/app-web-docs/src/docs/user/scopes/sectionLevelTwo.mdx index e97ec1a211..25beb54e32 100644 --- a/packages/app-web-docs/src/docs/user/scopes/sectionLevelTwo.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/sectionLevelTwo.mdx @@ -2,6 +2,8 @@ sidebar_label: Two section --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Two section (Section level two) Cursorless ID: `sectionLevelTwo` @@ -18,3 +20,19 @@ Default: `two section`\ ## Examples - `"take two section blue air"` - Selects the section level two containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Section level two + +A level two section + +##### Markdown + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/subParagraph.mdx b/packages/app-web-docs/src/docs/user/scopes/subParagraph.mdx index 6790bdaf0d..e885ec70e3 100644 --- a/packages/app-web-docs/src/docs/user/scopes/subParagraph.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/subParagraph.mdx @@ -2,6 +2,8 @@ sidebar_label: Subparagraph --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Subparagraph Cursorless ID: `subParagraph` @@ -17,3 +19,19 @@ Default: `subparagraph` ## Examples - `"take subparagraph blue air"` - Selects the subparagraph containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Sub paragraph + +A subparagraph + +##### LaTeX + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/subSection.mdx b/packages/app-web-docs/src/docs/user/scopes/subSection.mdx index 81c99ac1f3..2dc5256bb5 100644 --- a/packages/app-web-docs/src/docs/user/scopes/subSection.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/subSection.mdx @@ -2,6 +2,8 @@ sidebar_label: Subsection --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Subsection Cursorless ID: `subSection` @@ -17,3 +19,19 @@ Default: `subsection` ## Examples - `"take subsection blue air"` - Selects the subsection containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Sub section + +A document subsection + +##### LaTeX + + + + diff --git a/packages/app-web-docs/src/docs/user/scopes/subSubSection.mdx b/packages/app-web-docs/src/docs/user/scopes/subSubSection.mdx index db6058bbe7..554c9eeb29 100644 --- a/packages/app-web-docs/src/docs/user/scopes/subSubSection.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/subSubSection.mdx @@ -2,6 +2,8 @@ sidebar_label: Subsubsection --- +import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer"; + # Subsubsection Cursorless ID: `subSubSection` @@ -17,3 +19,19 @@ Default: `subsubsection` ## Examples - `"take subsubsection blue air"` - Selects the subsubsection containing the token containing letter 'a' with a blue hat. + + + +## Scopes + + + +### Sub sub section + +A document subsubsection + +##### LaTeX + + + + diff --git a/packages/lib-common/src/scopeSupportFacets/c.ts b/packages/lib-common/src/scopeSupportFacets/c.ts index ee999f98a3..8720be7673 100644 --- a/packages/lib-common/src/scopeSupportFacets/c.ts +++ b/packages/lib-common/src/scopeSupportFacets/c.ts @@ -254,6 +254,20 @@ export const cCoreScopeSupport: LanguageScopeSupportFacetMap = { "argumentList.actual.enum.multiLine": notApplicable, "argument.actual.enum.iteration": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "key.attribute": notApplicable, "value.attribute": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/clojure.ts b/packages/lib-common/src/scopeSupportFacets/clojure.ts index 88c95c5558..5c8c18f71f 100644 --- a/packages/lib-common/src/scopeSupportFacets/clojure.ts +++ b/packages/lib-common/src/scopeSupportFacets/clojure.ts @@ -349,6 +349,20 @@ export const clojureScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/csharp.ts b/packages/lib-common/src/scopeSupportFacets/csharp.ts index 0e37f3f3ed..587ff541f1 100644 --- a/packages/lib-common/src/scopeSupportFacets/csharp.ts +++ b/packages/lib-common/src/scopeSupportFacets/csharp.ts @@ -327,6 +327,20 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = { "statement.static": notApplicable, "interior.static": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "statement.misc": notApplicable, "statement.package": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/css.ts b/packages/lib-common/src/scopeSupportFacets/css.ts index dcb8561810..93d25a0a4b 100644 --- a/packages/lib-common/src/scopeSupportFacets/css.ts +++ b/packages/lib-common/src/scopeSupportFacets/css.ts @@ -371,6 +371,20 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = { "statement.import": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/dart.ts b/packages/lib-common/src/scopeSupportFacets/dart.ts index f13c42c90a..8bf3159672 100644 --- a/packages/lib-common/src/scopeSupportFacets/dart.ts +++ b/packages/lib-common/src/scopeSupportFacets/dart.ts @@ -323,6 +323,20 @@ export const dartScopeSupport: LanguageScopeSupportFacetMap = { "interior.static": notApplicable, "statement.static": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "statement.misc": notApplicable, "class.iteration.class": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/go.ts b/packages/lib-common/src/scopeSupportFacets/go.ts index d83a2bb7a0..4976b5cdbb 100644 --- a/packages/lib-common/src/scopeSupportFacets/go.ts +++ b/packages/lib-common/src/scopeSupportFacets/go.ts @@ -348,6 +348,20 @@ export const goScopeSupport: LanguageScopeSupportFacetMap = { "value.variable.destructuring": notApplicable, "value.assignment.destructuring": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "value.field.interface": notApplicable, "statement.misc": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/html.ts b/packages/lib-common/src/scopeSupportFacets/html.ts index 91b992b2b5..eaef7e46f3 100644 --- a/packages/lib-common/src/scopeSupportFacets/html.ts +++ b/packages/lib-common/src/scopeSupportFacets/html.ts @@ -350,6 +350,20 @@ export const htmlScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/java.ts b/packages/lib-common/src/scopeSupportFacets/java.ts index 83413aa8f8..728c86acac 100644 --- a/packages/lib-common/src/scopeSupportFacets/java.ts +++ b/packages/lib-common/src/scopeSupportFacets/java.ts @@ -340,6 +340,20 @@ export const javaScopeSupport: LanguageScopeSupportFacetMap = { "value.field.enum": notApplicable, "value.iteration.enum": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "type.return.lambda": notApplicable, pairDelimiter: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/javascript.ts b/packages/lib-common/src/scopeSupportFacets/javascript.ts index 2c8e6aa800..dc4452dc61 100644 --- a/packages/lib-common/src/scopeSupportFacets/javascript.ts +++ b/packages/lib-common/src/scopeSupportFacets/javascript.ts @@ -260,6 +260,20 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = { "branch.loop": notApplicable, "branch.loop.iteration": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, selector: notApplicable, @@ -285,6 +299,8 @@ export const javascriptScopeSupport: LanguageScopeSupportFacetMap = { // These are defined here because we don't want typescript to import them and // accidentally forget to add support for them. + /* NOT APPLICABLE */ + // Type "type.argument.formal": notApplicable, "type.argument.formal.iteration": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/json.ts b/packages/lib-common/src/scopeSupportFacets/json.ts index c4c27d7d63..302561e0d4 100644 --- a/packages/lib-common/src/scopeSupportFacets/json.ts +++ b/packages/lib-common/src/scopeSupportFacets/json.ts @@ -355,6 +355,20 @@ export const jsonScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/kotlin.ts b/packages/lib-common/src/scopeSupportFacets/kotlin.ts index 1d985bd9f3..43541c8f2d 100644 --- a/packages/lib-common/src/scopeSupportFacets/kotlin.ts +++ b/packages/lib-common/src/scopeSupportFacets/kotlin.ts @@ -335,6 +335,20 @@ export const kotlinScopeSupport: LanguageScopeSupportFacetMap = { "value.argument.formal.lambda": notApplicable, "value.argument.formal.lambda.iteration": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, regularExpression: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/latex.ts b/packages/lib-common/src/scopeSupportFacets/latex.ts index 71ec42391f..c4d1575b96 100644 --- a/packages/lib-common/src/scopeSupportFacets/latex.ts +++ b/packages/lib-common/src/scopeSupportFacets/latex.ts @@ -17,8 +17,15 @@ export const latexScopeSupport: LanguageScopeSupportFacetMap = { "interior.element": supported, "textFragment.element": supported, + // Document section: supported, "section.iteration.document": supported, + chapter: supported, + subSection: supported, + subSubSection: supported, + namedParagraph: supported, + subParagraph: supported, + part: supported, list: supported, "collectionItem.unenclosed.multiLine": supported, @@ -353,6 +360,14 @@ export const latexScopeSupport: LanguageScopeSupportFacetMap = { "argumentList.actual.singleLine": notApplicable, "argumentList.actual.multiLine": notApplicable, + // Document + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + // Miscellaneous fieldAccess: notApplicable, "name.iteration.block": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/lua.ts b/packages/lib-common/src/scopeSupportFacets/lua.ts index f494e5bc22..ad3a2130f3 100644 --- a/packages/lib-common/src/scopeSupportFacets/lua.ts +++ b/packages/lib-common/src/scopeSupportFacets/lua.ts @@ -362,6 +362,20 @@ export const luaScopeSupport: LanguageScopeSupportFacetMap = { "statement.package": notApplicable, "statement.import": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous pairDelimiter: notApplicable, environment: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/markdown.ts b/packages/lib-common/src/scopeSupportFacets/markdown.ts index 1ec4c9b95b..0ed5c59455 100644 --- a/packages/lib-common/src/scopeSupportFacets/markdown.ts +++ b/packages/lib-common/src/scopeSupportFacets/markdown.ts @@ -7,9 +7,16 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = { "comment.block": supported, "textFragment.comment.block": supported, + // Document section: supported, "section.iteration.document": supported, "section.iteration.parent": supported, + sectionLevelOne: supported, + sectionLevelTwo: supported, + sectionLevelThree: supported, + sectionLevelFour: supported, + sectionLevelFive: supported, + sectionLevelSix: supported, notebookCell: supported, "interior.cell": supported, @@ -356,6 +363,14 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/php.ts b/packages/lib-common/src/scopeSupportFacets/php.ts index 047b4d4e99..375a86d4e0 100644 --- a/packages/lib-common/src/scopeSupportFacets/php.ts +++ b/packages/lib-common/src/scopeSupportFacets/php.ts @@ -243,7 +243,7 @@ export const phpScopeSupport: LanguageScopeSupportFacetMap = { fieldAccess: unsupported, - /* NOT APPLunICABLE */ + /* NOT APPLICABLE */ // XML/HTML facets element: notApplicable, @@ -334,6 +334,20 @@ export const phpScopeSupport: LanguageScopeSupportFacetMap = { "name.typeAlias": notApplicable, "value.typeAlias": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "statement.misc": notApplicable, "type.variable.initialized": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/properties.ts b/packages/lib-common/src/scopeSupportFacets/properties.ts index 8c6f311d86..8843770c9d 100644 --- a/packages/lib-common/src/scopeSupportFacets/properties.ts +++ b/packages/lib-common/src/scopeSupportFacets/properties.ts @@ -372,6 +372,20 @@ export const propertiesScopeSupport: LanguageScopeSupportFacetMap = { "statement.variable.uninitialized": notApplicable, "name.variable.uninitialized": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous disqualifyDelimiter: notApplicable, environment: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/python.ts b/packages/lib-common/src/scopeSupportFacets/python.ts index dbec8cffe0..4f1ba398e1 100644 --- a/packages/lib-common/src/scopeSupportFacets/python.ts +++ b/packages/lib-common/src/scopeSupportFacets/python.ts @@ -342,6 +342,20 @@ export const pythonScopeSupport: LanguageScopeSupportFacetMap = { "value.constant": notApplicable, "type.constant": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "statement.misc": notApplicable, "statement.package": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/r.ts b/packages/lib-common/src/scopeSupportFacets/r.ts index 1c4e1a9411..8cad5ebb0c 100644 --- a/packages/lib-common/src/scopeSupportFacets/r.ts +++ b/packages/lib-common/src/scopeSupportFacets/r.ts @@ -368,6 +368,20 @@ export const rScopeSupport: LanguageScopeSupportFacetMap = { "statement.package": notApplicable, "statement.import": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "comment.block": notApplicable, "textFragment.comment.block": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/ruby.ts b/packages/lib-common/src/scopeSupportFacets/ruby.ts index 832797f212..021c690b7a 100644 --- a/packages/lib-common/src/scopeSupportFacets/ruby.ts +++ b/packages/lib-common/src/scopeSupportFacets/ruby.ts @@ -352,6 +352,20 @@ export const rubyScopeSupport: LanguageScopeSupportFacetMap = { "condition.for": notApplicable, "interior.for": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Misc "statement.package": notApplicable, "statement.import": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/rust.ts b/packages/lib-common/src/scopeSupportFacets/rust.ts index f504f998c3..332a62d2f5 100644 --- a/packages/lib-common/src/scopeSupportFacets/rust.ts +++ b/packages/lib-common/src/scopeSupportFacets/rust.ts @@ -347,6 +347,20 @@ export const rustScopeSupport: LanguageScopeSupportFacetMap = { "statement.static": notApplicable, "interior.static": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous "statement.misc": notApplicable, "value.field.class": notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/scala.ts b/packages/lib-common/src/scopeSupportFacets/scala.ts index b2bb6a89c0..cca23a6789 100644 --- a/packages/lib-common/src/scopeSupportFacets/scala.ts +++ b/packages/lib-common/src/scopeSupportFacets/scala.ts @@ -344,6 +344,20 @@ export const scalaScopeSupport: LanguageScopeSupportFacetMap = { "argumentList.actual.enum.singleLine": notApplicable, "argumentList.actual.enum.multiLine": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous pairDelimiter: notApplicable, regularExpression: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/scm.ts b/packages/lib-common/src/scopeSupportFacets/scm.ts index 6fb32fd981..ae6a728308 100644 --- a/packages/lib-common/src/scopeSupportFacets/scm.ts +++ b/packages/lib-common/src/scopeSupportFacets/scm.ts @@ -362,6 +362,20 @@ export const scmScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/talon.ts b/packages/lib-common/src/scopeSupportFacets/talon.ts index f1ce008e33..55d981b0ff 100644 --- a/packages/lib-common/src/scopeSupportFacets/talon.ts +++ b/packages/lib-common/src/scopeSupportFacets/talon.ts @@ -381,6 +381,20 @@ export const talonScopeSupport: LanguageScopeSupportFacetMap = { "name.variable.uninitialized": notApplicable, "statement.variable.uninitialized": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous list: notApplicable, map: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/talonList.ts b/packages/lib-common/src/scopeSupportFacets/talonList.ts index 4f0ca36941..b8f1d3a60e 100644 --- a/packages/lib-common/src/scopeSupportFacets/talonList.ts +++ b/packages/lib-common/src/scopeSupportFacets/talonList.ts @@ -373,6 +373,20 @@ export const talonListScopeSupport: LanguageScopeSupportFacetMap = { "value.constant": notApplicable, "type.constant": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous disqualifyDelimiter: notApplicable, environment: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/xml.ts b/packages/lib-common/src/scopeSupportFacets/xml.ts index 3554d67a3b..07dbd5d1db 100644 --- a/packages/lib-common/src/scopeSupportFacets/xml.ts +++ b/packages/lib-common/src/scopeSupportFacets/xml.ts @@ -350,6 +350,20 @@ export const xmlScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/packages/lib-common/src/scopeSupportFacets/yaml.ts b/packages/lib-common/src/scopeSupportFacets/yaml.ts index 1ca9c7447c..3c2ec852bd 100644 --- a/packages/lib-common/src/scopeSupportFacets/yaml.ts +++ b/packages/lib-common/src/scopeSupportFacets/yaml.ts @@ -354,6 +354,20 @@ export const yamlScopeSupport: LanguageScopeSupportFacetMap = { "statement.iteration.document": notApplicable, "statement.iteration.block": notApplicable, + // Document + chapter: notApplicable, + subSection: notApplicable, + subSubSection: notApplicable, + sectionLevelOne: notApplicable, + sectionLevelTwo: notApplicable, + sectionLevelThree: notApplicable, + sectionLevelFour: notApplicable, + sectionLevelFive: notApplicable, + sectionLevelSix: notApplicable, + namedParagraph: notApplicable, + subParagraph: notApplicable, + part: notApplicable, + // Miscellaneous environment: notApplicable, fieldAccess: notApplicable, diff --git a/resources/fixtures/scopes/latex/chapter.scope b/resources/fixtures/scopes/latex/chapter.scope new file mode 100644 index 0000000000..a314829ac8 --- /dev/null +++ b/resources/fixtures/scopes/latex/chapter.scope @@ -0,0 +1,10 @@ +\chapter{Introduction} +--- + +[Content] = +[Removal] = +[Domain] = 0:0-0:22 + >----------------------< +0| \chapter{Introduction} + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/latex/namedParagraph.scope b/resources/fixtures/scopes/latex/namedParagraph.scope new file mode 100644 index 0000000000..6df9b60a3d --- /dev/null +++ b/resources/fixtures/scopes/latex/namedParagraph.scope @@ -0,0 +1,10 @@ +\paragraph{Introduction} +--- + +[Content] = +[Removal] = +[Domain] = 0:0-0:24 + >------------------------< +0| \paragraph{Introduction} + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/latex/part.scope b/resources/fixtures/scopes/latex/part.scope new file mode 100644 index 0000000000..dd7a489934 --- /dev/null +++ b/resources/fixtures/scopes/latex/part.scope @@ -0,0 +1,10 @@ +\part{Introduction} +--- + +[Content] = +[Removal] = +[Domain] = 0:0-0:19 + >-------------------< +0| \part{Introduction} + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/latex/subParagraph.scope b/resources/fixtures/scopes/latex/subParagraph.scope new file mode 100644 index 0000000000..ff6f6566c9 --- /dev/null +++ b/resources/fixtures/scopes/latex/subParagraph.scope @@ -0,0 +1,10 @@ +\subparagraph{Introduction} +--- + +[Content] = +[Removal] = +[Domain] = 0:0-0:27 + >---------------------------< +0| \subparagraph{Introduction} + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/latex/subSection.scope b/resources/fixtures/scopes/latex/subSection.scope new file mode 100644 index 0000000000..36791ba864 --- /dev/null +++ b/resources/fixtures/scopes/latex/subSection.scope @@ -0,0 +1,10 @@ +\subsection{Introduction} +--- + +[Content] = +[Removal] = +[Domain] = 0:0-0:25 + >-------------------------< +0| \subsection{Introduction} + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/latex/subSubSection.scope b/resources/fixtures/scopes/latex/subSubSection.scope new file mode 100644 index 0000000000..0ff71521bb --- /dev/null +++ b/resources/fixtures/scopes/latex/subSubSection.scope @@ -0,0 +1,10 @@ +\subsubsection{Introduction} +--- + +[Content] = +[Removal] = +[Domain] = 0:0-0:28 + >----------------------------< +0| \subsubsection{Introduction} + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/markdown/sectionLevelFive.scope b/resources/fixtures/scopes/markdown/sectionLevelFive.scope new file mode 100644 index 0000000000..6d5d0ed41c --- /dev/null +++ b/resources/fixtures/scopes/markdown/sectionLevelFive.scope @@ -0,0 +1,15 @@ +##### H5 + +Sub +--- + +[Content] = +[Removal] = +[Domain] = 0:0-2:3 + >-------- +0| ##### H5 +1| +2| Sub + ---< + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/markdown/sectionLevelFour.scope b/resources/fixtures/scopes/markdown/sectionLevelFour.scope new file mode 100644 index 0000000000..d6136c56b9 --- /dev/null +++ b/resources/fixtures/scopes/markdown/sectionLevelFour.scope @@ -0,0 +1,15 @@ +#### H4 + +Sub +--- + +[Content] = +[Removal] = +[Domain] = 0:0-2:3 + >------- +0| #### H4 +1| +2| Sub + ---< + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/markdown/sectionLevelOne.scope b/resources/fixtures/scopes/markdown/sectionLevelOne.scope new file mode 100644 index 0000000000..ee117061da --- /dev/null +++ b/resources/fixtures/scopes/markdown/sectionLevelOne.scope @@ -0,0 +1,15 @@ +# H1 + +Sub +--- + +[Content] = +[Removal] = +[Domain] = 0:0-2:3 + >---- +0| # H1 +1| +2| Sub + ---< + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/markdown/sectionLevelSix.scope b/resources/fixtures/scopes/markdown/sectionLevelSix.scope new file mode 100644 index 0000000000..7b3adc6699 --- /dev/null +++ b/resources/fixtures/scopes/markdown/sectionLevelSix.scope @@ -0,0 +1,15 @@ +###### H6 + +Sub +--- + +[Content] = +[Removal] = +[Domain] = 0:0-2:3 + >--------- +0| ###### H6 +1| +2| Sub + ---< + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/markdown/sectionLevelThree.scope b/resources/fixtures/scopes/markdown/sectionLevelThree.scope new file mode 100644 index 0000000000..617f7e22cc --- /dev/null +++ b/resources/fixtures/scopes/markdown/sectionLevelThree.scope @@ -0,0 +1,15 @@ +### H3 + +Sub +--- + +[Content] = +[Removal] = +[Domain] = 0:0-2:3 + >------ +0| ### H3 +1| +2| Sub + ---< + +[Insertion delimiter] = "\n\n" diff --git a/resources/fixtures/scopes/markdown/sectionLevelTwo.scope b/resources/fixtures/scopes/markdown/sectionLevelTwo.scope new file mode 100644 index 0000000000..171c0e763b --- /dev/null +++ b/resources/fixtures/scopes/markdown/sectionLevelTwo.scope @@ -0,0 +1,15 @@ +## H2 + +Sub +--- + +[Content] = +[Removal] = +[Domain] = 0:0-2:3 + >----- +0| ## H2 +1| +2| Sub + ---< + +[Insertion delimiter] = "\n\n"