Skip to content

Commit eabca75

Browse files
committed
Fantomas formatting
1 parent 3133d0c commit eabca75

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

src/Compiler/Driver/ParseAndCheckInputs.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,10 @@ let ProcessMetaCommandsFromInput
857857
| ParsedHashDirective ("nowarn", ParsedHashDirectiveArguments numbers, m) ->
858858
List.fold (fun state d -> nowarnF state (m, d)) state numbers
859859

860-
| ParsedHashDirective (("reference" | "r"), ParsedHashDirectiveArguments args, m) ->
860+
| ParsedHashDirective (("reference"
861+
| "r"),
862+
ParsedHashDirectiveArguments args,
863+
m) ->
861864
matchedm <- m
862865
ProcessDependencyManagerDirective Directive.Resolution args m state
863866

src/Compiler/Service/FSharpCheckerResults.fs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ type FSharpSymbolUse(denv: DisplayEnv, symbol: FSharpSymbol, inst: TyparInstanti
247247
// 'seq' in 'seq { ... }' gets colored as keywords
248248
| Item.Value vref, ItemOccurence.Use when valRefEq denv.g denv.g.seq_vref vref -> true
249249
// custom builders, custom operations get colored as keywords
250-
| (Item.CustomBuilder _ | Item.CustomOperation _), ItemOccurence.Use -> true
250+
| (Item.CustomBuilder _
251+
| Item.CustomOperation _),
252+
ItemOccurence.Use -> true
251253
| _ -> false
252254

253255
member _.IsFromOpenStatement = itemOcc = ItemOccurence.Open
@@ -2308,8 +2310,14 @@ module internal ParseAndCheckFile =
23082310

23092311
matchBraces stackAfterMatch
23102312

2311-
| LPAREN | LBRACE _ | LBRACK | LBRACE_BAR | LBRACK_BAR | LQUOTE _ | LBRACK_LESS as tok, _ ->
2312-
matchBraces ((tok, lexbuf.LexemeRange) :: stack)
2313+
| LPAREN
2314+
| LBRACE _
2315+
| LBRACK
2316+
| LBRACE_BAR
2317+
| LBRACK_BAR
2318+
| LQUOTE _
2319+
| LBRACK_LESS as tok,
2320+
_ -> matchBraces ((tok, lexbuf.LexemeRange) :: stack)
23132321

23142322
// INTERP_STRING_BEGIN_PART corresponds to $"... {" at the start of an interpolated string
23152323
//
@@ -2318,15 +2326,19 @@ module internal ParseAndCheckFile =
23182326
// interpolation expression)
23192327
//
23202328
// Either way we start a new potential match at the last character
2321-
| INTERP_STRING_BEGIN_PART _ | INTERP_STRING_PART _ as tok, _ ->
2329+
| INTERP_STRING_BEGIN_PART _
2330+
| INTERP_STRING_PART _ as tok,
2331+
_ ->
23222332
let m = lexbuf.LexemeRange
23232333

23242334
let m2 =
23252335
mkFileIndexRange m.FileIndex (mkPos m.End.Line (max (m.End.Column - 1) 0)) m.End
23262336

23272337
matchBraces ((tok, m2) :: stack)
23282338

2329-
| (EOF _ | LEX_FAILURE _), _ -> ()
2339+
| (EOF _
2340+
| LEX_FAILURE _),
2341+
_ -> ()
23302342
| _ -> matchBraces stack
23312343

23322344
matchBraces [])

0 commit comments

Comments
 (0)