-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon J
committed
Sep 20, 2024
1 parent
0cd69b0
commit dbf2f84
Showing
5 changed files
with
132 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.mwnciau.rblade.psi | ||
|
||
import com.intellij.lang.Language | ||
import com.intellij.lang.html.HTMLLanguage | ||
import com.intellij.psi.templateLanguages.TemplateDataElementType | ||
import com.intellij.psi.tree.IElementType | ||
import org.jetbrains.annotations.NonNls | ||
|
||
class HtmlElementType : TemplateDataElementType( | ||
"HTML_TEMPLATE", | ||
HTMLLanguage.INSTANCE, | ||
RBladeTypes.HTML_TEMPLATE | ||
outerElementType, | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
src/main/kotlin/com/mwnciau/rblade/rails/RubyRBladeIntegrationImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package com.mwnciau.rblade.rails | ||
|
||
import com.intellij.lang.Language | ||
import com.intellij.openapi.editor.Editor | ||
import com.intellij.openapi.fileTypes.FileType | ||
import com.intellij.psi.FileViewProvider | ||
import com.intellij.psi.PsiElement | ||
import com.intellij.psi.PsiFile | ||
import com.intellij.psi.tree.IElementType | ||
import org.jetbrains.plugins.ruby.ruby.lang.psi.controlStructures.blocks.RCompoundStatement | ||
import org.jetbrains.plugins.ruby.ruby.lang.psi.expressions.RExpression | ||
import org.jetbrains.plugins.ruby.templates.TemplateIntegration | ||
import org.jetbrains.plugins.ruby.templates.TemplateIntegrationUtils | ||
|
||
class RubyRBladeIntegrationImpl : TemplateIntegration { | ||
override fun getOuterElements(): MutableCollection<out IElementType> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getContinuationElements(): MutableCollection<out IElementType> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getEndElements(): MutableCollection<out IElementType> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun isTemplateFile(p0: PsiFile?): Boolean { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun canModifyPsiInsert(p0: FileViewProvider): Boolean { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun addRubyStatement( | ||
p0: FileViewProvider, | ||
p1: RCompoundStatement, | ||
p2: PsiElement, | ||
p3: PsiElement?, | ||
p4: Boolean | ||
): PsiElement? { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getFileType(p0: TemplateIntegrationUtils.TemplateLang): FileType? { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getFileType(): FileType { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getTemplateLanguage(): TemplateIntegrationUtils.TemplateLang { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getLanguage(): Language { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getTextForI18n(p0: Editor, p1: PsiFile): String? { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun replaceTextWithI18n(p0: Editor, p1: PsiFile, p2: RExpression): Boolean { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun mustCloseRubyBlock(): Boolean { | ||
TODO("Not yet implemented") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters