Inline annotations #1740
Closed
muppet9010
started this conversation in
General
Replies: 2 comments 3 replies
-
Its a bit clunky, but better than nothing :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm not sure what you are trying to accomplish, but would this do the trick? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking at trying to add annotations to Lua code snippets that will be parsed by an external tool and run as a single line. This means that I can't use
--
and instead have to use--[[ ]]
for comments.My thought of the only way I can do it is to define the classes in another TypeDef only file and then just use
--[[@as]]
to apply these within my code. The TypeDef file wouldn't be passed to the execution process, only the actual Lua code.As an example of other limitations I work around I have to end every line with
;
as all line breaks are stripped from the Lua code during its parsing by this external tool. I could also end with a space character, but;
is clearer to edit.Beta Was this translation helpful? Give feedback.
All reactions