-
Hello everyone! I'm trying to connect tm4e to my plugin. I created simplest example of text mate grammar and tried to connect this grammar in plugin.xml by these lines of code. But when I try to launch my plugin, I get exception from tm4e like [No grammar provided for <source.test>]. I place test.tmLanguage.json inside src/syntaxes, I even added src in binary build and source build. It didn't help. Maybe I do something wrong? my build.properties looks like this |
Beta Was this translation helpful? Give feedback.
Answered by
sebthom
Jul 3, 2023
Replies: 1 comment 3 replies
-
does this work for you? <extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.text"
file-extensions="properties"
id="tm4.test"
name="Test file"
priority="normal" />
<file-association content-type="tm4.test" file-extensions="properties" />
</extension>
<extension point="org.eclipse.tm4e.registry.grammars">
<grammar path="src/syntaxes/test.tmLanguage.json" scopeName="source.test" />
<scopeNameContentTypeBinding contentTypeId="tm4.test" scopeName="source.test" />
</extension>
<extension point="org.eclipse.ui.editors">
<editorContentTypeBinding
editorId="org.eclipse.ui.genericeditor.GenericEditor"
contentTypeId="tm4.test" />
</extension> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
D0zee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does this work for you?