Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RustEnhanced.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ contexts:
scope: punctuation.separator.rust
push: after-operator

- match: '\b[[:lower:]_][[:lower:][:digit:]_]*(?=\()'
- match: '\b[[:lower:]_][[:lower:][:digit:]_]*\s*(?=\()'
scope: variable.function.rust

- match: '{{identifier}}'
Expand Down
19 changes: 19 additions & 0 deletions tests/syntax-rust/syntax_test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,22 @@ a <<= b;
//^^^ keyword.operator.assignment
a >>= b;
//^^^ keyword.operator.assignment

fn call_expressions() {
call();
// ^^^^ variable.function
// ^ meta.group punctuation.section.group.begin
// ^ meta.group punctuation.section.group.end
// ^ punctuation.terminator

call_with_space ();
// ^^^^^^^^^^^^^^^^ meta.function meta.block variable.function
// ^ meta.group punctuation.section.group.begin
// ^ meta.group punctuation.section.group.end
self.method();
// ^^^^ variable.language
// ^ punctuation.accessor.dot
// ^^^^^^ variable.function
// ^ meta.group punctuation.section.group.begin
// ^ meta.group punctuation.section.group.end
}