Skip to content

transient storage keyword incorrectly marked as variable name #486

@JordanRaphael

Description

@JordanRaphael

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

  1. Create a new Solidity file with pragma ^0.8.28.

  2. Define a contract that uses the transient keyword in storage variables, e.g.:

    pragma solidity ^0.8.28;
    
    contract Example {
        uint256 transient temp;
    }
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions