Skip to content

Comments in multi-line statements are not handled correctly #5

@antifuchs

Description

@antifuchs

Lines with to-end-of-the-line comments can sometimes cause the nested lexer to go wild & scan to the end of the buffer for the next token. Examples in the indents-continuation-lines-with-comments test.

Examples:

  def foo do #bla
            oh_noes    
  end
    write_env_tmp_dir('TMPDIR') || # foo
                                  write_env_tmp_dir('TEMP')  ||
                                  write_env_tmp_dir('TMP') ||
                                  write_tmp_dir("/tmp")     ||
                                  ((cwd = cwd()) && write_tmp_dir(cwd))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions