owenkimbrell / visual-studio-code-moonscript-syntax Goto Github PK
View Code? Open in Web Editor NEWVisual studio code Moonscript highlighting built off of leafo's .tmBundle/
License: Other
Visual studio code Moonscript highlighting built off of leafo's .tmBundle/
License: Other
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?
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.