Rust syntax highlighter for Far Colorer

by Max Galkin

Published a minimal schema for Rust syntax highlighting for FarColorer.

Without the new schema, FarColorer plugin in Far Manager picks C++ syntax highlighter for Rust source code files, and while it does look somewhat “rusty”, it is difficult to read:

With the new schema:

  • Rust keywords are recognized;
  • comments are recognized (without nested syntax highlighting yet);
  • single apostrophe in “lifetime parameter” (?) doesn’t derail the parser.