From e8a1addb5a3b72e2518c35ecf13effa5b23ee411 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 13 Aug 2026 08:27:50 +0800 Subject: [PATCH] vim-patch:90a9a8c: runtime(algol68): Update syntax, fix syncing (#41291) Use "fromstart" syncing. Pragment regions are delimited by shared start/end tokens which render other syncing types largely useless. A sync point located in the middle of a multiline comment cannot distinguish the end token from a start token and the erroneously created region runs to EOF. closes: vim/vim#21032 https://github.com/vim/vim/commit/90a9a8c7523741f4a9cd091a0f1727902e8c9340 Co-authored-by: Doug Kearns --- runtime/syntax/algol68.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/syntax/algol68.vim b/runtime/syntax/algol68.vim index 41b9797c51..9ad46066fe 100644 --- a/runtime/syntax/algol68.vim +++ b/runtime/syntax/algol68.vim @@ -3,14 +3,12 @@ " Version: 0.4 " Maintainer: Janis Papanagnou " Previous Maintainer: NevilleD.ALGOL_68@sgr-a.net -" Last Change: 2026 Jun 13 +" Last Change: 2026 Aug 12 if exists("b:current_syntax") finish endif -syn sync minlines=250 maxlines=500 - " Algol68 Final Report, unrevised syn keyword algol68PreProc PRIORITY syn keyword algol68Operator BTB CTB CONJ QUOTE CT CTAB EITHER SIGN @@ -487,6 +485,9 @@ if !exists("algol68_no_preludes") endif +" pragment regions with matching start/end tokens necessitate a full parse +syn sync fromstart + " Define the default highlighting. hi def link algol68Boolean Boolean hi def link algol68Comment Comment