<?xml version="1.0" encoding="UTF-8" ?>
<!--
		Bluefish HTML Editor
		all-vbscript.bfinc $Revision: 4947 $
 
		Copyright (C) 2008-2009 Olivier Sessink

		This program is free software; you can redistribute it and/or modify
		it under the terms of the GNU General Public License as published by
		the Free Software Foundation; either version 2 of the License, or
		(at your option) any later version.

		This program is distributed in the hope that it will be useful,
		but WITHOUT ANY WARRANTY; without even the implied warranty of
		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
		GNU General Public License for more details.

		You should have received a copy of the GNU General Public License
		along with this program; if not, write to the Free Software
		Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.		
-->

<element pattern="(" id="vbs(" starts_block="1" highlight="vbs-brackets" />
<element pattern=")" highlight="vbs-brackets" ends_block="1" blockstartelement="vbs(" />
<group highlight="vbs-keyword" autocomplete="1" case_insens="1">
	<element pattern="and" />
	<element pattern="as" />
	<element pattern="call" />
	<element pattern="case" />
	<element pattern="default" />
	<element pattern="do" />
	<element pattern="each" />
	<element pattern="else" />
	<element pattern="elseif" />
	<element pattern="end" />
	<element pattern="exit" />
	<element pattern="explicit" />
	<element pattern="for" />
	<element pattern="goto" />
	<element pattern="if" />
	<element pattern="in" />
	<element pattern="is" />
	<element pattern="let" />
	<element pattern="loop" />
	<element pattern="mod" />
	<element pattern="new" />
	<element pattern="next" />
	<element pattern="not" />
	<element pattern="option" />
	<element pattern="or" />
	<element pattern="preserve" />
	<element pattern="private" />
	<element pattern="public" />
	<element pattern="redim" />
	<element pattern="rem" />
	<element pattern="resume" />
	<element pattern="select" />
	<element pattern="set" />
	<element pattern="step" />
	<element pattern="then" />
	<element pattern="to" />
	<element pattern="until" />
	<element pattern="wend" />
	<element pattern="while" />
	<element pattern="with" />
	<element pattern="xor" />
</group>
<group highlight="vbs-function" autocomplete="1" case_insens="1">
		<element pattern="cbool" />
		<element pattern="cbyte" />
		<element pattern="cchar" />
		<element pattern="cdate" />
		<element pattern="cdec" />
		<element pattern="cdbl" />
		<element pattern="cint" />
		<element pattern="class" />
		<element pattern="clng" />
		<element pattern="cobj" />
		<element pattern="csng" />
		<element pattern="cstr" />
</group>
<group highlight="vbs-type" autocomplete="1" case_insens="1">
	<element pattern="dim" />
	<element pattern="Array"/>
	<element pattern="const" />
	<element pattern="function" />
	<element pattern="sub" />
	<element pattern="codepage" />
	<element pattern="language" />
</group>
<group highlight="vbs-value" autocomplete="1" case_insens="1">
	<element pattern="true" />
	<element pattern="false" />
	<element pattern="nothing" />
	<element pattern="[-\.]?[0-9]+" is_regex="1" autocomplete="0"/>
</group>
<group highlight="vbs-keyword" autocomplete="1" case_insens="1">
	<element id="exit for" pattern="exit[\ \t]+for" is_regex="1" autocomplete_string="exit for" mayfold="1" />
	<element id="exit do" pattern="exit[\ \t]+do" is_regex="1" autocomplete_string="exit do" mayfold="1" />
	<element id="exit while" pattern="exit[\ \t]+while" is_regex="1" autocomplete_string="exit while" mayfold="1" />
	<element id="exit sub" pattern="exit[\ \t]+sub" is_regex="1" autocomplete_string="exit sub" mayfold="1" />
	<element id="exit function" pattern="exit[\ \t]+function" is_regex="1" autocomplete_string="exit function" mayfold="1" />
	<element pattern="for" starts_block="1" mayfold="1" />
	<element pattern="next" ends_block="1" blockstartelement="for" mayfold="1" />
	<element pattern="do" starts_block="1" mayfold="1" />
	<element pattern="loop" ends_block="1" blockstartelement="do" mayfold="1" />
	<element pattern="while" starts_block="1" mayfold="1" />
	<element pattern="wend" ends_block="1" blockstartelement="while" mayfold="1" />
	<element pattern="sub" starts_block="1" mayfold="1" />
	<element id="end sub" pattern="end[\ \t]+sub" is_regex="1" ends_block="1" blockstartelement="sub" autocomplete_string="end sub" mayfold="1" />
	<element pattern="function" starts_block="1" mayfold="1" />
	<element id="end function" pattern="end[\ \t]+function" is_regex="1" ends_block="1" blockstartelement="function" mayfold="1" autocomplete_string="end function" />
	<element pattern="property" starts_block="1" mayfold="1" />
	<element id="end property" pattern="end[\ \t]+property" is_regex="1" ends_block="1" blockstartelement="property" mayfold="1" autocomplete_string="end property" />
	
	<element pattern="if" highlight="vbs-keyword" />
	<element pattern="then[\ \t]*[&#10;&#13;]" is_regex="1" starts_block="1" mayfold="1" autocomplete_string="then" highlight="vbs-keyword" />
	<element id="end if" pattern="end[\ \t]+if" is_regex="1" ends_block="1" mayfold="1" autocomplete_string="end if" highlight="vbs-keyword" blockstartelement="then[\ \t]*[&#10;&#13;]" />
	<element pattern="then" highlight="vbs-keyword" />
	
	<element pattern="with" starts_block="1" mayfold="1" />
	<element id="end with" pattern="end[\ \t]+with" is_regex="1" ends_block="1" blockstartelement="with" mayfold="1" autocomplete_string="end with" />
	<element pattern="select" starts_block="1" mayfold="1" />
	<element id="end select" pattern="end[\ \t]+select" is_regex="1" ends_block="1" blockstartelement="select" mayfold="1" autocomplete_string="end select" />
	<element pattern="class" starts_block="1" mayfold="1" />
	<element id="end class" pattern="end[\ \t]+class" is_regex="1" ends_block="1" blockstartelement="class" mayfold="1" autocomplete_string="end class" />
</group>

<element pattern="\.?[a-zA-Z][a-zA-Z_0-9]*[\$%]?" is_regex="1" highlight="vbs-variable"/>

<element pattern="&#34;" highlight="vbs-string">
	<context symbols="&#34;" highlight="vbs-string">
		<element pattern="&#34;" highlight="vbs-string" ends_context="1" />
	</context>
</element>
<element id="vbs-comment" pattern="'" highlight="vbs-comment">
	<context symbols="&#10;&#13;&gt;&lt; " highlight="vbs-comment">
		<element pattern="[&#10;&#13;]" is_regex="1" highlight="vbs-comment" ends_context="1" />
	</context>
</element>
<element id="vbs-rem" pattern="rem " highlight="vbs-comment" case_insens="1">
	<context symbols="&#10;&#13;&gt;&lt; " highlight="vbs-comment">
		<element pattern="[&#10;&#13;]" is_regex="1" highlight="vbs-comment" ends_context="1" />
	</context>
</element>
