-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
\< and \> don't work on OSX (effects, for example, c.nanorc) #52
Comments
HI @semitrivial - weird! If you come up with a fix, pull requests are accepted. |
The natural fix for Mac users is to replace < and > by [[:<:]] and [[:>:]] respectively, unfortunately this would break the nanorc file for other systems (tested it on Ubuntu, it breaks it there). It's quite shocking to me that nano outsources regexp parsing to the surrounding system, making nanorc inherently unportable like this. |
@semitrivial Thanks for this. Sucks that I have to that just for OS X, but thanks anyway. |
Reported as a bug in nano: |
Updated README with problem in issue #52
Hilariously, on mac, the \ appears to be a regular character escape when applied to < and >, so for example the "return" coloring gets applied to (the string literal) "" but not to actual return keywords like it's supposed to.
The text was updated successfully, but these errors were encountered: