File tree Expand file tree Collapse file tree 2 files changed +59
-16
lines changed Expand file tree Collapse file tree 2 files changed +59
-16
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"fileTypes" : [],
3
- "injectionSelector" : " L:markup.fenced_code.block .markdown" ,
3
+ "injectionSelector" : " L:text.html .markdown" ,
4
4
"patterns" : [
5
5
{
6
6
"include" : " #kotlin-code-block"
7
7
}
8
8
],
9
9
"repository" : {
10
10
"kotlin-code-block" : {
11
- "begin" : " kotlin" ,
12
- "end" : " (^|\\ G)(?=\\ s*[`~]{3,}\\ s*$)" ,
13
- "contentName" : " meta.embedded.block.kotlin" ,
11
+ "begin" : " (^|\\ G)(\\ s*)(\\ `{3,}|~{3,})\\ s*(?i:(kotlin)(\\ s+[^`~]*)?$)" ,
12
+ "name" : " markup.fenced_code.block.markdown" ,
13
+ "end" : " (^|\\ G)(\\ 2|\\ s{0,3})(\\ 3)\\ s*$" ,
14
+ "beginCaptures" : {
15
+ "3" : {
16
+ "name" : " punctuation.definition.markdown"
17
+ },
18
+ "4" : {
19
+ "name" : " fenced_code.block.language.markdown"
20
+ },
21
+ "5" : {
22
+ "name" : " fenced_code.block.language.attributes.markdown"
23
+ }
24
+ },
25
+ "endCaptures" : {
26
+ "3" : {
27
+ "name" : " punctuation.definition.markdown"
28
+ }
29
+ },
14
30
"patterns" : [
15
31
{
16
- "include" : " source.kotlin"
32
+ "begin" : " (^|\\ G)(\\ s*)(.*)" ,
33
+ "while" : " (^|\\ G)(?!\\ s*([`~]{3,})\\ s*$)" ,
34
+ "contentName" : " meta.embedded.block.kotlin" ,
35
+ "patterns" : [
36
+ {
37
+ "include" : " source.kotlin"
38
+ }
39
+ ]
17
40
}
18
41
]
19
42
}
Original file line number Diff line number Diff line change 10
10
" Programming Languages"
11
11
],
12
12
"contributes" : {
13
- "languages" : [{
14
- "id" : " kotlin" ,
15
- "aliases" : [" Kotlin" , " kotlin" ],
16
- "extensions" : [" .kt" ," .kts" ],
17
- "configuration" : " ../kotlin.configuration.json"
18
- }],
19
- "grammars" : [{
20
- "language" : " kotlin" ,
21
- "scopeName" : " source.kotlin" ,
22
- "path" : " ../Kotlin.tmLanguage.json"
23
- }]
13
+ "languages" : [
14
+ {
15
+ "id" : " kotlin" ,
16
+ "aliases" : [
17
+ " Kotlin" ,
18
+ " kotlin"
19
+ ],
20
+ "extensions" : [
21
+ " .kt" ,
22
+ " .kts"
23
+ ],
24
+ "configuration" : " ../kotlin.configuration.json"
25
+ }
26
+ ],
27
+ "grammars" : [
28
+ {
29
+ "language" : " kotlin" ,
30
+ "scopeName" : " source.kotlin" ,
31
+ "path" : " ../Kotlin.tmLanguage.json"
32
+ },
33
+ {
34
+ "scopeName" : " markdown.kotlin.codeblock" ,
35
+ "path" : " ../codeblock.json" ,
36
+ "injectTo" : [
37
+ " text.html.markdown"
38
+ ],
39
+ "embeddedLanguages" : {
40
+ "meta.embedded.block.kotlin" : " kotlin"
41
+ }
42
+ }
43
+ ]
24
44
}
25
45
}
You can’t perform that action at this time.
0 commit comments