Skip to content

Commit

Permalink
keyword support for "try", "with", "finally". Fix #487
Browse files Browse the repository at this point in the history
  • Loading branch information
jindraivanek committed Sep 27, 2019
1 parent f889802 commit e4b2320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fantomas/TokenParser.fs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ let getTriviaFromTokens config (tokens: Token list) linesCount =
fromTokens @ newLines
|> List.sortBy (fun t -> t.Range.StartLine, t.Range.StartColumn)

let private tokenNames = ["LBRACE";"RBRACE"; "LPAREN";"RPAREN"; "LBRACK"; "RBRACK"; "BAR_LBRACK"; "BAR_RBRACK"; "EQUALS"; "IF"; "THEN"; "ELSE"; "BAR";"RARROW"]
let private tokenNames = ["LBRACE";"RBRACE"; "LPAREN";"RPAREN"; "LBRACK"; "RBRACK"; "BAR_LBRACK"; "BAR_RBRACK"; "EQUALS"; "IF"; "THEN"; "ELSE"; "BAR"; "RARROW"; "TRY"; "FINALLY"; "WITH"]
let private tokenKinds = [FSharpTokenCharKind.Operator]

let getTriviaNodesFromTokens (tokens: Token list) : TriviaNode list =
Expand Down

0 comments on commit e4b2320

Please sign in to comment.