summaryrefslogtreecommitdiff
path: root/runtime/syntax/autoit.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-04-30 15:56:52 +0200
committerBram Moolenaar <Bram@vim.org>2012-04-30 15:56:52 +0200
commit9a7224b5a0639c26c843c10afcafa5bf149271fd (patch)
tree9cafda4f3dd87f3ba177401248d65aa241f63ced /runtime/syntax/autoit.vim
parente8938e507e5dbeea25accd3586cd9aca13e5bf64 (diff)
downloadvim-git-9a7224b5a0639c26c843c10afcafa5bf149271fd.tar.gz
Fixed compatible mode in most runtime files.
Diffstat (limited to 'runtime/syntax/autoit.vim')
-rw-r--r--runtime/syntax/autoit.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/syntax/autoit.vim b/runtime/syntax/autoit.vim
index 47210f55b..1b9ab7458 100644
--- a/runtime/syntax/autoit.vim
+++ b/runtime/syntax/autoit.vim
@@ -6,6 +6,15 @@
" Script URL: http://www.vim.org/scripts/script.php?script_id=1239
" ChangeLog: Please visit the script URL for detailed change information
+" Quit when a syntax file was already loaded.
+if exists("b:current_syntax")
+ finish
+endif
+let s:keepcpo= &cpo
+set cpo&vim
+
+let b:current_syntax = "autoit"
+
" AutoIt is not case dependent
syn case ignore
@@ -1108,4 +1117,8 @@ hi def link autoitOption Type
hi def link autoitStyle Type
hi def link autoitConst Type
hi def link autoitSend Type
+
syn sync minlines=50
+
+let &cpo = s:keepcpo
+unlet s:keepcpo