Skip to content

Commit

Permalink
Add TextMate bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
qligier committed Sep 11, 2024
1 parent 5a67007 commit 3b37d72
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/main/resources/fsh/fsh.tmbundle"]
path = src/main/resources/fsh/fsh.tmbundle
url = git@github.com:qligier/fsh.tmbundle.git
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ platformVersion=2023.3.7
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
platformPlugins=
# Example: platformBundledPlugins = com.intellij.java
platformBundledPlugins=
platformBundledPlugins=org.jetbrains.plugins.textmate
# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion=8.9
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2024 Quentin Ligier. Use of this source code is governed by the MIT license.

package ch.qligier.jetbrains.plugin.fhir.fsh;

import org.jetbrains.plugins.textmate.api.TextMateBundleProvider;

/**
* jetbrains-plugin-fhir
*
* @author Quentin Ligier
**/
public class FshTextMateBundleProvider extends TextMateBundleProvider {
}
15 changes: 14 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,24 @@
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html -->
<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.lang</depends>

<actions>
</actions>

<extensions defaultExtensionNs="com.intellij">

<!-- The following two ("editorHighlighterProvider" and "lang.syntaxHighlighterFactory") are required
because defining a custom file type breaks the association of a TextMate grammar with a file extension.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008202719/comments/8966725380242 -->
<editorHighlighterProvider
filetype="Snakeskin"
implementationClass="org.jetbrains.plugins.textmate.language.syntax.highlighting.TextMateEditorHighlighterProvider" />

<lang.syntaxHighlighterFactory
language="Snakeskin"
implementationClass="org.jetbrains.plugins.textmate.language.syntax.highlighting.TextMateSyntaxHighlighterFactory" />

<textmate.bundleProvider implementation="snakeskin.lang.SnakeskinTextMateBundleProvider" />
</extensions>

<applicationListeners>
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/fsh/fsh.tmbundle
Submodule fsh.tmbundle added at 4a1840

0 comments on commit 3b37d72

Please sign in to comment.