In no particular order:
- "local", "return", "repeat", "until", "goto", "break", are not highlighted as keywords.
– Lua' block comments (--[[ text --]]) are supported but not highlighted accordingly.
– Underscore "_" is in the "symbol group" (white) while it shouldn't be. - Dot "." is not in the "symbol group" while it should be.
- Consider highlighting strings in the same colour as numbers (currently highlighted as "identifiers").
- Consider highlighting built-in function and constant names in a distinct colour (e.g. peach).
– If it is not overly technically challenging, consider disabling the cursor flashing when the pico-8 window is not in focus.
~ Not about the code editor itself, but in the context of the quite so limited window width and existing shortcuts, it could be worth to look into adding a "func" alias to the "function" keyword. (update: no longer needed for size concerns, only for use with editor)
– Quickly tapping Up,End or Down,End causes the editor to shift the cursor position by two lines instead of placing it at the end of the previous/next line.
– Consider permitting insertion of semicolons via the editor. Lua manual suggests the use of semicolons for some constructions to avoid the parser from accidentally "gluing" multiple unrelated statements together.
P#10275 2015-04-28 07:41 ( Edited 2015-07-21 21:20)
Should probably be merged with this thread.
P#10355 2015-04-29 18:37 ( Edited 2015-04-29 22:37)
As per 0.1.1:
– "in" should also be in keyword group.
~ Maybe "true"/"false"/"nil" should be in some group.
– if an identifier starts with an underscore "_", the underscore is highlighted as a symbol.
– "seed" is highlighted as a function (but it isn't) while "srand" isn't (but it is)
P#11652 2015-07-17 14:23 ( Edited 2015-07-17 18:35)
– ".." counts as two tokens ("..." probably should also be one token)
– "sub" is not highlighted as a function
P#11740 2015-07-21 17:20 ( Edited 2015-07-25 12:58)
[Please log in to post a comment]