GithubHelp home page GithubHelp logo

owenkimbrell / visual-studio-code-moonscript-syntax Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 6.62 MB

Visual studio code Moonscript highlighting built off of leafo's .tmBundle/

License: Other

TypeScript 100.00%
lua moonscript syntax-highlighting vscode

visual-studio-code-moonscript-syntax's People

Contributors

owenkimbrell avatar

Stargazers

 avatar  avatar

Watchers

 avatar

visual-studio-code-moonscript-syntax's Issues

How to disable auto compile?

Hey, I use lua + the moonscript library (i.e., require "moonscript" from lua) so I don't need the scripts to compile. How would I go about disabling the compilation on save?

Is extension compatible with love2d?

Extension swears when sees love:

attempt to index global 'love' (a nil value).

Have no idea what to do with it.
Same message I get when using comand moon file.moon.

But I can avoid this error if use moonc file.moon (without -l parameter).

UPD:

I've read this doc https://github.com/leafo/moonscript/blob/master/docs/command_line.md#global-variable-whitelist but still don't understand how to add love to whitelist and where lint config.moon should be located ;(

I've put this file to the root of my project:

-- lint_config.moon
{
  whitelist_globals: {
    ["."]: {"love"}
  }
}

and now there is no errors when I run moonc -l ., but vscode still shows the error.

Option to disable auto-transpiling on save

Is there a setting to disable the auto-transpiling when saving a .moon file?

It's a nice feature, but it is not always needed. In my use case, i'm coding for the TIC-80, which can accept .moon files directly and does not need to be transpiled. If there is a .lua file in the same directory, it will default to importing that instead of the moonscript one and so it causes errors.

Also, this is unrelated, but is there a setting to set the destination of the transpiled .lua files? Usually people have a separate folder for their moonscript files and a separate folder for the transpiled lua equivalents.

Inline lint support?

Would be awesome if lint messages could be displayed inline. It seems like moonc's messages are not super-specific regarding the character positions though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.