Closed 4Luke4 closed 5 years ago
The server currently expects some doc string to go with the name...
The server currently expects some doc string to go with the name...
OK, I can easily add the binary notation for those 32 BITs, but what about AREA_CITY, AREA_DAY, AREA_DUNGEON and so fourth?
I think I'll just allow for empty doc. This shouldn't be abused, however. Do you want to add new constants to highlighting, too?
Do you want to add new constants to highlighting, too?
Yes, why not. How can I do that?
I think the format is obvious, isn't it?
I think the format is obvious, isn't it?
OK, done. Please, check if everything is right....
One small issue, quotes should be escaped. If you use VScode to edit yaml, you'll see that highlighting is wrong. I corrected it.
One small issue, quotes should be escaped. If you use VScode to edit yaml, you'll see that highlighting is wrong. I corrected it.
Just out of curiosity, are you referring to the quotes in the documentation of USER_DIRECTORY(i.e., it's like when in LaTeX you need to escape curly brackets)? If so, then you missed those in SAVE_DIRECTORY...
Well, I was imprecise. In fact, what breaks yaml is colon ":" in value field, so it should be quoted, but then the double quotes inside should be escaped. Anyway, just add yaml extension to VScode, and it'll show the errors, something like this:
Autocompletion: WeiDU built-in constants.