virtualltek
patreon
Highlight #4 - Code editors
🕑 Added 2018-03-21 15:41:14 +0000 UTC Code editors are widely used on Fighter Factory, and on version 3 we made a big improvement by better syntax highlighting and error/deprecation checking. On Studio, we extend this system to give better error descriptions and support for upcoming new features.The code parser was remade from scratch. Now, it's a hybrid parser/syntax highlighter, faster and more reliable. For M.U.G.E.N. we remade the syntax database to include only documented code, so errors may be false positive until we fine tune it and add undocumented syntax.
Error description was greatly improved. The biggest changes are parameter value counter (describes when there's more or less values than required) and unexpected token details (displays what is expected and what we got). These changes makes easely to fix errors because they are more self explanatory now.
Support for advanced debugging with breakpoints is planned for future versions, subject to goal.
Change list:
- Function to fold/unfold all code blocks (you can keep focus on blocks you are working on, hiding the other ones);
- Better syntax checking (errors are self explanatory, so you can fix them easily);
- Syntax database changes based on file type (eg.: BGS on M.U.G.E.N. are parsed only on .def);
- Detection of DOS M.U.G.E.N. (Fighter Factory 3 detects pre-1.x as Beta for any version date);
- On quick search, States editor notifies which tabs have the search string too;
- Comments in the end of the line are kept when the code is changed from graphic mode;
- M.U.G.E.N. syntax database rebuilt to include only documented stuff;
- Fixed some errors on M.U.G.E.N. State controller templates.
- Improved offset viewer and Throw creator.