devoncarew / bazel-code

A Bazel plugin for VSCode.
https://marketplace.visualstudio.com/items?itemName=DevonDCarew.bazel-code
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Provide syntax highlighting for BUILD.xxxxxx #4

Closed prestonvanloon closed 7 years ago

prestonvanloon commented 7 years ago

When using new_http_archive or new_git_repository or new_local_repository, it is common to name specific build files in the format of BUILD.name_of_module

https://bazel.build/versions/master/docs/be/workspace.html#new_http_archive

Syntax highlighting for those type files would be helpful.

devoncarew commented 7 years ago

This could probably be addressed with a patch into https://github.com/devoncarew/bazel-code/blob/master/package.json#L27 ?

prestonvanloon commented 7 years ago

Yes. Maybe using filenamePatterns?

https://github.com/Microsoft/vscode/blob/c67ef57cda90b5f28499646f7cc94e8dcc5b0586/src/vs/editor/common/services/modeService.ts#L23