• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Any way to add semicolons automatically?

Nodamex

Member
Is there any way to add semicolons properly for 80.000 lines of GML code for using YYC? I can predict that it will be hard, but may be some of you offer me a solution that makes it a little bit easier.
 

csanyk

Member
Short of writing a program that can parse your GML out and add them, I don't think so. It'd be kinda tough to write it unless you're very familiar with string manipulation AND GML syntax rules.

But this makes me think: One thing that would be pretty awesome would be a config option in the code editor to treat missing semi-colons as a syntax warning, and highlight the missing space where they belong.
 

obscene

Member
Search for "var" and make sure you have semicolons on all those lines. The rest probably won't matter but those absolutely can cause strange things.
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
As of the current versions, semicolons shouldn't matter for YYC - you can verify by comparing a .cpp file generated for GML file with semicolons versus one for a GML file without any
 
M

Marcus12321

Guest
Open in a text program, do a find/replace for the CR/LF character?!?!

Just a suggestion, might get you close.
 
Top