Skip to content

Commit

Permalink
FStar language: add single-line comments (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp authored Dec 15, 2020
1 parent 47a066c commit 5cd3a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
"Fstar": {
"name": "F*",
"quotes": [["\\\"", "\\\""]],
"line_comment": ["//"],
"multi_line_comments": [["(*", "*)"]],
"extensions": ["fst"]
},
Expand Down
5 changes: 3 additions & 2 deletions tests/data/fstar.fst
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
(* 10 lines 3 code 4 comments 3 blanks *)
(* 11 lines 3 code 5 comments 3 blanks *)

module Hello

(* multi
line
comment *)
open FStar.IO
open FStar.IO // uncounted comment

// single line comment
let main = print_string "Hello, F*!\n" (* uncounted comment *)

0 comments on commit 5cd3a38

Please sign in to comment.