From 0360160a38aa3b04f666f2b347aed25242340d49 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 8 Aug 2022 14:17:30 +0200 Subject: Tighter syntax rules --- editors/vim/syntax/bruijn.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/vim/syntax') diff --git a/editors/vim/syntax/bruijn.vim b/editors/vim/syntax/bruijn.vim index d11cccc..45e75d9 100644 --- a/editors/vim/syntax/bruijn.vim +++ b/editors/vim/syntax/bruijn.vim @@ -7,7 +7,7 @@ endif syn match bruijnApplication /[()]/ syn match bruijnAbstraction /[[\]]/ -syn match bruijnIndex display "\d" +syn match bruijnIndex /\([^0-9]\)\@<=\d\([^0-9]\)\@=/ syn match bruijnNumber /[+-]\d\+/ syn match bruijnDefinition /^\t*\S\+/ syn match bruijnKeyword /:test\|:import\|:print/ -- cgit v1.2.3