nlipiarski / MCC

Marshal Command Code Syntax Highlighter
GNU General Public License v3.0
14 stars 2 forks source link

(At least) the function command has not perfect highlighting #13

Closed Panossa closed 7 years ago

Panossa commented 7 years ago

Try this command: function something:giveSomething Since "give" is a command the "Something" in the end is not highlighted. (Using v1.3.18)

nlipiarski commented 7 years ago

Actually, it is not working because the S in Something is capitalized. The function names and file locations have to be in all lowercase letters. I have changed it so it won't highlight it at all unless it is all lowercase.

Panossa commented 7 years ago

Well I work in my projects with function names in camelCase so I need the highlight. Sure, MC converts them to lowercase, but I'm used to camelCase.

Moesh-zz commented 7 years ago

They are converted to lowercase_and_underscored as it is the standard for all world/resource pack files in Minecraft. It may be valid and handled, but MCC strictly highlights what is considered correct. Closing issue.