Permalink
Commits on Mar 23, 2017
Commits on Jan 19, 2017
  1. Merge pull request #235 from hcarty/local-exceptions

    AltGr committed Jan 19, 2017
    Fix indentation of local exceptions
Commits on Jan 5, 2017
  1. Merge pull request #230 from jberdine/master

    AltGr committed Jan 5, 2017
    Protect against extension-less buffer file names
Commits on Dec 29, 2016
  1. Fix indentation of local exceptions

    hcarty committed Dec 29, 2016
    The implementation follows the `let module` code
Commits on Dec 8, 2016
Commits on Jun 28, 2016
  1. Allow to aggregate tokens.

    OCamlPro-Henry committed Mar 3, 2016
    This exports an alternative 'Nstream' where the tokens STRING_OPEN,
    STRING_CONTENT, ... are aggregated in a single token STRING. The same
    for COMMENT, P4_QUOTATION, ...
    
    This is for compatibility with program relying on the old lexer.
Commits on Jun 27, 2016
  1. Only reindent strings that start with `"x+\<newline>`.

    OCamlPro-Henry committed Jun 13, 2016
    We never reindent strings whose first `<newline>` is not escaped.
    
    We never reindent a string which starts with `"\<newline>`.
Commits on Jun 15, 2016
  1. Minor fix

    OCamlPro-Henry committed with AltGr Jun 13, 2016
  2. Better indentation of line starting with `STRING_CLOSE`.

    OCamlPro-Henry committed with AltGr Jun 13, 2016
    We do not insert an empty `STRING_CONTENT` anymore and we indent `"` as `\ `.
  3. Remove hack in `IndentBlock.starts_line`

    OCamlPro-Henry committed with AltGr Jun 13, 2016
    This is safer when `IndentBlock.starts_line` means:
    
    (** true when the block is at a line start *)
    
    and not:
    
    (** true when the block is at a line start, and not after an in-string,
        unescaped EOL or within a char *)
Commits on Jun 8, 2016
  1. Fix escaped-string tests

    AltGr committed Jun 8, 2016
    I'm not completely sure about this, needs more testing
Commits on Jun 7, 2016
Commits on Jun 2, 2016
  1. Fix guess-indent

    AltGr committed Jun 2, 2016
    it can't work properly without a line argument, since block doesn't
    distinguish consecutive empty lines (it seems ? anyway the newlines
    field corresponds to the total).
  2. Fix ppx_expr_ext tests

    AltGr committed Jun 2, 2016
    They pass in the current setup with the options setting function
    application to always be aligned
  3. Consistent indentation within extension blocks

    AltGr committed Jun 2, 2016
    closes #207 and #211 (based for some parts of #211)
    
    (breaks tests; ppx_expr_ext test seems to assume that the contents of a
    block should be aligned with its first element; this can easily be done
    with the code below (in function `append`) but doesn't seem desirable in
    general, and JS tests indeed prove otherwise
    
        let n =
          if not starts_line then
            (* Take the leading item in the body as column reference *)
            {n with pad = 0; indent = block.toff + tok.offset; }
          else n
        in
    
    As for the mentionned JS tests (js-syntax.ml), I have no idea how ocp-indent is
    supposed to know that two consecutive exprs in `[%raise_structural_sexp`
    should be aligned and are not a function application)
  4. Reintroduce 'guess_indent' in the new printer

    OCamlPro-Henry committed with AltGr Feb 9, 2016
    This fixes unexpected behaviour when using 'tab' in $EDITOR.  The
    specific case was unexpectedly dropped when intoducing explicit explicit
    EOL in the lexer.
    
    Ports and closes #215
  5. Add tests on --indent-empty and --numeric (they are broken)

    AltGr committed Jun 2, 2016
    this wasn't well tested and is critical to good behaviour in editors.
Commits on May 31, 2016
  1. Merge pull request #212 from klakplok/master

    AltGr committed May 31, 2016
    Add tests for lambdas in lists.
Commits on Apr 29, 2016
Commits on Feb 11, 2016
Commits on Feb 1, 2016
  1. Update Changelog

    OCamlPro-Henry committed Feb 1, 2016
Commits on Jan 20, 2016
  1. Add tests for lambdas in lists.

    klakplok committed Jan 20, 2016
  2. Add test for #209

    OCamlPro-Henry committed Jan 20, 2016
  3. Fix #209.

    OCamlPro-Henry committed Jan 20, 2016