Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P4 program coding style #415

Closed
williamtu opened this issue Mar 31, 2017 · 2 comments
Closed

P4 program coding style #415

williamtu opened this issue Mar 31, 2017 · 2 comments
Assignees
Labels
bug This behavior is unintended and should be fixed. question This is a topic requesting clarification.

Comments

@williamtu
Copy link
Contributor

Hi,
Is there any file specifying the P4 program's coding style? I couldn't find anything in p4c/docs/
Thanks

@mihaibudiu
Copy link
Contributor

There is an emacs p4-mode.el, but it has several bugs. Better than nothing, though.

@mihaibudiu mihaibudiu added the question This is a topic requesting clarification. label Apr 7, 2017
@mihaibudiu
Copy link
Contributor

@vgurevich : I have assigned this to you, maybe you want to fix the emacs file? I got the original one from you. Maybe you have by now also vi support?

The bugs that I am aware of are the following:
#include is not indented properly
if/else is not indented properly

@mihaibudiu mihaibudiu added the bug This behavior is unintended and should be fixed. label Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This behavior is unintended and should be fixed. question This is a topic requesting clarification.
Projects
None yet
Development

No branches or pull requests

3 participants