-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Description
Description
The extension does not recognize the transient storage keyword that is fully supported since Solidity 0.8.28.
Instead, it is highlighted/parsed as if it were a variable identifier.
Steps to Reproduce
-
Create a new Solidity file with pragma
^0.8.28. -
Define a contract that uses the
transientkeyword in storage variables, e.g.:pragma solidity ^0.8.28; contract Example { uint256 transient temp; }
-
Observe that the transient keyword is marked as a StateVar and the variable name is ignored.
Expected Behavior
The transient keyword should be highlightedas a storage modifier, similar to constant or immutable.
Actual Behavior
The extension highlights transient as if it were a variable name, not a recognized keyword.
Environment
- Solidity Extension version:
0.0.185 - Solidity version:
^0.8.28
Additional Context
I’d be happy to contribute a fix for this issue with some guidance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels