-
Notifications
You must be signed in to change notification settings - Fork 557
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
Add branches for different nano versions #370
Conversation
Originally proposed in scopatz#370
Originally proposed in scopatz#370
Originally proposed in scopatz#370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found several issues when trying to apply to Nano version 2.5.3
. I am currently working on solving these issues, and when it's done it should appear at galenguyer#15.
pre-2.5.3 | ||
pre-2.3.2 | ||
pre-2.2.99 | ||
pre-2.1.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These doesn't seem correct.
The 'comment' feature is introduced in 2.6.0
, where 2.5.3
is its previous version.
Same apply for the 'linter', 'magic' and 'header'
git commit -am "fix: pre-5.0: change 'brightred' to 'brightmagenta'" | ||
|
||
sed -E -i.bak -e 's/\bcolor\s+latte\b/color brightred/' "${nanos[@]}" | ||
git commit -am "fix: pre-5.0: change 'latte' to 'brightred'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The
\bcolor
regex rule does not handle the case foricolor
. latte
could appear in either foreground color or background color. This rule doesn't handle the background case.
git commit -am "fix: pre-2.1.5: comment out 'header'" | ||
|
||
sed -E -i.bak -e 's/^(\s*syntax\s+)([^"\s]+)(\s.*)/\1"\2"\3/' "${nanos[@]}" | ||
git commit -am "fix: pre-2.1.5: add quotes around syntax names" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beware that the whitespace group \s
will NOT take effect when it's in [\s]
.
Superseded by galenguyer#27 |
This PR provides create-branches.sh, which creates the following branches:
latte
tobrightred
andpurple
tobrightmagenta
.tabgives
normal
towhite
, andbrightnormal
tobrightwhite
.comment
linter
magic
header
, fix regex failures, add quotes aroundsyntax
names, and comment out long string causingout of memory
error in powershell.nanorc.Providing these branches closes #49 #104 #164 #174 #186 #189 #191 #227 #229 #236 #238 #242 #335 #349 .
Note that the existing
v2.9
branch is significantly out of date withmaster
per v2.9...master. Also, the name v2.9 doesn't really apply to more recent versions of nano.The pre-2.1.5 branch works on MacOS, which has nano version 2.0.6:
If this PR is accepted, I will submit a PR to update readme.md with a note to use these new branches. I will also update install.sh to use the logic in switch-branch.sh to automatically select the correct branch.