Atom Package for Monkey2

Home Forums General Programming Discussion Atom Package for Monkey2

Tagged: , ,

This topic contains 21 replies, has 5 voices, and was last updated by  arawkins 5 months ago.

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #7712

    mat
    Participant

    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!

    #7740

    arawkins
    Participant

    @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.

    #7866

    arawkins
    Participant

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

    #7872

    Hezkore
    Participant

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

    #7873

    arawkins
    Participant

    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.

    #7876

    arawkins
    Participant

    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.

    #7985

    arawkins
    Participant

    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.

Viewing 7 posts - 16 through 22 (of 22 total)

You must be logged in to reply to this topic.