-
Notifications
You must be signed in to change notification settings - Fork 115
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
Support Bash #19
Comments
Thank you for working on this! I collected a few historical resources for reference, since there have been efforts to create a Bash scanner in the past:
I want to include it in the next minor release of CodeRay. To do that, we need example code - lots of it, since Bash is not a simple language. So, in addition to the test files included in the coderay_bash repository, I added all Bash scripts in rvm. The bash-scanner branch includes your scanner, so I can test it. Unfortunately, the large rvm file breaks it:
Can you look into that? |
Im working on this. Unfotunately im without internet and time for next week. |
Great :-) Thank you. |
Any updates on this issue? Really would like to see Bash being added to CodeRay. |
seems latest coderay_bash (1.0.4) does not break with this file. there are, however, still highlighting bugs |
I updated the scanner to the last version from coderay_bash. Unfortunately, it's still broken. A simple check:
The problem is in the way it tries to handle nested strings – it doesn't. Instead of properly using a stack, it only has on/off flags for In the current state, I can't accept this scanner. Anybody wants to try and fix this one? A working implementation of nested strings can be found in the Ruby scanner ( |
In case of interest, the candidate scanners were removed with a1582d7. As a |
This has pretty much already been done for you, just need to pull in the files. I have been working with Petr Kovář to fix a couple of bugs.
github.com/pejuko/coderay_bash
The text was updated successfully, but these errors were encountered: