Code Monkey home page Code Monkey logo

Comments (9)

sogaiu avatar sogaiu commented on July 17, 2024 2

Please don't choose "longstrings", i.e. please do not run the words together with nothing in between.

@GrayJack and I have already been putting something between the two words in our tree-sitter grammars:

from janet-lang.org.

uvtc avatar uvtc commented on July 17, 2024 2

I also think "long-string" is better (and "re-indent" over "reindent", where the latter sounds like it has something to do with reindeer :) ).

from janet-lang.org.

sogaiu avatar sogaiu commented on July 17, 2024 1

@uvtc IIUC you have the power to close this issue :)

from janet-lang.org.

uvtc avatar uvtc commented on July 17, 2024

Come to think of it, the long-strings feature doesn't ever indent (or re-indent) anything, does it? It always un-indents --- removing indentation. Maybe that term would fit better for describing long-string behaviour.

from janet-lang.org.

pepe avatar pepe commented on July 17, 2024

I think it unindents only in the docstring.

from janet-lang.org.

bakpakin avatar bakpakin commented on July 17, 2024

Long-string sounds good to me. The basic way the indentation works is to try and remove leading indentation, only if nothing is indented left of the opening delimiter.

from janet-lang.org.

sogaiu avatar sogaiu commented on July 17, 2024

IIUC, some relevant code for this feature is here: https://github.com/janet-lang/janet/blob/40ae2e812ff5e186ba578d441de9f3d2bebd93fb/src/core/parse.c#L323-L367

from janet-lang.org.

uvtc avatar uvtc commented on July 17, 2024

Since the newish Documentation page already addresses re/de/un-indenting of long-strings when used as docstrings, I think that the commits in #154 should wrap this up so this issue can be closed.

from janet-lang.org.

uvtc avatar uvtc commented on July 17, 2024

Gotcha. Thanks, @sogaiu .

from janet-lang.org.

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.