diff options
Diffstat (limited to 'runtime/syntax/autohotkey.vim')
-rw-r--r-- | runtime/syntax/autohotkey.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/syntax/autohotkey.vim b/runtime/syntax/autohotkey.vim index bbefd6f7b..42d4cfdfe 100644 --- a/runtime/syntax/autohotkey.vim +++ b/runtime/syntax/autohotkey.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: AutoHotkey script file " Maintainer: Nikolai Weibull <now@bitwi.se> -" Latest Revision: 2007-06-01 +" Latest Revision: 2008-06-22 if exists("b:current_syntax") finish @@ -246,6 +246,15 @@ syn keyword autohotkeyBoolean \ true \ false +" TODO: Shouldn't we look for g:, b:, variables before defaulting to +" something? +if exists("g:autohotkey_syntax_sync_minlines") + let b:autohotkey_syntax_sync_minlines = g:autohotkey_syntax_sync_minlines +else + let b:autohotkey_syntax_sync_minlines = 50 +endif +exec "syn sync ccomment autohotkeyComment minlines=" . b:autohotkey_syntax_sync_minlines + hi def link autohotkeyTodo Todo hi def link autohotkeyComment Comment hi def link autohotkeyCommentStart autohotkeyComment |