Skip to content

grammar isn't found during runtime #570

Answered by sebthom
D0zee asked this question in Q&A
Discussion options

You must be logged in to vote

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.Gene…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@D0zee
Comment options

@D0zee
Comment options

@mickaelistria
Comment options

Answer selected by D0zee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants