Skip to content

Syntax highlighting breaks on modifiers with certain types of arguments #33

@mrice32

Description

@mrice32

The syntax highlighting seems to break if there's a type in the list of arguments for a modifier that has a . in it.

Here's a minimal example:

/*
  Test
*/
pragma solidity ^0.5.0;

library A {
    struct MyStruct {
        uint value;
    }
}

library B {
    modifier modifierExample(A.MyStruct storage s) {
        require(s.value == 6);
        _;
    }

    function doSomething(A.MyStruct storage s) modifierExample(s) {

    }
}

I've attached a screenshot of the highlighting for this contract.

screen shot 2019-02-14 at 5 37 38 pm

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