Skip to content

Commit

Permalink
[Rust] Also match macro_rules! as a keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll committed Jan 31, 2024
1 parent 8125ea5 commit 8308d45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rust/Rust.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ contexts:

- match: '\b(macro_rules!)\s+({{identifier}})\b'
captures:
1: support.function.rust
1: keyword.declaration.macro.rust
2: entity.name.macro.rust
push: macro-block

Expand Down
2 changes: 1 addition & 1 deletion Rust/tests/syntax_test_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ macro_rules! brackets_square [
/*******************************************************************/
// Matchers and transcribers can use any bracket type.
macro_rules! brackets {
//^^^^^^^^^^ meta.macro support.function
//^^^^^^^^^^ meta.macro keyword.declaration.macro
// ^^^^^^^^ meta.macro entity.name.macro
// ^ meta.macro punctuation.section.block.begin
($i:ident) => ($i);
Expand Down

0 comments on commit 8308d45

Please sign in to comment.