Rust: add missing keywords and minor improvements
ClosedPublic

Authored by nibags on Jul 31 2019, 6:28 AM.

Details

Summary

Changes:

  • Add new missing keywords: https://doc.rust-lang.org/edition-guide/rust-2018/module-system/raw-identifiers.html#new-keywords
  • Update the list of traits, with all core and std traits, obtained from the Rust documentation.
  • Add keywords of constants.
  • Remove duplicate keywords in different lists (such as self, Self and type).
  • Highlight all symbols with the "Symbol" attribute.
  • Highlight Raw identifier prefix (r#identifier).
  • Highlight comments within definitions of functions and types.
  • Correct indentation in some parts of the code and add modeline to avoid incorrect indentation (the file uses Tabs).

Sources:

Diff Detail

Repository
R216 Syntax Highlighting
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14597
Build 14615: arc lint + arc unit
nibags created this revision.Jul 31 2019, 6:28 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptJul 31 2019, 6:28 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
nibags requested review of this revision.Jul 31 2019, 6:28 AM
dhaumann accepted this revision.Jul 31 2019, 4:11 PM

I trust this is a good improvement.

This revision is now accepted and ready to land.Jul 31 2019, 4:11 PM
nibags closed this revision.Aug 2 2019, 3:41 AM