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

Basic syntax highlighting support for Rust #154

Merged

Conversation

arcticicestudio
Copy link
Contributor

Resolves #138

Added basic syntax highlighting support for Rust.

Traits and enums are colorized with nord7 and with bold font to make them visually stand out more.
Also attributes and derives are colored with nord10.

Before

After

Macros are colorized with nord8 and bold font to make them visually different from "normal" functions.

Before

After

[Escape][] sequences are colored with nord13.

Before

After

Import statements and paths are correctly colored with keyword and type colors.

Before

After

This commit adds basic syntax highlighting support for Rust (1):

Traits (2) and enums (3) are colorized with `nord7` and with bold font
to make them visually stand out more.
Also attributes (4) and derives (5) are colored with `nord10`.
Macros (6) are colorized with `nord8` and bold font to make them
visually different from "normal" functions.
Escape (7) sequences are colored with `nord13`.
Import statements and paths are correctly colored with keyword and type colors.

References:
  (1) https://www.rust-lang.org
  (2) https://doc.rust-lang.org/book/ch10-02-traits.html
  (3) https://doc.rust-lang.org/1.1.0/book/enums.html
  (4) https://doc.rust-lang.org/reference/attributes.html
  (5) https://doc.rust-lang.org/edition-guide/rust-2018/macros/custom-derive.html
  (6) https://doc.rust-lang.org/1.8.0/book/macros.html
  (7) https://doc.rust-lang.org/reference/tokens.html#ascii-escapes

GH-138
@arcticicestudio arcticicestudio added this to the 0.11.0 milestone Apr 14, 2019
@arcticicestudio arcticicestudio self-assigned this Apr 14, 2019
@arcticicestudio arcticicestudio changed the title Vasic syntax highlighting support for Rust Basic syntax highlighting support for Rust Apr 14, 2019
@arcticicestudio arcticicestudio merged commit 8de69ba into develop Apr 15, 2019
@arcticicestudio arcticicestudio deleted the feature/gh-138-basic-rust-syntax-highlighting-support branch April 15, 2019 20:18
@arcticicestudio arcticicestudio removed their assignment Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better support for Rust Language
2 participants