aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/tests/generated.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-11-03 07:48:24 +0000
committerGitHub <[email protected]>2020-11-03 07:48:24 +0000
commit658e97a39e77bcb978697a66ddccd7e4b58990cf (patch)
tree01949b65f93b9d3e50d71cef0f613595a1d9480d /crates/assists/src/tests/generated.rs
parent65b44d2ba5145c354f03423222992e212a8e93e0 (diff)
parent01a228f68904f8ed9dbc2f4e4c348744fc50084d (diff)
Merge #6447
6447: Textmate grammar: allow function declarations without curly brackets r=lnicola a=dustypomerleau Functions inside trait declarations can break subsequent highlighting, because they have no curly brackets. In a case such as: ```rust pub trait Summary { fn summarize(&self) -> String; } ``` the scope `meta.function.definition.rust` will continue past the end of the block looking for `{` after `fn`. This PR allows `meta.function.definition.rust` to terminate with `;` in these cases. Co-authored-by: Dusty Pomerleau <[email protected]>
Diffstat (limited to 'crates/assists/src/tests/generated.rs')
0 files changed, 0 insertions, 0 deletions