mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 15:10:27 +09:00
After9ad4437, directly specifying color names (instead of syntax groups) in syntax files no longer works. In particular *.patch and *.diff files are not highlighted, since in patch.yaml direct colors names are used. Restore the previous behavior of GetColor (fallback to direct colors if no syntax group found) to fix this regression, but also make some changes in StringToStyle and StringToColor to still fix the issue which was fixed by9ad4437. In other words, ensure that there is no confusion between direct colors ("red", "green" etc) and syntax groups omitted in the colorscheme file.