Skip to content

Commit

Permalink
Remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
samoht committed Sep 21, 2012
1 parent b05083c commit 29e1fc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/block.ml
Expand Up @@ -136,8 +136,8 @@ module Node = struct
<---l--->
<----------x-------->
<-pad->
<-pad->
<-pad->
<-pad->
*)

type t = {
Expand Down Expand Up @@ -210,8 +210,8 @@ let rec close_top_let = function
| Some t ->
match t.token with
| COMMENT _ -> assert false (* COMMENT must be skipped *)
| STRUCT | SEMISEMI

| STRUCT | SEMISEMI
| UIDENT _|STRING _|OPTLABEL _|NATIVEINT _|LIDENT _|LABEL _|INT64 _|INT32 _
| INT _|FLOAT _|CHAR _|WITH|VIRTUAL|VAL|UNDERSCORE|TYPE|TRUE|TILDE|SIG|SHARP
| RPAREN|REC|RBRACKET|RBRACE|QUOTE|QUESTIONQUESTION|QUESTION|PRIVATE|OPEN
Expand Down Expand Up @@ -434,7 +434,7 @@ let rec update_path t stream tok =
let path =
unwind (function KParen|KMatch|KType|KTry|KFun -> true | _ -> false) t.path in
(match path with

(* type t =
Foo
| Bar *)
Expand All @@ -460,7 +460,7 @@ let rec update_path t stream tok =

(* match t with (Foo|Bar) -> *)
| {k=KParen} :: _ -> path

(* match x with
| X *|* Y -> .. *)
| {k=KBar k} :: _ when tok.newlines = 0 -> path
Expand Down Expand Up @@ -497,7 +497,7 @@ let rec update_path t stream tok =
let path = unwind (function
|KParen|KBegin|KBracket|KBracketBar|KBrace|KEq|KIn|KFun
|KMatch|KTry|KLet|KLoop|KDo
|KThen|KElse -> true
|KThen|KElse -> true
| _ -> false
) t.path in
(match path with
Expand Down
2 changes: 1 addition & 1 deletion src/main.ml
Expand Up @@ -111,7 +111,7 @@ let rec loop last_region block stream =
(* printing *)
if t.newlines = 0 && last_region == Region.zero then
print_string t.substr

else if t.newlines > 0 then begin
let end_line = first_line t.between in
print_string end_line;
Expand Down

0 comments on commit 29e1fc4

Please sign in to comment.