File: javascript.bflang2

package info (click to toggle)
bluefish 2.2.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,568 kB
  • sloc: xml: 150,061; ansic: 60,177; python: 5,336; sh: 5,118; makefile: 1,006; sed: 16
file content (87 lines) | stat: -rw-r--r-- 4,340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<!--
		Bluefish HTML Editor
		javascript.bflang2 $Revision: 9126 $
 
		P15 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 3 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, see <http://www.gnu.org/licenses/>.		
-->
<!DOCTYPE bflang [
	<!ENTITY all-javascript SYSTEM "all-javascript.bfinc">
	<!ENTITY JQuery SYSTEM "JQuery.bfinc">
]>

<bflang name="Javascript" version="3" contexts="10" matches="778">
<header>
	<mime type="application/javascript"/>
	<mime type="com.netscape.javascript-​source"/>
	<mime type="application/x-ext-js"/> <!-- Windows 10 types -->
	<option name="load_reference" default="1"/>
	<option name="load_completion" default="1"/>
	<option name="show_in_menu" default="1"/>
	<option name="autocomplete_with_newlines" default="0" description="Autocomplete with newlines"/>
	<option name="autocomplete_javascript_var" default="1" description="Autocomplete javascript variables"/>
	<option name="autocomplete_javascript_let" default="1" description="Autocomplete javascript variables"/>
	<option name="javascript_object_methods" default="1" description="Autocomplete Javascript object methods" />
	<option name="javascript_css_properties" default="1" description="CSS properties" />
	<option name="JQuery" default="0" description="include JQuery syntax" />
	<highlight name="js-brackets-curly" style="brackets"  />
	<highlight name="js-brackets-round" style="brackets"  />
	<highlight name="js-brackets-square" style="brackets"  />
	<highlight name="js-comment" style="comment"  />
	<highlight name="js-css-property" style="function"  />
	<highlight name="js-function" style="function"  />
	<highlight name="js-keyword" style="keyword"  />
	<highlight name="js-property" style="special-keyword"  />
	<highlight name="js-special-keyword" style="special-keyword"  />
	<highlight name="js-string" style="string"  />
	<highlight name="js-type" style="type"  />
	<highlight name="js-value" style="value"  />
	<highlight name="js-variable" style="variable"  />
	<highlight name="js-regex" style="special-tag3"  />
</header>
<properties>
	<comment id="cm.cblockcomment" type="block" start="/*" end="*/" />
	<comment id="cm.cpplinecomment" type="line" start="//" />
	<smartindent characters="{" />
	<smartoutdent characters="}" />
	<smartselection characters="_" />
</properties>

<definition>
	<context symbols=" ;(){}[]:\&#34;\\',&gt;&lt;*&amp;^%!+=-|/?#&#9;&#10;&#13;." commentid_line="cm.cpplinecomment"  commentid_block="cm.cblockcomment">
		<element pattern="\([ ]*" id="e.html.js.lparen" is_regex="1" starts_block="1" highlight="js-brackets-round" />
		<element pattern="[ ]*\)" highlight="js-brackets-round" is_regex="1" ends_block="1" blockstartelement="e.html.js.lparen" />
		<element pattern="{" id="e.html.js.lbrace" starts_block="1" highlight="js-brackets-curly" block_name="Curly brackets block"/>
		<element pattern="}" highlight="js-brackets-curly" ends_block="1" blockstartelement="e.html.js.lbrace" />
		<element pattern="[" id="e.html.js.lbracket" starts_block="1" highlight="js-brackets-square" />
		<element pattern="]" highlight="js-brackets-square" ends_block="1" blockstartelement="e.html.js.lbracket" />
		&all-javascript;
		<group class="JQuery">
			&JQuery;
		</group>
		<element id="e.bcomment" pattern="/*" starts_block="1" highlight="js-comment" block_name="C style comment">
			<context symbols="*/&#9;&#10;&#13; " highlight="js-comment">
				<element pattern="*/" ends_block="1" blockstartelement="e.bcomment" highlight="js-comment" ends_context="1" />
			</context>
		</element>
		<element pattern="//" highlight="js-comment">
			<context symbols="&#10;&#13;&#9; " highlight="js-comment">
				<element pattern="(&#10;|&#13;|&#13;&#10;)" is_regex="1" highlight="js-comment" ends_context="1" />
			</context>
		</element>
	</context>
</definition>
</bflang>