Skip to content

Commit 72e5e39

Browse files
Add missing markdown scopes facets (#2905)
1 parent cda2be5 commit 72e5e39

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

data/fixtures/scopes/markdown/comment.line.scope

-10
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
Hello
3+
World
4+
-->
5+
---
6+
7+
[Content] =
8+
[Removal] =
9+
[Domain] = 0:0-3:3
10+
>----
11+
0| <!--
12+
1| Hello
13+
2| World
14+
3| -->
15+
---<
16+
17+
[Insertion delimiter] = " "

packages/common/src/scopeSupportFacets/markdown.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
22
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
33

4-
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
4+
const { supported, notApplicable } = ScopeSupportFacetLevel;
55

66
export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
7-
"comment.line": supported,
87
"comment.block": supported,
8+
"textFragment.comment.block": supported,
99

1010
section: supported,
1111
"section.iteration.document": supported,
@@ -17,10 +17,6 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
1717
"collectionItem.unenclosed": supported,
1818
list: supported,
1919

20-
// Unsupported
21-
"textFragment.comment.line": unsupported,
22-
"textFragment.comment.block": unsupported,
23-
2420
// Not applicable
2521

2622
anonymousFunction: notApplicable,
@@ -53,6 +49,7 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
5349
"className.iteration.document": notApplicable,
5450
"collectionItem.unenclosed.iteration": notApplicable,
5551
command: notApplicable,
52+
"comment.line": notApplicable,
5653
"condition.doWhile": notApplicable,
5754
"condition.for": notApplicable,
5855
"condition.if": notApplicable,
@@ -133,6 +130,7 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
133130
"textFragment.element": notApplicable,
134131
"textFragment.string.multiLine": notApplicable,
135132
"textFragment.string.singleLine": notApplicable,
133+
"textFragment.comment.line": notApplicable,
136134
"type.alias": notApplicable,
137135
"type.argument.formal": notApplicable,
138136
"type.argument.formal.constructor": notApplicable,

0 commit comments

Comments
 (0)