Permalink
Commits on Jun 28, 2016
  1. Allow to aggregate tokens.

    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.
    OCamlPro-Henry committed Mar 3, 2016
Commits on Jun 27, 2016
  1. Only reindent strings that start with `"x+\<newline>`.

    We never reindent strings whose first `<newline>` is not escaped.
    
    We never reindent a string which starts with `"\<newline>`.
    OCamlPro-Henry committed Jun 13, 2016
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`.

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

    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 *)
    OCamlPro-Henry committed with AltGr Jun 13, 2016
Commits on Jun 8, 2016
  1. Fix escaped-string tests

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

    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).
    AltGr committed Jun 2, 2016
  2. Fix ppx_expr_ext tests

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

    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)
    AltGr committed Jun 2, 2016
  4. Reintroduce 'guess_indent' in the new printer

    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
    OCamlPro-Henry committed with AltGr Feb 9, 2016
  5. Add tests on --indent-empty and --numeric (they are broken)

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

    Add tests for lambdas in lists.
    AltGr committed May 31, 2016
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
  4. Fix #209.

    OCamlPro-Henry committed Jan 20, 2016
Commits on Jan 12, 2016
  1. Better handling of line directive

    We now save the state after "#if" and restore it after "#else".
    OCamlPro-Henry committed Jan 12, 2016
  2. Merge pull request #194 from OCamlPro-Henry/eol_lexer_rebased

    Remove multiline tokens
    AltGr committed Jan 12, 2016
Commits on Jan 11, 2016
  1. Fix failing test

    OCamlPro-Henry committed Nov 17, 2015
Commits on Dec 22, 2015
  1. Merge pull request #206 from janestreet/more-.fe.sexp-files

    Git ignore [.fe.sexp] files in any directory.
    AltGr committed Dec 22, 2015
Commits on Dec 2, 2015
  1. Git ignore [.fe.sexp] files in any directory.

    (janestreet's code review metadata files).
    mbarbin committed Dec 2, 2015