diff --git a/data/fixtures/scopes/markdown/comment.line.scope b/data/fixtures/scopes/markdown/comment.line.scope deleted file mode 100644 index f634660018..0000000000 --- a/data/fixtures/scopes/markdown/comment.line.scope +++ /dev/null @@ -1,10 +0,0 @@ - ---- - -[Content] = -[Removal] = -[Domain] = 0:0-0:21 - >---------------------< -0| - -[Insertion delimiter] = "\n" diff --git a/data/fixtures/scopes/markdown/textFragment.comment.block.scope b/data/fixtures/scopes/markdown/textFragment.comment.block.scope new file mode 100644 index 0000000000..4e5daae6be --- /dev/null +++ b/data/fixtures/scopes/markdown/textFragment.comment.block.scope @@ -0,0 +1,17 @@ + +--- + +[Content] = +[Removal] = +[Domain] = 0:0-3:3 + >---- +0| + ---< + +[Insertion delimiter] = " " diff --git a/packages/common/src/scopeSupportFacets/markdown.ts b/packages/common/src/scopeSupportFacets/markdown.ts index 4600a7ab4a..19e3360d63 100644 --- a/packages/common/src/scopeSupportFacets/markdown.ts +++ b/packages/common/src/scopeSupportFacets/markdown.ts @@ -1,11 +1,11 @@ import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; -const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel; +const { supported, notApplicable } = ScopeSupportFacetLevel; export const markdownScopeSupport: LanguageScopeSupportFacetMap = { - "comment.line": supported, "comment.block": supported, + "textFragment.comment.block": supported, section: supported, "section.iteration.document": supported, @@ -17,10 +17,6 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = { "collectionItem.unenclosed": supported, list: supported, - // Unsupported - "textFragment.comment.line": unsupported, - "textFragment.comment.block": unsupported, - // Not applicable anonymousFunction: notApplicable, @@ -53,6 +49,7 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = { "className.iteration.document": notApplicable, "collectionItem.unenclosed.iteration": notApplicable, command: notApplicable, + "comment.line": notApplicable, "condition.doWhile": notApplicable, "condition.for": notApplicable, "condition.if": notApplicable, @@ -133,6 +130,7 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = { "textFragment.element": notApplicable, "textFragment.string.multiLine": notApplicable, "textFragment.string.singleLine": notApplicable, + "textFragment.comment.line": notApplicable, "type.alias": notApplicable, "type.argument.formal": notApplicable, "type.argument.formal.constructor": notApplicable,