Home Download Buy Blog Forum Support

[SOLVED] Spell ckeck for custom syntax

[SOLVED] Spell ckeck for custom syntax

Postby Larlekin on Fri Jul 06, 2012 9:01 pm

Hi,

I try to develop a plugin for Pandoc. In the plugin, I also develop a new syntax rule based on JSON-tmLanguage. The syntax seems to work quite well. However, when this syntax is activated, the spell check is not working. If I change the syntax for another one (e.g. LaTeX, Markdown), the spell check works. My guess is that my syntax is defined as code and not text.

How can I change that?

Thank you very much for your help

Guillaume

PS: I am a newbie and I am french... so sorry for the mistakes...
Last edited by Larlekin on Mon Jul 09, 2012 6:23 pm, edited 1 time in total.
Larlekin
 
Posts: 2
Joined: Fri Jul 06, 2012 8:39 pm

Re: Spell ckeck for custom syntax

Postby quodlibet on Fri Jul 06, 2012 9:11 pm

The scopes for code begin with "source", while those for text begin with "text", so:

Code: Select all
text.plain
text.html.markdown


rather than

Code: Select all
source.python
source.whatever


Changing the scopeName in your tmLanguage from source to text has worked for me in the past, but maybe there is something else going on.

Hope this helps,
Alex
quodlibet
 
Posts: 511
Joined: Sat Jun 18, 2011 5:53 pm

Re: Spell ckeck for custom syntax

Postby Larlekin on Sat Jul 07, 2012 12:15 am

Great! It's worked.

Thank you for your help!
Larlekin
 
Posts: 2
Joined: Fri Jul 06, 2012 8:39 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 7 guests