diff --git a/src/vb/vb.test.ts b/src/vb/vb.test.ts index b6d0e0a1..17b4ffa2 100644 --- a/src/vb/vb.test.ts +++ b/src/vb/vb.test.ts @@ -434,5 +434,23 @@ testTokenization('vb', [ { startIndex: 13, type: '' }, { startIndex: 14, type: 'keyword.tag-for.vb' } ] - }] + }], + + [{ + line: 'Dim x = "hello', + tokens: [ + { startIndex: 0, type: 'keyword.dim.vb' }, + { startIndex: 3, type: '' }, + { startIndex: 4, type: 'identifier.vb' }, + { startIndex: 5, type: '' }, + { startIndex: 6, type: 'delimiter.vb' }, + { startIndex: 7, type: '' }, + { startIndex: 8, type: 'string.vb' } + ] + }, { + line: 'world"', + tokens: [ + { startIndex: 0, type: 'string.vb' }, + ] + }], ]); diff --git a/src/vb/vb.ts b/src/vb/vb.ts index ba0c83c4..99b90d92 100644 --- a/src/vb/vb.ts +++ b/src/vb/vb.ts @@ -169,7 +169,6 @@ export const language = { [/@symbols/, 'delimiter'], // strings - [/"([^"\\]|\\.)*$/, 'string.invalid'], // non-teminated string [/"/, 'string', '@string'], ],