Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit fa86c6b

Browse files
committed
Add TypeScript addin.
1 parent eb3bb41 commit fa86c6b

File tree

129 files changed

+107991
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+107991
-51
lines changed

SharpDevelop.Tests.sln

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2012
4-
# SharpDevelop 5.0
4+
# SharpDevelop 5.1
55
VisualStudioVersion = 12.0.20827.3
66
MinimumVisualStudioVersion = 10.0.40219.1
77
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
@@ -94,6 +94,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamlBinding.Tests", "src\Ad
9494
EndProject
9595
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBBinding", "src\AddIns\BackendBindings\VBBinding\Project\VBBinding.vbproj", "{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}"
9696
EndProject
97+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptBinding", "src\AddIns\BackendBindings\TypeScript\Project\TypeScriptBinding.csproj", "{94BBCA55-A20E-4782-93B0-3566D185F7C1}"
98+
EndProject
99+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptBinding.Tests", "src\AddIns\BackendBindings\TypeScript\Test\TypeScriptBinding.Tests.csproj", "{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}"
100+
EndProject
97101
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{F3662720-9EA2-4591-BBC6-97361DCE50A9}"
98102
EndProject
99103
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelpViewer", "src\AddIns\Misc\HelpViewer\HelpViewer.csproj", "{80F76D10-0B44-4D55-B4BD-DAEB5464090C}"
@@ -398,6 +402,14 @@ Global
398402
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.Build.0 = Debug|Any CPU
399403
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.ActiveCfg = Release|Any CPU
400404
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.Build.0 = Release|Any CPU
405+
{94BBCA55-A20E-4782-93B0-3566D185F7C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
406+
{94BBCA55-A20E-4782-93B0-3566D185F7C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
407+
{94BBCA55-A20E-4782-93B0-3566D185F7C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
408+
{94BBCA55-A20E-4782-93B0-3566D185F7C1}.Release|Any CPU.Build.0 = Release|Any CPU
409+
{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
410+
{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Debug|Any CPU.Build.0 = Debug|Any CPU
411+
{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Release|Any CPU.ActiveCfg = Release|Any CPU
412+
{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915}.Release|Any CPU.Build.0 = Release|Any CPU
401413
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
402414
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Debug|Any CPU.Build.0 = Debug|Any CPU
403415
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -685,6 +697,8 @@ Global
685697
{85C09AD8-183B-403A-869A-7226646218A9} = {E0646C25-36F2-4524-969F-FA621353AB94}
686698
{F390DA70-1FE1-4715-81A0-389AB010C130} = {E0646C25-36F2-4524-969F-FA621353AB94}
687699
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F} = {E0646C25-36F2-4524-969F-FA621353AB94}
700+
{94BBCA55-A20E-4782-93B0-3566D185F7C1} = {E0646C25-36F2-4524-969F-FA621353AB94}
701+
{6F22CECC-2ABA-4D5D-A3F8-1C4F4A46C915} = {E0646C25-36F2-4524-969F-FA621353AB94}
688702
{F3662720-9EA2-4591-BBC6-97361DCE50A9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
689703
{80F76D10-0B44-4D55-B4BD-DAEB5464090C} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
690704
{9196DD8A-B4D4-4780-8742-C5762E547FC2} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}

SharpDevelop.sln

Lines changed: 29 additions & 50 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
4+
// software and associated documentation files (the "Software"), to deal in the Software
5+
// without restriction, including without limitation the rights to use, copy, modify, merge,
6+
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
7+
// to whom the Software is furnished to do so, subject to the following conditions:
8+
//
9+
// The above copyright notice and this permission notice shall be included in all copies or
10+
// substantial portions of the Software.
11+
//
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15+
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
17+
// DEALINGS IN THE SOFTWARE.
18+
19+
using System.Reflection;
20+
21+
// Information about this assembly is defined by the following
22+
// attributes.
23+
//
24+
// change them to the information which is associated with the assembly
25+
// you compile.
26+
27+
[assembly: AssemblyTitle("TypeScriptBinding")]
28+
[assembly: AssemblyDescription("TypeScript support.")]
29+
[assembly: AssemblyConfiguration("")]
30+
[assembly: AssemblyTrademark("")]
31+
[assembly: AssemblyCulture("")]
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 2.0
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">2.0</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
<value>[base64 mime encoded serialized .NET Framework object]</value>
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27+
<comment>This is a comment</comment>
28+
</data>
29+
30+
There are any number of "resheader" rows that contain simple
31+
name/value pairs.
32+
33+
Each data row contains a name, and value. The row also contains a
34+
type or mimetype. Type corresponds to a .NET class that support
35+
text/value conversion through the TypeConverter architecture.
36+
Classes that don't support this are serialized and stored with the
37+
mimetype set.
38+
39+
The mimetype is used for serialized objects, and tells the
40+
ResXResourceReader how to depersist the object. This is currently not
41+
extensible. For a given mimetype the value must be set accordingly:
42+
43+
Note - application/x-microsoft.net.object.binary.base64 is the format
44+
that the ResXResourceWriter will generate, however the reader can
45+
read any of the formats listed below.
46+
47+
mimetype: application/x-microsoft.net.object.binary.base64
48+
value : The object must be serialized with
49+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50+
: and then encoded with base64 encoding.
51+
52+
mimetype: application/x-microsoft.net.object.soap.base64
53+
value : The object must be serialized with
54+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55+
: and then encoded with base64 encoding.
56+
57+
mimetype: application/x-microsoft.net.object.bytearray.base64
58+
value : The object must be serialized into a byte array
59+
: using a System.ComponentModel.TypeConverter
60+
: and then encoded with base64 encoding.
61+
-->
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64+
<xsd:element name="root" msdata:IsDataSet="true">
65+
<xsd:complexType>
66+
<xsd:choice maxOccurs="unbounded">
67+
<xsd:element name="metadata">
68+
<xsd:complexType>
69+
<xsd:sequence>
70+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
71+
</xsd:sequence>
72+
<xsd:attribute name="name" use="required" type="xsd:string" />
73+
<xsd:attribute name="type" type="xsd:string" />
74+
<xsd:attribute name="mimetype" type="xsd:string" />
75+
<xsd:attribute ref="xml:space" />
76+
</xsd:complexType>
77+
</xsd:element>
78+
<xsd:element name="assembly">
79+
<xsd:complexType>
80+
<xsd:attribute name="alias" type="xsd:string" />
81+
<xsd:attribute name="name" type="xsd:string" />
82+
</xsd:complexType>
83+
</xsd:element>
84+
<xsd:element name="data">
85+
<xsd:complexType>
86+
<xsd:sequence>
87+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89+
</xsd:sequence>
90+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93+
<xsd:attribute ref="xml:space" />
94+
</xsd:complexType>
95+
</xsd:element>
96+
<xsd:element name="resheader">
97+
<xsd:complexType>
98+
<xsd:sequence>
99+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100+
</xsd:sequence>
101+
<xsd:attribute name="name" type="xsd:string" use="required" />
102+
</xsd:complexType>
103+
</xsd:element>
104+
</xsd:choice>
105+
</xsd:complexType>
106+
</xsd:element>
107+
</xsd:schema>
108+
<resheader name="resmimetype">
109+
<value>text/microsoft-resx</value>
110+
</resheader>
111+
<resheader name="version">
112+
<value>2.0</value>
113+
</resheader>
114+
<resheader name="reader">
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116+
</resheader>
117+
<resheader name="writer">
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119+
</resheader>
120+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
121+
<data name="TypeScript.ProjectBrowser.File" type="System.Resources.ResXFileRef, System.Windows.Forms">
122+
<value>TypeScript.ProjectBrowser.File.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
123+
</data>
124+
<data name="TypeScript.Template.EmptyFile" type="System.Resources.ResXFileRef, System.Windows.Forms">
125+
<value>TypeScript.Template.EmptyFile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
126+
</data>
127+
</root>
652 Bytes
Loading
1.27 KB
Loading
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?xml version="1.0"?>
2+
<!-- Based on JavaScript syntax definition for JavaScript 2.0 by Svante Lidman -->
3+
<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
4+
<SyntaxDefinition name="TypeScript" extensions=".ts" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
5+
<Color name="Digits" foreground="DarkBlue" />
6+
<Color name="Comment" foreground="Green" />
7+
<Color name="String" foreground="Sienna" />
8+
<Color name="Character" foreground="Sienna" />
9+
<Color name="Regex" foreground="Sienna" />
10+
<Color name="TypeScriptKeyWords" foreground="Blue" />
11+
<Color name="TypeScriptIntrinsics" foreground="Blue" />
12+
<Color name="TypeScriptLiterals" foreground="Blue" />
13+
<Color name="TypeScriptGlobalFunctions" foreground="Blue" />
14+
<RuleSet ignoreCase="false">
15+
<Keywords color="TypeScriptKeyWords">
16+
<Word>any</Word>
17+
<Word>break</Word>
18+
<Word>continue</Word>
19+
<Word>delete</Word>
20+
<Word>else</Word>
21+
<Word>for</Word>
22+
<Word>function</Word>
23+
<Word>if</Word>
24+
<Word>in</Word>
25+
<Word>new</Word>
26+
<Word>return</Word>
27+
<Word>this</Word>
28+
<Word>typeof</Word>
29+
<Word>var</Word>
30+
<Word>void</Word>
31+
<Word>while</Word>
32+
<Word>with</Word>
33+
<Word>abstract</Word>
34+
<Word>bool</Word>
35+
<Word>boolean</Word>
36+
<Word>byte</Word>
37+
<Word>case</Word>
38+
<Word>catch</Word>
39+
<Word>char</Word>
40+
<Word>class</Word>
41+
<Word>const</Word>
42+
<Word>debugger</Word>
43+
<Word>default</Word>
44+
<Word>do</Word>
45+
<Word>double</Word>
46+
<Word>enum</Word>
47+
<Word>export</Word>
48+
<Word>extends</Word>
49+
<Word>final</Word>
50+
<Word>finally</Word>
51+
<Word>float</Word>
52+
<Word>goto</Word>
53+
<Word>implements</Word>
54+
<Word>import</Word>
55+
<Word>instanceof</Word>
56+
<Word>int</Word>
57+
<Word>interface</Word>
58+
<Word>long</Word>
59+
<Word>module</Word>
60+
<Word>native</Word>
61+
<Word>number</Word>
62+
<Word>package</Word>
63+
<Word>private</Word>
64+
<Word>protected</Word>
65+
<Word>public</Word>
66+
<Word>short</Word>
67+
<Word>static</Word>
68+
<Word>string</Word>
69+
<Word>super</Word>
70+
<Word>switch</Word>
71+
<Word>synchronized</Word>
72+
<Word>throw</Word>
73+
<Word>throws</Word>
74+
<Word>transient</Word>
75+
<Word>try</Word>
76+
<Word>volatile</Word>
77+
</Keywords>
78+
<Keywords color="TypeScriptIntrinsics">
79+
<Word>Array</Word>
80+
<Word>Boolean</Word>
81+
<Word>Date</Word>
82+
<Word>Function</Word>
83+
<Word>Global</Word>
84+
<Word>Math</Word>
85+
<Word>Number</Word>
86+
<Word>Object</Word>
87+
<Word>RegExp</Word>
88+
<Word>String</Word>
89+
</Keywords>
90+
<Keywords color="TypeScriptLiterals">
91+
<Word>false</Word>
92+
<Word>null</Word>
93+
<Word>true</Word>
94+
<Word>NaN</Word>
95+
<Word>Infinity</Word>
96+
</Keywords>
97+
<Keywords color="TypeScriptGlobalFunctions">
98+
<Word>eval</Word>
99+
<Word>parseInt</Word>
100+
<Word>parseFloat</Word>
101+
<Word>escape</Word>
102+
<Word>unescape</Word>
103+
<Word>isNaN</Word>
104+
<Word>isFinite</Word>
105+
</Keywords>
106+
<Span color="Comment">
107+
<Begin>//</Begin>
108+
</Span>
109+
<Span color="Comment" multiline="true">
110+
<Begin>/\*</Begin>
111+
<End>\*/</End>
112+
</Span>
113+
<!--<Rule color="Regex">/.*/</Rule>-->
114+
<Span color="Regex">
115+
<Begin>/</Begin>
116+
<End>/</End>
117+
<RuleSet>
118+
<Span begin="\\/" end="." />
119+
</RuleSet>
120+
</Span>
121+
<Span color="String" multiline="true">
122+
<Begin>"</Begin>
123+
<End>"</End>
124+
<RuleSet>
125+
<Span begin="\\" end="." />
126+
</RuleSet>
127+
</Span>
128+
<Span color="Character">
129+
<Begin>'</Begin>
130+
<End>'</End>
131+
<RuleSet>
132+
<Span begin="\\" end="." />
133+
</RuleSet>
134+
</Span>
135+
<Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
136+
</RuleSet>
137+
</SyntaxDefinition>

0 commit comments

Comments
 (0)