From 3e7472f76c70c3b0a31bb72f6f318c1aa1aba83d Mon Sep 17 00:00:00 2001 From: Aramis Razzaghipour Date: Fri, 28 May 2021 09:25:32 +1000 Subject: Add `public` semantic token modifier for public items --- crates/ide/src/syntax_highlighting.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ide/src/syntax_highlighting.rs') diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index d44a1b45f..5259d86d2 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs @@ -137,6 +137,7 @@ pub struct HlRange { // injected:: Emitted for doc-string injected highlighting like rust source blocks in documentation. // intraDocLink:: Emitted for intra doc links in doc-strings. // library:: Emitted for items that are defined outside of the current crate. +// public:: Emitted for items that are from the current crate and are `pub`. // mutable:: Emitted for mutable locals and statics. // static:: Emitted for "static" functions, also known as functions that do not take a `self` param, as well as statics and consts. // trait:: Emitted for associated trait items. -- cgit v1.2.3