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
Question: auto-indent messes up when 'class' used as other than SV keyword #783
Comments
Original Redmine Comment This is not going to be fixed. Using keywords other than as keywords besides being a bad idea and not supported by many other tools, is too hard to support. |
Original Redmine Comment In posting this example code, I retyped the issue as a simpler example w/o compiling/simulating it. In doing so, I changed CLASS to class. I discovered from SV Spec 1800-2012.pdf section 5.6.2, Keywords: "All keywords are defined in lowercase only." While I think our team should not use keywords with different capitalization, is there any chance you'll specify keywords to only be lowercase in your code? Either way, your tool is great. Thanks for the quick feedback. |
Original Redmine Comment You can "(setq case-fold-search nil)" which should work around this, either in your .emacs or a verilog-mode-hook. It will have the side effect you probably won't like of making search by default case sensitive. The fix to verilog mode is similar, it's just that there are a LOT of entry points into the code to fix. |
Original Redmine Comment If you do have a chance to address this, another area where verilog-mode might be changed is when I forward typedef a class (as in sec 6.18 of SV spec 1800-2012). ex: I have a few of these on adjacent lines and the first one has no indent (as if I were starting a class) and the following ones are all indented, as if they were inside the class of the first one. Just an fyi. |
Author Name: L JEPSON
Original Redmine Message: 1372 from https://www.veripool.org
The text was updated successfully, but these errors were encountered: