ethereum / emacs-solidity

The official solidity-mode for EMACS
GNU General Public License v3.0
206 stars 66 forks source link

intervalNode shows also int as a keyword #31

Closed avatar-lavventura closed 6 years ago

avatar-lavventura commented 6 years ago

intervalNode key word printed as follows:

screen shot 2018-05-02 at 10 51 15

I guess int seems as keyword as a well.

LefterisJP commented 6 years ago

Hello @avatar-lavventura . That's strange. Can you give me a minimal solidity contract which reproduces this behaviour with the latest emacs-solidity version?

avatar-lavventura commented 6 years ago
    function receiptCheck(intervalNode storage self, uint startTime) public
    returns (bool success)
    {
    interval storage prevNode;
    interval storage currentNode;
    interval storage prevNodeTemp;
}
LefterisJP commented 6 years ago

That's not a full contract. Please give me the full contract that fails for you. And if interval and intervalNode are structs as I assume then I made the following which does not appear to be coloured as you showed:

2018-05-11-094704_437x351_scrot

avatar-lavventura commented 6 years ago

I have enabled solidity-mode. I guess there is something wrong on my end.

pragma solidity ^0.4.17;

library Library {
    function foo(intervalNode storage self) public
        returns (bool success)
    {
        interval storage doo;
    }
}
screen shot 2018-05-11 at 10 59 55
avatar-lavventura commented 6 years ago

It works now.