diff --git a/src/lfview/lf-data-provider.ts b/src/lfview/lf-data-provider.ts index 96b7186ef..a3898bf8f 100644 --- a/src/lfview/lf-data-provider.ts +++ b/src/lfview/lf-data-provider.ts @@ -406,7 +406,7 @@ export class LFDataProvider implements vscode.TreeDataProvider\n`; const position = await this.getTargetPosition(editor.document.uri); this.addTextOnActiveEditor(editor, position!.end, importText); } diff --git a/syntaxes/lflang.tmLanguage.json b/syntaxes/lflang.tmLanguage.json index af4ae3827..c0c506124 100644 --- a/syntaxes/lflang.tmLanguage.json +++ b/syntaxes/lflang.tmLanguage.json @@ -281,7 +281,7 @@ }, "import-statement": { "begin": "(?=^\\s*import\\b)", - "end": ";|(?<=\")\\s*$", + "end": ";|(?<=\")\\s*$|(?<=>)\\s*$", "patterns": [ { "include": "#context-insensitive" @@ -301,13 +301,9 @@ ] }, { - "begin": "(?<=from)\\s*(\"|<)", - "end": "(\"|>)", + "begin": "(?<=from)\\s*(<)", + "end": "(>)", "patterns": [ - { - "name": "string.quoted.double.lflang", - "match": "(?<=\").*?(?=\")" - }, { "name": "string.quoted.angle.lflang", "match": "(?<=<).*?(?=>)"