Skip to content

indentation of new style tuples is messed up #107

@reuleaux

Description

@reuleaux

Hi,
using current hy-lang 0.24, new style tuples are not indented properly:
just hitting TAB (indent-for-tab-command) on each of the following lines, gives me this weird result (the "Gas" line is indented too much):

(setv expenses #(            
                 ["Rent"  "2013-01-13" 1000]
                  [ "Gas" "2013-01-14" 100]
                 ["Food" "2013-01-16" 300]
                 ["Gym" "2013-01-20" 50]
                 ))

by contrast: old style tuples are indented fine:

(setv old-style-expenses (,
                           ["Rent"  "2013-01-13" 1000]
                           [ "Gas" "2013-01-14" 100]
                           ["Food" "2013-01-16" 300]
                           ["Gym" "2013-01-20" 50]
                           ))

Thanks in advance,
-A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions