From d6302d9c65fc2a4c258cbc95994cead798a2cda2 Mon Sep 17 00:00:00 2001 From: Krusty/Benediction Date: Sat, 21 Jan 2012 15:26:43 +0100 Subject: [PATCH] Replace [ix] notation by [iy] notation --- ftplugin/z80/z80_edit_functions.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ftplugin/z80/z80_edit_functions.vim b/ftplugin/z80/z80_edit_functions.vim index abb411d..40b21df 100644 --- a/ftplugin/z80/z80_edit_functions.vim +++ b/ftplugin/z80/z80_edit_functions.vim @@ -123,8 +123,15 @@ function! Z80Sjamsplus2vasm() exec "%s/\\(.*[^e]\\)dup\\(\\s*.*\\)/\\1repeat\\2/" catch endtry + " todo use endrepeat when corrected try - exec "%s/\\(.*\\)edup\\(\\s*.*\\)/\\1endrepeat\\2/" + exec "%s/\\(.*\\)edup\\(\\s*.*\\)/\\1endr\\2/" + catch + endtry + + " Remove bracket notation for ix/iy + try + exec "%s/\\[\\(i[xy]\\)\\(*\\)\\]/(\1\2)/" catch endtry