You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letprivatetokenizeLines(sourceTokenizer:FSharpSourceTokenizer)allLines state =
allLines
|> List.mapi (fun index line -> line,(index +1))// line number is needed in tokenizeLine|> List.fold (fun(state,tokens)(line,lineNumber)->lettokenizer= sourceTokenizer.CreateLineTokenizer(line)letnextState,tokensOfLine =
tokenizeLine tokenizer allLines state lineNumber []letallTokens= List.append tokens (List.rev tokensOfLine)// tokens of line are add in reversed order(nextState, allTokens))(state,[])// empty tokens to start with|> snd // ignore the state
Result
letprivatetokenizeLines(sourceTokenizer:FSharpSourceTokenizer)allLines state =
allLines
|> List.mapi (fun index line -> line,(index +1))// line number is needed in tokenizeLine|> List.fold (fun(state,tokens)(line,lineNumber)->lettokenizer=
sourceTokenizer.CreateLineTokenizer(line)letnextState,tokensOfLine =
tokenizeLine tokenizer allLines state lineNumber []letallTokens=
List.append tokens (List.rev tokensOfLine)// tokens of line are add in reversed order(nextState, allTokens))// tokens of line are add in reversed order(state,[])// empty tokens to start with|> snd // ignore the state
Problem description
Similar to #1082, the scope of RParen token should be smaller.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Options
Fantomas Master at 9/4/2020
Default Fantomas configuration
The text was updated successfully, but these errors were encountered:
nojaf
added a commit
to nojaf/fantomas
that referenced
this issue
Sep 4, 2020
Issue created from fantomas-online
Code
Result
Problem description
Similar to #1082, the scope of RParen token should be smaller.
Extra information
Options
Fantomas Master at 9/4/2020
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: