File tree 1 file changed +3
-2
lines changed
extensions/markdown-language-features/src/features
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,17 @@ const referenceLinkPattern = /(\[((?:\\\]|[^\]])+)\]\[\s*?)([^\s\]]*?)\]/g;
108
108
const definitionPattern = / ^ ( [ \t ] * \[ (? ! \^ ) ( (?: \\ \] | [ ^ \] ] ) + ) \] : \s * ) ( [ ^ < ] \S * | < [ ^ > ] + > ) / gm;
109
109
const inlineCodePattern = / (?: (?< ! ` ) ( ` + ) (? ! ` ) (?: .+ ?| .* ?(?: (?: \r ? \n ) .+ ?) * ?) (?: \r ? \n ) ? (?< ! ` ) \1(? ! ` ) ) / g;
110
110
111
- type CodeInDocument = {
111
+ interface CodeInDocument {
112
112
/**
113
113
* code blocks and fences each represented by [line_start,line_end).
114
114
*/
115
115
readonly multiline : ReadonlyArray < [ number , number ] > ;
116
+
116
117
/**
117
118
* inline code spans each represented by {@link vscode.Range}.
118
119
*/
119
120
readonly inline : readonly vscode . Range [ ] ;
120
- } ;
121
+ }
121
122
122
123
async function findCode ( document : vscode . TextDocument , engine : MarkdownEngine ) : Promise < CodeInDocument > {
123
124
const tokens = await engine . parse ( document ) ;
You can’t perform that action at this time.
0 commit comments