mirror of
https://github.com/neovim/neovim.git
synced 2026-08-14 03:04:54 +00:00
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
90a9a8c752
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user