From 3fa4bea6df42596539c613f4f2d9ad561b8fbc3b Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Fri, 13 Aug 2021 19:05:46 +0800 Subject: [PATCH] Fix keyword error from containedin pattern --- syntax/patch/vue-keyword.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/patch/vue-keyword.vim b/syntax/patch/vue-keyword.vim index e5922eb..8e68275 100644 --- a/syntax/patch/vue-keyword.vim +++ b/syntax/patch/vue-keyword.vim @@ -18,6 +18,8 @@ function! s:GetMatchOption() if useJavaScriptPlugin let containedin = 'jsObject,jsFuncBlock,@jsExpression' else + " Just to avoid error from the containedin pattern + syntax match javascriptScriptBlock /javascriptScriptBlock/ let containedin = '.*ScriptBlock' endif let containedin .= ',typescriptIdentifierName'