Searching the internet I did not see any Emacs mode for flatbuffers which is often an indicator for the maturity of a library/language.
Is someone aware of an Emacs mode for flatbuffers, in particular to have syntax highlighting for "*.fbs" files?
If not, would it make sense to create one (happy to help)?
I've not heard of one, no. Maybe everyone is using https://marketplace.visualstudio.com/items?itemName=gaborv.flatbuffers instead? ;)
There's also https://plugins.jetbrains.com/plugin/8582-flatbuffers-support
Feel free to make one for emacs.. where would this normally be distributed?
I've not heard of one, no. Maybe everyone is using https://marketplace.visualstudio.com/items?itemName=gaborv.flatbuffers instead? ;)
sure Visual Studio Code is popular - but it's not the only editor :)
Feel free to make one for emacs.. where would this normally be distributed?
I will consider building a simple emacs mode for it (need to schedule some time for it)...
I also request a flatbuffer syntax file for Emacs.
Could you update it? Thanks
@jdees @haifenghan I hacked up something that can help you here
Please let me know if any issues! :)
@Asalle Thanks for your contribution. It seems good.
Hello @Asalle
When opening the file https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/schema/schema.fbs#L384
Some fields are shown in bule while others are not recognized. Is it the purpose?
Please see the following screenshot:

Hello @Asalle
Below is the corresponding part in Visual Code:

Nope, that's a bug. Will take a look today!
On Thu, Nov 14, 2019, 8:51 AM Haifeng Han notifications@github.com wrote:
Hello @Asalle https://github.com/Asalle
Below is the corresponding part in Visual Code:
[image: image]
https://user-images.githubusercontent.com/4157827/68836917-65ed6680-06f6-11ea-9ab0-9e0440e7f5f7.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/flatbuffers/issues/5402?email_source=notifications&email_token=ABF6TYT7IWBHN53VYYFTBOLQTT7PVA5CNFSM4HXXHV6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEA5MWQ#issuecomment-553768538,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABF6TYXPENBOPTO7NRBIJ3TQTT7PVANCNFSM4HXXHV6A
.
@haifenghan hey, I looked into that these 3 days and it's not very easy to fix. I'll need to write a regex for enums and learn some more elisp. I'll let you know if I'll come up with any solution. Pls report any other issues in "Issues" page of the flatbuffers-mode so we'll not spamming this thread.
Many thanks
@haifenghan check out this. It's not perfect, but I guess much better now. I figured it out, so it'll be complete soon. If you have any bugs, please open an issue in the flatbuffers-mode project. Thanks for the feedback!
This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days.
Most helpful comment
@haifenghan check out this. It's not perfect, but I guess much better now. I figured it out, so it'll be complete soon. If you have any bugs, please open an issue in the
flatbuffers-modeproject. Thanks for the feedback!