GithubHelp home page GithubHelp logo

Comments (5)

vhqr0 avatar vhqr0 commented on July 17, 2024 1

It can still be reproduced on Emacs29.
Adding a semicolon after struct and enum can correct indentation, but it cannot be compiled.

from emacs-solidity.

LefterisJP avatar LefterisJP commented on July 17, 2024

Hey @robmyers thank you for the bug report and apologies for the late response!

So I tried to reproduce what you are saying with the following program:

contract foo {

    struct boo {
        uint256 a;
    }
    
    function funA() {
        return;
    }  
}

But the indentation does not appear like in your screenshot. How did you automatically ident? By pressing TAB?

My c/c++ code setup which also applies in solidity is here:
https://github.com/LefterisJP/.emacs/blob/90d542d8ee0ddc68a58fd1e2318b694a3dd7d5f5/lk/cstyle-setup.el#L18-L79

from emacs-solidity.

rheaplex avatar rheaplex commented on July 17, 2024

Thank you for looking at this.

The embarrassing outcome of a long process of discovery is that this is an issue with emacs 27 in git. I reverted to emacs 26 and everything is fine.

My apologies for not catching that before asking.

from emacs-solidity.

coventry avatar coventry commented on July 17, 2024

@rheaplex , I am running into this issue with bleeding-edge emacs 28. Do you recall what the causative issue was in emacs27?

from emacs-solidity.

harrigan avatar harrigan commented on July 17, 2024

Check out #72 (comment).

from emacs-solidity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.