From f4cdb6e7be6061bfea56f3cef8097e1a1241d828 Mon Sep 17 00:00:00 2001 From: Kitty-Cricket Piapiac Date: Tue, 27 Jun 2023 18:08:15 -0700 Subject: [PATCH] update vim syntax highlighter ^labels as numbers --- README | 1 + vim/syntax/x20.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index f3539f7..c32cc70 100644 --- a/README +++ b/README @@ -10,6 +10,7 @@ layout ./kip* -- sdl2-based emulator ./d/ -- documentation ./t/ -- tests ./x/ -- examples + ./vim/ -- vim support patches, questions, comments welcome: kitty+kip@piapiac.org or you can open issues & pull requests: http://git.vern.cc/kcp/kip diff --git a/vim/syntax/x20.vim b/vim/syntax/x20.vim index 0e768cd..924c5b3 100644 --- a/vim/syntax/x20.vim +++ b/vim/syntax/x20.vim @@ -1,6 +1,6 @@ syn match x20com "{.*}" syn match x20fun "-\S*" -syn match x20num "#\S*\|@\S*" +syn match x20num "#\S*\|@\S*\|\^\S*" syn match x20pun ":\S*\|!\S*\|;" syn region x20str matchgroup=x20str start=/"/ end=/"/