Atom Package for Monkey2

About Monkey 2 Forums General Programming Discussion Atom Package for Monkey2

Tagged: , ,

This topic contains 25 replies, has 6 voices, and was last updated by  arawkins 1 year, 5 months ago.

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
  • #7712


    Thanks. That is using the symbols-tree-nav package (which is a fork of symbols-tree-view) with the following added to lib\.ctags:

    I’m sure the regex is terrible there (it was a hacky copy and paste job and probably doesn’t even cover all Monkey 2 syntax…) πŸ™‚

    I couldn’t get the collapsible classes to work that are shown on the package page screenshot, so the methods indented with a hyphen were a hacky way of getting them a little more readable.

    I added ‘- as a way of adding custom comments to the outline, such as to do notes.

    It’s all a bit messy but it is working ok here. If anyone has any improvements, please do share!



    @mat, cool, thanks for sharing, I will give that a try. It definitely looks useful.

    I’ve just published v1.3 of the addon. Changes include:

    * Added new target options to compiler toolbar (ios, android, etc)
    * Added code folding for property/setter
    * Fixed syntax highlighting for property/setter
    * Added syntax highlighting for lambdas

    I am working on improving autocompletion for lambda functions, but it’s not quite ready yet.



    v1.4 is up, added syntax highlighting and autocompletion for Enums.



    I think the highlighter gets confused when you use IF inside another IF.



    Thanks, just taking a look now. It seems related to the Then keyword. When removed, it seems to highlight properly, eg.

    I’ll see if I can get it working with Then as well.



    Ok, I’ve published v1.4.2, which has some fixes in for If statement highlighting. I’m still having trouble getting the more terse form of one line if statements working, eg.

    I can’t figure out a way to make it not pick up the next closing ‘End’, meaning it will usually take a closing End keyword from it’s containing method, function, class etc., which throws everything off. I need a regular expression that can exclusively match that form of if statement.

    Everything else seems ok, including one line if statements with a Then in them (see attached screenshot). There’s still some inconsistency (some of the True keywords are colored differently in the screenshot, for example), but I think it’s mostly there. Let me know how it works for you.



    v1.4.3 is up with a bug fix for Atom 1.16. The addon would crash when ‘auto-save on build’ was enabled and new, unsaved files were open.

    While fixing this I also noticed that Atom 1.17 is adding support for a new interface element called a Dock:

    Docks are an extension of Atom’s pane system designed to hold interface elements that you want to quickly toggle into and out of view. This is a common pattern for tool panels such as the tree view, debugger controls, terminals, consoles, regex railroad diagrams, etc.

    It looks like it might give a simpler, native way to do the output panel. Once 1.17 is out I will take a closer look at it.



    I can’t get this to work. I don’t know where to begin to diagnose the problem.



    How far did you get with it?

    Is the package installed?

    Did you configure the path to Monkey 2 in the package settings?

    Are you getting an error message?



    It’s working perfectly now.

    It didn’t work at first because of the ‘Amon Effect’. The ‘Amon Effect’ is a highly stabilized, very powerful form, of absolute dumbass, that, once afflicted by it, renders everything you do as dumbass.





    Haha, no worries, glad you got it sorted out πŸ™‚

Viewing 11 posts - 16 through 26 (of 26 total)

You must be logged in to reply to this topic.