blob: affca384815adba56a29bd540466f663136d85f0 [file] [log] [blame]
Bram Moolenaar4a748032010-09-30 21:47:56 +02001" Vim filetype plugin file
2" Language: Falcon
3" Author: Steven Oliver <oliver.steven@gmail.com>
Bram Moolenaarec7944a2013-06-12 21:29:15 +02004" Copyright: Copyright (c) 2009-2013 Steven Oliver
Bram Moolenaar4a748032010-09-30 21:47:56 +02005" License: You may redistribute this under the same terms as Vim itself
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +02006" Last Update: 2020 Oct 10
Bram Moolenaar4a748032010-09-30 21:47:56 +02007" --------------------------------------------------------------------------
Bram Moolenaar4a748032010-09-30 21:47:56 +02008
9" Only do this when not done yet for this buffer
10if (exists("b:did_ftplugin"))
11 finish
12endif
13let b:did_ftplugin = 1
14
15let s:cpo_save = &cpo
16set cpo&vim
17
Bram Moolenaar4f4d51a2020-10-11 13:57:40 +020018setlocal softtabstop=4 shiftwidth=4
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010019setlocal suffixesadd=.fal,.ftd
Bram Moolenaar4a748032010-09-30 21:47:56 +020020
21" Matchit support
22if exists("loaded_matchit") && !exists("b:match_words")
23 let b:match_ignorecase = 0
24
25 let b:match_words =
26 \ '\<\%(if\|case\|while\|until\|for\|do\|class\)\>=\@!' .
27 \ ':' .
28 \ '\<\%(else\|elsif\|when\)\>' .
29 \ ':' .
30 \ '\<end\>' .
31 \ ',{:},\[:\],(:)'
32endif
33
Bram Moolenaar4a748032010-09-30 21:47:56 +020034setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
35
36" Windows allows you to filter the open file dialog
37if has("gui_win32") && !exists("b:browsefilter")
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010038 let b:browsefilter = "Falcon Source Files (*.fal *.ftd)\t*.fal;*.ftd\n" .
Bram Moolenaar4a748032010-09-30 21:47:56 +020039 \ "All Files (*.*)\t*.*\n"
40endif
41
Bram Moolenaar61d35bd2012-03-28 20:51:51 +020042let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<"
43 \ . " suffixesadd< comments<"
44 \ . "| unlet! b:browsefiler"
45
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010046let &cpo = s:cpo_save
47unlet s:cpo_save
48
Bram Moolenaar4a748032010-09-30 21:47:56 +020049" vim: set sw=4 sts=4 et tw=80 :