This would enable proper highlighting and indentation in Emacs for the BUILD files.
I am using py mode and it is working.
On Fri, Apr 24, 2015 at 8:01 PM byuksel [email protected] wrote:
This would enable proper highlighting and indentation in Emacs for the
BUILD files.—
Reply to this email directly or view it on GitHub
https://github.com/google/bazel/issues/157.
Assigning myself to track, but byuksel is planning to implement this.
status of that bug?
@byuksel any update?
Hey all, I have a in-the-works CL. I can get this done by next week, and
send it for review.
On Fri, Jun 12, 2015 at 9:48 AM, Kristina [email protected] wrote:
@byuksel https://github.com/byuksel any update?
—
Reply to this email directly or view it on GitHub
https://github.com/google/bazel/issues/157#issuecomment-111497782.
Awesome, thanks!
Le ven. 12 juin 2015 à 18:19, byuksel [email protected] a écrit :
Hey all, I have a in-the-works CL. I can get this done by next week, and
send it for review.On Fri, Jun 12, 2015 at 9:48 AM, Kristina [email protected]
wrote:@byuksel https://github.com/byuksel any update?
—
Reply to this email directly or view it on GitHub
https://github.com/google/bazel/issues/157#issuecomment-111497782.—
Reply to this email directly or view it on GitHub
https://github.com/google/bazel/issues/157#issuecomment-111541669.
Damien
@byuksel Can you contribute what you have? Others can help out once it's checked in!
I've been using a modified "gn-mode" (from the Chromium project) where I added py_library", "py_binary", and "sh_binary" to its list of keywords. It seems to work well enough considering that gn's build format is copied from Google's BUILD format.
See https://code.google.com/p/chromium/codesearch#chromium/src/tools/gn/misc/emacs/gn-mode.el. The various keyword definitions begin on 56.
Is there an update on this @byuksel?
Since bzl and BUILD content are can be seen as a subset of Python 3, I am wondering whether it would make more sense to start with a pyish mode and have some way of limiting that.
Any updates?
Here is a bare-bones bazel-mode: https://github.com/codesuki/bazel-mode
I have created a Bazel mode for GNU Emacs that improves a bit on the bare-bones one:
https://github.com/brown/bazel-mode
It would be great if either of the modes mentioned in https://github.com/bazelbuild/bazel/issues/157#issuecomment-368933624 or https://github.com/bazelbuild/bazel/issues/157#issuecomment-388503936 could be moved into this repository to become the "official" bazel-mode. Having multiple libraries with the same name is prone to clashes if some package starts indirectly depending on both.
I've created an official repo for this: https://github.com/bazelbuild/emacs-bazel-mode
Please contribute to it!
Most helpful comment
I've created an official repo for this: https://github.com/bazelbuild/emacs-bazel-mode
Please contribute to it!