BGforgeNet / VScode-BGforge-MLS

BGforge MultiLanguage server
https://forums.bgforge.net/viewforum.php?f=35
Other
16 stars 5 forks source link

Update weidu.completion.yml #7

Closed 4Luke4 closed 5 years ago

4Luke4 commented 5 years ago

Autocompletion: WeiDU built-in constants.

burner1024 commented 5 years ago

The server currently expects some doc string to go with the name...

4Luke4 commented 5 years ago

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?

burner1024 commented 5 years ago

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?

4Luke4 commented 5 years ago

Do you want to add new constants to highlighting, too?

Yes, why not. How can I do that?

burner1024 commented 5 years ago

I think the format is obvious, isn't it?

4Luke4 commented 5 years ago

I think the format is obvious, isn't it?

OK, done. Please, check if everything is right....

burner1024 commented 5 years ago

One small issue, quotes should be escaped. If you use VScode to edit yaml, you'll see that highlighting is wrong. I corrected it.

4Luke4 commented 5 years ago

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...

burner1024 commented 5 years ago

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: Captura de pantalla de 2019-05-27 10-10-23