Skip to content

Commit

Permalink
syntax: Avoid highlighting non-creusot uses of invariant|requires|ens…
Browse files Browse the repository at this point in the history
…ures|variant
  • Loading branch information
Lysxia committed Dec 5, 2024
1 parent 50bcebc commit 09d8091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/syntaxes/pearlite-rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
},
{
"begin": "\\b(invariant|requires|ensures|variant)\\s*\\(",
"begin": "\\b(?<=#\\[\\s*)(invariant|requires|ensures|variant)\\s*\\(",
"end": "\\)",
"contentName": "meta.embedded.block.pearlite source.pearlite",
"beginCaptures": {
Expand All @@ -57,7 +57,7 @@
]
},
{
"match": "\\b(?:invariant|requires|ensures|variant)\\b",
"match": "\\b(?<=#\\[\\s*)(?:invariant|requires|ensures|variant)\\b",
"name": "keyword.control"
}
]
Expand Down

0 comments on commit 09d8091

Please sign in to comment.