From 21ac6781a76183b92eed77622044d2232ec9f0a0 Mon Sep 17 00:00:00 2001 From: Amirali Esmaeili Date: Wed, 9 Dec 2020 17:56:27 +0330 Subject: [PATCH 1/2] Fix syntax highlighting synchronization --- syntax/rescript.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/rescript.vim b/syntax/rescript.vim index 6334d13..2ed939c 100644 --- a/syntax/rescript.vim +++ b/syntax/rescript.vim @@ -2,6 +2,8 @@ if exists("b:current_syntax") finish endif +syntax sync fromstart + " Boolean syntax keyword resBoolean true false From 93099ab80ac19e63df3f35580239f4166412493f Mon Sep 17 00:00:00 2001 From: Amirali Esmaeili Date: Wed, 9 Dec 2020 18:32:39 +0330 Subject: [PATCH 2/2] Use minlines 600 to prevent syntax highlight sync problems --- syntax/rescript.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax/rescript.vim b/syntax/rescript.vim index 2ed939c..2178228 100644 --- a/syntax/rescript.vim +++ b/syntax/rescript.vim @@ -2,7 +2,8 @@ if exists("b:current_syntax") finish endif -syntax sync fromstart +" See https://github.com/rescript-lang/vim-rescript/issues/14 +syntax sync minlines=600 " Boolean syntax keyword resBoolean true false