FStar language: add single-line comments (#670)

This commit is contained in:
Lucas Franceschino 2020-12-15 22:10:48 +01:00 committed by GitHub
parent 47a066cc00
commit 5cd3a38392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -387,6 +387,7 @@
"Fstar": {
"name": "F*",
"quotes": [["\\\"", "\\\""]],
"line_comment": ["//"],
"multi_line_comments": [["(*", "*)"]],
"extensions": ["fst"]
},

View file

@ -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 *)