D22848: Rust: add missing keywords and minor improvements

Nibaldo González noreply at phabricator.kde.org
Wed Jul 31 07:28:18 BST 2019


nibags created this revision.
nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
nibags requested review of this revision.

REVISION 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:**
  
  - https://doc.rust-lang.org/core
  - https://doc.rust-lang.org/std

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D22848

AFFECTED FILES
  autotests/folding/test.markdown.fold
  autotests/folding/test.rs.fold
  autotests/html/test.rs.html
  autotests/input/test.rs
  autotests/reference/test.markdown.ref
  autotests/reference/test.rs.ref
  data/syntax/rust.xml

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, univerz, LeGast00n, sbergeron, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190731/4df751bd/attachment.html>


More information about the KWrite-Devel mailing list