cake-build / cake-vs

Cake Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1392591.CakeforVisualStudio
MIT License
67 stars 25 forks source link

Add missing preprocessor key words #118

Closed gep13 closed 3 years ago

gep13 commented 3 years ago

Currently, within the CakeLanguage file, we include the following:

https://github.com/cake-build/cake-vs/blob/develop/src/Classifier/Languages/CakeLanguage.cs#L14

public static List<string> Preprocessors => new List<string> {@"^[#]{1}(load|r|addin|tool)"};

However, as per the docs here:

https://cakebuild.net/docs/writing-builds/preprocessor-directives

There are actually other directives that we should support.

gep13 commented 3 years ago

A PR was opened to address this issue:

https://github.com/cake-build/cake-vs/pull/85

But this will require to be updated, with the recent changes that were made to the source code.