livecode / atom-language-livecode

LiveCode Language package for Atom
GNU General Public License v3.0
16 stars 15 forks source link

Added LiveCode Script grammar and snippet generation from docs. #5

Closed montegoulding closed 8 years ago

montegoulding commented 8 years ago

Hi @peter-b this seems to work however it breaks on some of the syntax definitions in the docs that aren't correctly formed. Answer files for example is missing [titled before windowTitle. Anyway, hope this helps!

Review on Reviewable

montegoulding commented 8 years ago

@peter-b I'm thinking about changing the command snippets so the optional syntax uses selections rather than having a snippet for every conceivable form of a command. The only issue is those that have nested optional syntax as it seems atom doesn't support a snippet like this:

'something ${1:hello${2:world}!} ${3:something}'

At least if you delete 1 you can no longer tab to 3 but you can tab to 1 then 2 and delete 2 and still tab to 3. Probably a bug in the way atom looks for the next thing to tab to.

montegoulding commented 8 years ago

Opened an issue here

montegoulding commented 8 years ago

Should have branched for PR will re-open in a sec on a feature branch