From db7f06b431b5aaee1f9b0080024bfeee0714ef73 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sat, 23 May 2015 17:52:11 +0900 Subject: [PATCH] Add highlight for special variable 'result' --- syntax/nim.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syntax/nim.vim b/syntax/nim.vim index 948b78d..03c21ac 100644 --- a/syntax/nim.vim +++ b/syntax/nim.vim @@ -19,12 +19,16 @@ endif if !exists("nim_highlight_space_errors") let nim_highlight_space_errors = 1 endif +if !exists("nim_highlight_special_vars") + let nim_highlight_special_vars = 1 +endif if exists("nim_highlight_all") let nim_highlight_numbers = 1 let nim_highlight_builtins = 1 let nim_highlight_exceptions = 1 let nim_highlight_space_errors = 1 + let nim_highlight_special_vars = 1 endif syn region nimBrackets contained extend keepend matchgroup=Bold start=+\(\\\)\@= 508 || !exists("did_nim_syn_inits") HiLink nimComment Comment HiLink nimTodo Todo HiLink nimDecorator Define + HiLink nimSpecialVar Identifier if nim_highlight_numbers == 1 HiLink nimNumber Number