Author Topic: using an existing Tagging parser for a new language  (Read 2000 times)

picnic

  • Community Member
  • Posts: 25
  • Hero Points: 0
using an existing Tagging parser for a new language
« on: December 05, 2007, 07:11:34 pm »
I'd like SlickEdit(SE) to support a new language (www.haxe.org). HaXe is very
similar to Actionscript, that is already supported by SE:
- syntax highlight
- autocomplete
- class browser
- go to Def., go to Ref.

I think I could use all the features that are based on ContectTagging for .as files

Here is an example of the haxe Language:

test.hx:
--------

class Test {
    static function main() {
        var mc : flash.MovieClip = flash.Lib.current;
        mc.beginFill(0xFF0000);
        mc.moveTo(50,50);
        mc.lineTo(100,50);
        mc.lineTo(100,100);
        mc.lineTo(50,100);
        mc.endFill();
    }
}


You see - syntax is the same as Actionscript.
The big question is:
How is it possible to use the Actionscript parser for this .hx file extension?

thanks
ben

hs2

  • Senior Community Member
  • Posts: 2725
  • Hero Points: 280
Re: using an existing Tagging parser for a new language
« Reply #1 on: December 05, 2007, 09:37:39 pm »
You could try to create a new extension '*.hx' referring to '*.as' to get it working (see Tools>Options>File Extension Setup).
Good luck, HS2

picnic

  • Community Member
  • Posts: 25
  • Hero Points: 0
Re: using an existing Tagging parser for a new language
« Reply #2 on: December 05, 2007, 11:56:31 pm »
thanks!

I have now the class browser and a partly working autocompletion.
Because of a small detail in the package/import syntax I can't list classmembers from other files....

why is there no public api for the taggingsupport or at least some more detailed info how you can autocompletion to work without tagging?

regards ben