1" Vim syntax file 2" Language: SSWF 3" Maintainer: Alexis Wilke <alexis@m2osw.com> 4" Last change: 2003 Nov 1 5" 6" Copyright (c) 2002-2009 Made to Order Software Corp. 7" 8" Permission is hereby granted, free of charge, to any 9" person obtaining a copy of this software and 10" associated documentation files (the "Software"), to 11" deal in the Software without restriction, including 12" without limitation the rights to use, copy, modify, 13" merge, publish, distribute, sublicense, and/or sell 14" copies of the Software, and to permit persons to whom 15" the Software is furnished to do so, subject to the 16" following conditions: 17" 18" The above copyright notice and this permission notice 19" shall be included in all copies or substantial 20" portions of the Software. 21" 22" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 23" ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 24" LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 25" FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO 26" EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 27" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 28" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 29" ARISING FROM, OUT OF OR IN CONNECTION WITH THE 30" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 31" SOFTWARE. 32" 33 34" V5: Remove any other syntax 35" V6: Keep what is already defined 36if version < 600 37 syntax clear 38elseif exists("b:current_syntax") 39 finish 40endif 41 42 43" Read the SSWF syntax to start with 44if version < 600 45 so <sfile>:p:h/sswf.vim 46else 47 runtime! syntax/sswf.vim 48 unlet b:current_syntax 49endif 50 51" XSWF tags 52syn match xswfTag "<variable>" 53syn match xswfTag "</variable>" 54syn match xswfTag "<sample>" 55syn match xswfTag "</sample>" 56 57let b:current_syntax = "xswf" 58 59if !exists("did_xswf_syntax_inits") 60 let did_xswf_syntax_inits = 1 61 hi xswfTag guifg=#338833 62endif 63