2006-08-26 04:46:29 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-06-18 00:03:03 -05:00
|
|
|
<!--
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
This file is part of GtkSourceView
|
|
|
|
|
2007-06-18 00:03:03 -05:00
|
|
|
Author: Scott Martin <scott@coffeeblack.org>
|
|
|
|
Copyright (C) 2004 Scott Martin <scott@coffeeblack.org>
|
|
|
|
Copyright (C) 2005 Stef Walter (formerly Nate Nielsen) <stef@memberwebs.com>
|
|
|
|
Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
|
|
|
|
Copyright (C) 2005-2007 Emanuele Aina
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
GtkSourceView is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2007-06-22 03:04:07 -05:00
|
|
|
License as published by the Free Software Foundation; either
|
2011-01-05 22:45:36 -08:00
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2007-06-18 00:03:03 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
GtkSourceView is distributed in the hope that it will be useful,
|
2007-06-18 00:03:03 -05:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-06-22 03:04:07 -05:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2011-01-05 22:45:36 -08:00
|
|
|
Lesser General Public License for more details.
|
2007-06-18 00:03:03 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2007-06-18 00:03:03 -05:00
|
|
|
|
|
|
|
-->
|
2011-01-05 22:45:36 -08:00
|
|
|
<language id="js" _name="JavaScript" version="2.0" _section="Scripts">
|
2006-10-02 01:15:27 -05:00
|
|
|
<metadata>
|
2007-10-26 04:48:07 -05:00
|
|
|
<property name="mimetypes">application/javascript;application/x-javascript;text/x-javascript;text/javascript;text/x-js</property>
|
2007-09-09 14:21:19 -05:00
|
|
|
<property name="globs">*.js</property>
|
|
|
|
<property name="line-comment-start">//</property>
|
|
|
|
<property name="block-comment-start">/*</property>
|
|
|
|
<property name="block-comment-end">*/</property>
|
2006-10-02 01:15:27 -05:00
|
|
|
</metadata>
|
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
<styles>
|
2011-01-05 22:45:36 -08:00
|
|
|
<style id="comment" _name="Comment" map-to="def:comment"/>
|
|
|
|
<style id="error" _name="Error" map-to="def:error"/>
|
|
|
|
<style id="string" _name="String" map-to="def:string"/>
|
|
|
|
<style id="null-value" _name="Null Value" map-to="def:special-constant"/>
|
|
|
|
<style id="undefined-value" _name="Undefined Value" map-to="def:special-constant"/>
|
|
|
|
<style id="boolean" _name="Boolean value" map-to="def:boolean"/>
|
|
|
|
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
|
|
|
|
<style id="object" _name="Object"/> <!--map-to="def:others"-->
|
|
|
|
<style id="type" _name="Data Type" map-to="def:type"/>
|
|
|
|
<style id="function" _name="Function" map-to="def:function"/>
|
|
|
|
<style id="properties" _name="Properties" map-to="def:statement"/>
|
|
|
|
<style id="constructors" _name="Constructors" map-to="def:type"/>
|
|
|
|
<style id="future-words" _name="Future Reserved Keywords" map-to="def:error"/>
|
2006-08-26 04:46:29 -05:00
|
|
|
</styles>
|
|
|
|
|
|
|
|
<definitions>
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="js" class="no-spell-check">
|
2006-08-26 04:46:29 -05:00
|
|
|
<include>
|
|
|
|
|
|
|
|
<!-- Comments -->
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="line-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
|
2007-06-20 23:37:33 -05:00
|
|
|
<start>//</start>
|
2006-08-26 04:46:29 -05:00
|
|
|
<end>$</end>
|
|
|
|
<include>
|
2007-07-16 15:07:14 -05:00
|
|
|
<context ref="def:line-continue"/>
|
2006-12-31 04:54:51 -06:00
|
|
|
<context ref="def:in-comment"/>
|
2006-08-26 04:46:29 -05:00
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
|
2007-06-20 23:37:33 -05:00
|
|
|
<start>/\*</start>
|
|
|
|
<end>\*/</end>
|
2006-08-26 04:46:29 -05:00
|
|
|
<include>
|
2006-12-31 04:54:51 -06:00
|
|
|
<context ref="def:in-comment"/>
|
2006-08-26 04:46:29 -05:00
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
2007-09-09 14:21:19 -05:00
|
|
|
<context id="close-comment-outside-comment" style-ref="error">
|
|
|
|
<match>\*/(?!\*)</match>
|
|
|
|
</context>
|
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
<!-- Strings -->
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="string-double" end-at-line-end="true" style-ref="string" class="string" class-disabled="no-spell-check">
|
2006-08-26 04:46:29 -05:00
|
|
|
<start>"</start>
|
|
|
|
<end>"</end>
|
|
|
|
<include>
|
2007-07-16 15:07:14 -05:00
|
|
|
<context ref="def:line-continue"/>
|
2006-08-27 19:11:56 -05:00
|
|
|
<context ref="def:escape"/>
|
2006-08-26 04:46:29 -05:00
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="string-single" end-at-line-end="true" style-ref="string" class="string" class-disabled="no-spell-check">
|
2006-08-26 04:46:29 -05:00
|
|
|
<start>'</start>
|
|
|
|
<end>'</end>
|
|
|
|
<include>
|
2007-07-16 15:07:14 -05:00
|
|
|
<context ref="def:line-continue"/>
|
2006-08-27 19:11:56 -05:00
|
|
|
<context ref="def:escape"/>
|
2006-08-26 04:46:29 -05:00
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<!-- Numbers -->
|
2006-08-27 04:36:06 -05:00
|
|
|
<context ref="def:float"/>
|
2006-08-26 04:46:29 -05:00
|
|
|
<context ref="def:decimal"/>
|
|
|
|
<context ref="def:octal"/>
|
|
|
|
<context ref="def:hexadecimal"/>
|
|
|
|
|
2007-09-09 14:21:19 -05:00
|
|
|
<!-- Constants -->
|
|
|
|
<context id="null-value" style-ref="null-value">
|
|
|
|
<keyword>null</keyword>
|
|
|
|
</context>
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="undefined-value" style-ref="undefined-value">
|
|
|
|
<keyword>undefined</keyword>
|
|
|
|
</context>
|
2007-09-09 14:21:19 -05:00
|
|
|
<context id="boolean" style-ref="boolean">
|
|
|
|
<keyword>false</keyword>
|
|
|
|
<keyword>true</keyword>
|
|
|
|
</context>
|
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
<!-- Keywords -->
|
|
|
|
<context id="keywords" style-ref="keyword">
|
|
|
|
<keyword>break</keyword>
|
|
|
|
<keyword>case</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>catch</keyword>
|
|
|
|
<keyword>const</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>continue</keyword>
|
|
|
|
<keyword>default</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>delete</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>do</keyword>
|
|
|
|
<keyword>else</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>export</keyword>
|
|
|
|
<keyword>finally</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>for</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>function</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>if</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>import</keyword>
|
|
|
|
<keyword>instanceof</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>in</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>let</keyword>
|
|
|
|
<keyword>new</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>return</keyword>
|
|
|
|
<keyword>switch</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>this</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>throw</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>try</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>typeof</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>while</keyword>
|
|
|
|
<keyword>with</keyword>
|
|
|
|
<keyword>var</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>void</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="objects" style-ref="object">
|
|
|
|
<keyword>constructor</keyword>
|
|
|
|
<keyword>prototype</keyword>
|
|
|
|
</context>
|
|
|
|
|
2007-09-09 14:21:19 -05:00
|
|
|
<context id="types" style-ref="type">
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>Infinity</keyword>
|
|
|
|
<keyword>Math</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>NaN</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>NEGATIVE_INFINITY</keyword>
|
|
|
|
<keyword>POSITIVE_INFINITY</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="functions" style-ref="function">
|
|
|
|
<keyword>abs</keyword>
|
|
|
|
<keyword>acos</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>apply</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>asin</keyword>
|
|
|
|
<keyword>atan2</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>atan</keyword>
|
|
|
|
<keyword>call</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>ceil</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>charAt</keyword>
|
|
|
|
<keyword>charCodeAt</keyword>
|
|
|
|
<keyword>concat</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>cos</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>decodeURIComponent</keyword>
|
|
|
|
<keyword>decodeURI</keyword>
|
|
|
|
<keyword>encodeURIComponent</keyword>
|
|
|
|
<keyword>encodeURI</keyword>
|
|
|
|
<keyword>escape</keyword>
|
|
|
|
<keyword>eval</keyword>
|
|
|
|
<keyword>exec</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>exp</keyword>
|
|
|
|
<keyword>floor</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>fromCharCode</keyword>
|
|
|
|
<keyword>getDate</keyword>
|
|
|
|
<keyword>getDay</keyword>
|
|
|
|
<keyword>getFullYear</keyword>
|
|
|
|
<keyword>getHours</keyword>
|
|
|
|
<keyword>getMilliseconds</keyword>
|
|
|
|
<keyword>getMinutes</keyword>
|
|
|
|
<keyword>getMonth</keyword>
|
|
|
|
<keyword>getSeconds</keyword>
|
|
|
|
<keyword>getTime</keyword>
|
|
|
|
<keyword>getTimezoneOffset</keyword>
|
|
|
|
<keyword>getUTCDate</keyword>
|
|
|
|
<keyword>getUTCDay</keyword>
|
|
|
|
<keyword>getUTCFullYear</keyword>
|
|
|
|
<keyword>getUTCHours</keyword>
|
|
|
|
<keyword>getUTCMilliseconds</keyword>
|
|
|
|
<keyword>getUTCMinutes</keyword>
|
|
|
|
<keyword>getUTCMonth</keyword>
|
|
|
|
<keyword>getUTCSeconds</keyword>
|
|
|
|
<keyword>getYear</keyword>
|
|
|
|
<keyword>hasOwnProperty</keyword>
|
|
|
|
<keyword>indexOf</keyword>
|
|
|
|
<keyword>isFinite</keyword>
|
|
|
|
<keyword>isNaN</keyword>
|
|
|
|
<keyword>isPrototypeOf</keyword>
|
|
|
|
<keyword>join</keyword>
|
|
|
|
<keyword>lastIndexOf</keyword>
|
|
|
|
<keyword>localeCompare</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>log</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>match</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>max</keyword>
|
|
|
|
<keyword>min</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>parseFloat</keyword>
|
|
|
|
<keyword>parseInt</keyword>
|
|
|
|
<keyword>parse</keyword>
|
|
|
|
<keyword>pop</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>pow</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>propertyIsEnumerable</keyword>
|
|
|
|
<keyword>push</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>random</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>replace</keyword>
|
|
|
|
<keyword>reverse</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>round</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>search</keyword>
|
|
|
|
<keyword>setDate</keyword>
|
|
|
|
<keyword>setFullYear</keyword>
|
|
|
|
<keyword>setHours</keyword>
|
|
|
|
<keyword>setMilliseconds</keyword>
|
|
|
|
<keyword>setMinutes</keyword>
|
|
|
|
<keyword>setMonth</keyword>
|
|
|
|
<keyword>setSeconds</keyword>
|
|
|
|
<keyword>setTime</keyword>
|
|
|
|
<keyword>setUTCDate</keyword>
|
|
|
|
<keyword>setUTCFullYear</keyword>
|
|
|
|
<keyword>setUTCHours</keyword>
|
|
|
|
<keyword>setUTCMilliseconds</keyword>
|
|
|
|
<keyword>setUTCMinutes</keyword>
|
|
|
|
<keyword>setUTCMonth</keyword>
|
|
|
|
<keyword>setUTCSeconds</keyword>
|
|
|
|
<keyword>setYear</keyword>
|
|
|
|
<keyword>shift</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>sin</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>slice</keyword>
|
|
|
|
<keyword>sort</keyword>
|
|
|
|
<keyword>split</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>sqrt</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>substring</keyword>
|
|
|
|
<keyword>substr</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>tan</keyword>
|
|
|
|
<keyword>toDateString</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>toExponential</keyword>
|
|
|
|
<keyword>toFixed</keyword>
|
|
|
|
<keyword>toGMTString</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>toLocaleDateString</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>toLocaleLowerCase</keyword>
|
|
|
|
<keyword>toLocaleString</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>toLocaleTimeString</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>toLocaleUpperCase</keyword>
|
|
|
|
<keyword>toLowerCase</keyword>
|
|
|
|
<keyword>toPrecision</keyword>
|
|
|
|
<keyword>toString</keyword>
|
|
|
|
<keyword>toTimeString</keyword>
|
|
|
|
<keyword>toUpperCase</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>toUTCString</keyword>
|
|
|
|
<keyword>unescape</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>unshift</keyword>
|
|
|
|
<keyword>UTC</keyword>
|
|
|
|
<keyword>valueOf</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="properties" style-ref="properties">
|
|
|
|
<keyword>global</keyword>
|
|
|
|
<keyword>ignoreCase</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>lastIndex</keyword>
|
|
|
|
<keyword>length</keyword>
|
|
|
|
<keyword>message</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>multiline</keyword>
|
|
|
|
<keyword>name</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>source</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="constructors" style-ref="constructors">
|
|
|
|
<keyword>Array</keyword>
|
|
|
|
<keyword>Boolean</keyword>
|
|
|
|
<keyword>Date</keyword>
|
|
|
|
<keyword>Error</keyword>
|
|
|
|
<keyword>EvalError</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>Function</keyword>
|
|
|
|
<keyword>Number</keyword>
|
|
|
|
<keyword>Object</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>RangeError</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>RegExp</keyword>
|
|
|
|
<keyword>String</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>SyntaxError</keyword>
|
|
|
|
<keyword>TypeError</keyword>
|
|
|
|
<keyword>URIError</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="future-words" style-ref="future-words">
|
|
|
|
<keyword>abstract</keyword>
|
|
|
|
<keyword>boolean</keyword>
|
|
|
|
<keyword>byte</keyword>
|
|
|
|
<keyword>char</keyword>
|
|
|
|
<keyword>class</keyword>
|
|
|
|
<keyword>debugger</keyword>
|
|
|
|
<keyword>double</keyword>
|
|
|
|
<keyword>enum</keyword>
|
|
|
|
<keyword>extends</keyword>
|
|
|
|
<keyword>final</keyword>
|
|
|
|
<keyword>float</keyword>
|
|
|
|
<keyword>goto</keyword>
|
|
|
|
<keyword>implements</keyword>
|
|
|
|
<keyword>interface</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>int</keyword>
|
2006-08-26 04:46:29 -05:00
|
|
|
<keyword>long</keyword>
|
|
|
|
<keyword>native</keyword>
|
|
|
|
<keyword>package</keyword>
|
|
|
|
<keyword>private</keyword>
|
|
|
|
<keyword>protected</keyword>
|
|
|
|
<keyword>public</keyword>
|
|
|
|
<keyword>short</keyword>
|
|
|
|
<keyword>static</keyword>
|
|
|
|
<keyword>super</keyword>
|
|
|
|
<keyword>synchronized</keyword>
|
|
|
|
<keyword>throws</keyword>
|
|
|
|
<keyword>transient</keyword>
|
|
|
|
<keyword>volatile</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
</definitions>
|
|
|
|
</language>
|