Skip to content

Commit

Permalink
Add TextMate Language Pack feature
Browse files Browse the repository at this point in the history
Syntax highlighting and more for programming languages and file formats
by taken TextMate grammars and language configurations files from the
Visual Studio Code project
(<https://github.com/microsoft/vscode/tree/main/extensions>). For
details which file is taken from where see
"org.eclipse.tm4e.language_pack/about.md".

The content is created and can be updated via the Maven build script
"/org.eclipse.tm4e.language_pack/_update/pom.xml".
  • Loading branch information
howlger authored and mickaelistria committed Jun 13, 2022
1 parent 33d0524 commit 617cf7b
Show file tree
Hide file tree
Showing 176 changed files with 180,999 additions and 0 deletions.
1 change: 1 addition & 0 deletions org.eclipse.tm4e.language_pack.feature/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
17 changes: 17 additions & 0 deletions org.eclipse.tm4e.language_pack.feature/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.tm4e.language_pack.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions org.eclipse.tm4e.language_pack.feature/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.includes = feature.properties,\
feature.xml
5 changes: 5 additions & 0 deletions org.eclipse.tm4e.language_pack.feature/feature.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
featureName=TextMate Language Pack
featureProvider=Eclipse TM4E
description=Syntax highlighting and more for about 40 programming languages and file formats (TextMate grammars and language configurations taken from Visual Studio Code)
copyright=Copyright (c) 2022 Holger Voormann and others.\
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
28 changes: 28 additions & 0 deletions org.eclipse.tm4e.language_pack.feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.eclipse.tm4e.language_pack.feature"
label="%featureName"
version="0.1.0.qualifier"
provider-name="%featureProvider"
license-feature="org.eclipse.license"
license-feature-version="0.0.0">

<description>
%description
</description>

<copyright>
%copyright
</copyright>

<license url="%licenseURL">
%license
</license>

<plugin
id="org.eclipse.tm4e.language_pack"
download-size="0"
install-size="0"
version="0.0.0"/>

</feature>
11 changes: 11 additions & 0 deletions org.eclipse.tm4e.language_pack.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse</groupId>
<artifactId>org.eclipse.tm4e</artifactId>
<version>0.3.2-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.tm4e.language_pack.feature</artifactId>
<packaging>eclipse-feature</packaging>
<version>0.1.0-SNAPSHOT</version>
</project>
Empty file.
22 changes: 22 additions & 0 deletions org.eclipse.tm4e.language_pack/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.tm4e.language_pack</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>
15 changes: 15 additions & 0 deletions org.eclipse.tm4e.language_pack/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tm4e.language_pack;singleton:=true
Bundle-Version: 0.1.0.qualifier
Require-Bundle: org.eclipse.tm4e.ui;bundle-version="[0.1.0,2.0.0)",
org.eclipse.tm4e.registry;bundle-version="[0.1.0,2.0.0)",
org.eclipse.tm4e.languageconfiguration;bundle-version="[0.1.0,2.0.0)",
org.eclipse.ui.editors;bundle-version="[3.3.0,4.0.0)",
org.eclipse.ui.genericeditor;bundle-version="[1.0.0,2.0.0)",
org.eclipse.core.contenttype;bundle-version="[3.2.0,4.0.0)"
Bundle-ActivationPolicy: lazy
Automatic-Module-Name: org.eclipse.tm4e.language_pack
56 changes: 56 additions & 0 deletions org.eclipse.tm4e.language_pack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Language Pack
Syntax highlighting and more for about 40 programming languages and file formats taken from [Visual Studio Code](https://github.com/microsoft/vscode/tree/main/extensions)

[TextMate grammars](https://en.wikipedia.org/wiki/TextMate#Language_Grammars) and
[language configurations](https://code.visualstudio.com/api/language-extensions/language-configuration-guide)
taken from [Visual Studio Code](https://github.com/microsoft/vscode/tree/main/extensions) and
provided as a plugin based on [Eclipse tm4e](https://github.com/eclipse/tm4e)
for the [Eclipse IDE](https://eclipseide.org).

**Do not edit the files in this project!** Run [`_update/pom.xml`](_update/pom.xml) instead.

| Language/Format | File Associations |
|:--------------- |:----------------- |
| [Batch File](https://en.wikipedia.org/wiki/Batch%20file) | *.bat, *.cmd |
| [Clojure](https://en.wikipedia.org/wiki/Clojure) | *.clj, *.cljs, *.cljc, *.cljx, *.clojure, *.edn |
| [CoffeeScript](https://en.wikipedia.org/wiki/CoffeeScript) | *.coffee, *.cson, *.iced |
| [C](https://en.wikipedia.org/wiki/C%20%28programming%20language%29) | *.c, *.i |
| [C++](https://en.wikipedia.org/wiki/C++) | *.cpp, *.cc, *.cxx, *.c++, *.hpp, *.hh, *.hxx, *.h++, *.h, *.ii, *.ino, *.inl, *.ipp, *.ixx, *.tpp, *.txx, *.hpp.in, *.h.in |
| [CUDA C++](https://en.wikipedia.org/wiki/CUDA) | *.cu, *.cuh |
| [C#](https://en.wikipedia.org/wiki/C%20Sharp%20%28programming%20language%29) | *.cs, *.csx, *.cake |
| [CSS](https://en.wikipedia.org/wiki/CSS) | *.css |
| [Dart](https://en.wikipedia.org/wiki/Dart%20%28programming%20language%29) | *.dart |
| [Docker](https://en.wikipedia.org/wiki/Docker%20%28software%29) | *.dockerfile, *.containerfile, Dockerfile, Containerfile, Dockerfile.*, Containerfile.* |
| [Go](https://en.wikipedia.org/wiki/Go%20%28programming%20language%29) | *.go |
| [Groovy](https://en.wikipedia.org/wiki/Apache%20Groovy) | *.groovy, *.gvy, *.gradle, *.jenkinsfile, *.nf, Jenkinsfile, Jenkinsfile.* |
| [Handlebars](https://handlebarsjs.com/) | *.handlebars, *.hbs, *.hjs |
| [High-Level Shader Language](https://en.wikipedia.org/wiki/High-Level%20Shader%20Language) | *.hlsl, *.hlsli, *.fx, *.fxh, *.vsh, *.psh, *.cginc, *.compute |
| [HTML](https://en.wikipedia.org/wiki/HTML) | *.html, *.htm, *.shtml, *.xhtml, *.xht, *.mdoc, *.jsp, *.asp, *.aspx, *.jshtm, *.volt, *.ejs, *.rhtml |
| [INI File](https://en.wikipedia.org/wiki/INI%20file) | *.ini |
| [Java](https://en.wikipedia.org/wiki/Java%20%28programming%20language%29) | *.java, *.jav |
| [JavaScript React](https://en.wikipedia.org/wiki/React%20%28JavaScript%20library%29) | *.jsx |
| [JavaScript](https://en.wikipedia.org/wiki/JavaScript) | *.js, *.es6, *.mjs, *.cjs, *.pac, jakefile |
| [JSON](https://en.wikipedia.org/wiki/JSON) | *.json, *.bowerrc, *.jscsrc, *.webmanifest, *.js.map, *.css.map, *.ts.map, *.har, *.jslintrc, *.jsonld, *.geojson, *.ipynb, composer.lock, .watchmanconfig |
| [JSON with Comments](https://code.visualstudio.com/docs/languages/json#_json-with-comments) | *.jsonc, *.eslintrc, *.eslintrc.json, *.jsfmtrc, *.jshintrc, *.swcrc, *.hintrc, *.babelrc, babel.config.json, .babelrc.json, .ember-cli |
| [Julia](https://en.wikipedia.org/wiki/) | *.jl |
| [Less](https://en.wikipedia.org/wiki/Less%20%28stylesheet%20language%29) | *.less |
| [Lua](https://en.wikipedia.org/wiki/Lua%20%28programming%20language%29) | *.lua |
| [Makefile](https://github.com/emilast/vscode-logfile-highlighter#features) | *.mak, *.mk, Makefile, makefile, GNUmakefile, OCamlMakefile |
| [Objective-C](https://en.wikipedia.org/wiki/Objective-C) | *.m |
| [Objective-C++](https://en.wikipedia.org/wiki/Objective-C#Objective-C++) | *.mm |
| [Perl](https://en.wikipedia.org/wiki/Perl) | *.pl, *.pm, *.pod, *.t, *.PL, *.psgi |
| [Perl 6](https://en.wikipedia.org/wiki/Perl#Raku_%28Perl_6%29) | *.p6, *.pl6, *.pm6, *.nqp |
| [PowerShell](https://en.wikipedia.org/wiki/PowerShell) | *.ps1, *.psm1, *.psd1, *.pssc, *.psrc |
| [Pug](https://pugjs.org/api/getting-started.html) | *.pug, *.jade |
| [Python](https://en.wikipedia.org/wiki/Python%20%28programming%20language%29) | *.py, *.rpy, *.pyw, *.cpy, *.gyp, *.gypi, *.pyi, *.ipy, *.pyt, Snakefile, SConstruct, SConscript |
| [R](https://en.wikipedia.org/wiki/R%20%28programming%20language%29) | *.r, *.rhistory, *.rprofile, *.rt |
| [ASP.NET Razor](https://en.wikipedia.org/wiki/ASP.NET%20Razor) | *.cshtml, *.razor |
| [Rust](https://en.wikipedia.org/wiki/Rust%20%28programming%20language%29) | *.rs |
| [SCSS](https://en.wikipedia.org/wiki/Sass%20%28stylesheet%20language%29) | *.scss |
| [ShaderLab](https://docs.unity3d.com/2019.3/Documentation/Manual/SL-Shader.html) | *.shader |
| [SQL](https://en.wikipedia.org/wiki/SQL) | *.sql, *.dsql |
| [Swift](https://en.wikipedia.org/wiki/Swift%20%28programming%20language%29) | *.swift |
| [TypeScript](https://en.wikipedia.org/wiki/TypeScript) | *.ts, *.cts, *.mts |
| [TypeScript React](https://www.typescriptlang.org/docs/handbook/react.html) | *.tsx |
| [Visual Basic .NET](https://en.wikipedia.org/wiki/Visual%20Basic%20.NET) | *.vb, *.brs, *.vbs, *.bas, *.vba |

1 change: 1 addition & 0 deletions org.eclipse.tm4e.language_pack/_update/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
7 changes: 7 additions & 0 deletions org.eclipse.tm4e.language_pack/_update/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Language Pack Update

Run [`update/pom.xml`](update/pom.xml) via Maven to update/recreate the content of the
[`org.eclipse.tm4e.language_pack`](../README.md) plugin.

Do not edit the files of the project directly. If required, adapt the update/recreate scripts in this folder instead.

14 changes: 14 additions & 0 deletions org.eclipse.tm4e.language_pack/_update/README_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Language Pack
Syntax highlighting and more for about 40 programming languages and file formats taken from [Visual Studio Code](https://github.com/microsoft/vscode/tree/main/extensions)

[TextMate grammars](https://en.wikipedia.org/wiki/TextMate#Language_Grammars) and
[language configurations](https://code.visualstudio.com/api/language-extensions/language-configuration-guide)
taken from [Visual Studio Code](https://github.com/microsoft/vscode/tree/main/extensions) and
provided as a plugin based on [Eclipse tm4e](https://github.com/eclipse/tm4e)
for the [Eclipse IDE](https://eclipseide.org).

**Do not edit the files in this project!** Run [`_update/pom.xml`](_update/pom.xml) instead.

| Language/Format | File Associations |
|:--------------- |:----------------- |
<!-- INSERT LANGUAGE LIST HERE -->
47 changes: 47 additions & 0 deletions org.eclipse.tm4e.language_pack/_update/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>About</title>
<style>
table {
border-spacing: 0;
border-collapse: collapse;
}
th, td {
border: 1px solid #dbe1e6;
padding: 6px 13px;
text-align: left;
vertical-align: top;
}
</style>
</head>
</head>
<body>

<h2>About This Content</h2>

<p>
The following <a href="https://en.wikipedia.org/wiki/TextMate#Language_Grammars">TextMate grammar</a> and
<a href="https://code.visualstudio.com/api/language-extensions/language-configuration-guide">language configuration</a>
files have been taken and slightly modified from the
<a href="https://github.com/microsoft/vscode/tree/main/extensions">Visual Studio Code's built-in extensions</a>.
Most of the grammar files were in turn converted by the Visual Studio Code project from other projects
(see column <i>Original</i>).
</p>

<table>
<tr>
<th rowspan="2">File</th>
<th colspan="3">Taken from ...</th>
</tr>
<tr>
<th>Extension</th>
<th>File</th>
<th>Original</th>
<tr>
<!-- INSERT TABLE CONTENT HERE -->
</table>

</body>
</html>
20 changes: 20 additions & 0 deletions org.eclipse.tm4e.language_pack/_update/about_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# List of files taken from the Visual Studio Code

[TextMate grammars](https://en.wikipedia.org/wiki/TextMate#Language_Grammars) and
[language configurations](https://code.visualstudio.com/api/language-extensions/language-configuration-guide)
taken from [Visual Studio Code](https://github.com/microsoft/vscode/tree/main/extensions) and
provided as a plugin based on [Eclipse tm4e](https://github.com/eclipse/tm4e)
for the [Eclipse IDE](https://eclipseide.org).

<table>
<tr>
<th rowspan="2">File</th>
<th colspan="3">Taken from ...</th>
</tr>
<tr>
<th>Extension</th>
<th>File</th>
<th>Original</th>
<tr>
<!-- INSERT FILE LIST HERE -->
</table>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions org.eclipse.tm4e.language_pack/_update/info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Supported languages and formats</title>
<style>
table {
border-spacing: 0;
border-collapse: collapse;
}
th, td {
border: 1px solid #dbe1e6;
padding: 6px 13px;
text-align: left;
vertical-align: top;
}
</style>
</head>
<body>

<h2>Supported languages and formats</h2>

<table>
<tr>
<th>Language/Format</th>
<th>File Associations</th>
<tr>
<!-- INSERT TABLE CONTENT HERE -->
</table>

</body>
</html>
Loading

0 comments on commit 617cf7b

Please sign in to comment.