[TxMt] Re: Testing of language grammars

René Schwaiger sanssecours at f-m.fm
Wed Jun 17 06:49:42 UTC 2015


Hi Jacob,

> On 17 Jun 2015, at 8:37 , Jacob Carlborg <doob at me.com> wrote:
> 
> Is it possible to somehow test the implementation of a language grammar? 

yes it is possible. Allan released a tool to unit-test TextMate grammars here: http://lists.macromates.com/textmate/2010-May/030881.html

> Something besides manually visually looking at code parsed by the language grammar.
> 
> What I would like to is to ensure that a given piece of code is correctly recognized/parsed and gets the correct scope.
> 
> In theory it doesn't sound that difficult. If one could say, for this line and this column I expect the scope to be something.
> 
> -- 
> /Jacob Carlborg

Kind regards,
  René


More information about the textmate mailing list