Skip to content
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

Open
semitrivial opened this issue May 27, 2015 · 4 comments
Open

\< and \> don't work on OSX (effects, for example, c.nanorc) #52

semitrivial opened this issue May 27, 2015 · 4 comments

Comments

@semitrivial
Copy link

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.

@scopatz
Copy link
Owner

scopatz commented May 28, 2015

HI @semitrivial - weird! If you come up with a fix, pull requests are accepted.

@semitrivial
Copy link
Author

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.

@rjpcasalino
Copy link

@semitrivial Thanks for this. Sucks that I have to that just for OS X, but thanks anyway.

@ThomasR
Copy link
Contributor

ThomasR commented Mar 3, 2016

Reported as a bug in nano: https://savannah.gnu.org/bugs/index.php?47325 (Fixed)

scopatz added a commit that referenced this issue May 8, 2018
Updated README with problem in issue #52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants