scopatz / nanorc

Improved Nano Syntax Highlighting Files
Other
3k stars 549 forks source link

Add branches for different nano versions #370

Closed rasa closed 2 months ago

rasa commented 3 years ago

This PR provides create-branches.sh, which creates the following branches:

  1. pre-5.0: changed latte to brightred and purple to brightmagenta.
  2. pre-4.5: commented out tabgives
  3. pre-2.9.5: changed normal to white, and brightnormal to brightwhite.
  4. pre-2.5.3: commented out comment
  5. pre-2.3.2: commented out linter
  6. pre-2.2.99: commented out magic
  7. pre-2.1.5: commented out header, fix regex failures, add quotes around syntax names, and comment out long string causing out 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 with master per https://github.com/scopatz/nanorc/compare/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:

$ /usr/bin/nano --version
 GNU nano version 2.0.6 (compiled 17:24:29, Jun  5 2020)
 Email: nano@nano-editor.org    Web: http://www.nano-editor.org/
 Compiled options: --disable-nls --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8

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.

rasa commented 2 months ago

Superseded by https://github.com/galenguyer/nano-syntax-highlighting/pull/27