Add Julia, Fortran, Pascal.

This commit is contained in:
Rijnard van Tonder 2019-06-05 22:49:03 -04:00 committed by GitHub
parent 7d789a58fe
commit 210bbcc8a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,49 @@ module OCaml = struct
include Matcher.Make(Syntax)
end
(** Follow Free Pascal that allows nested comments, although Rosetta takes the opposite view. *)
module Pascal = struct
module Syntax = struct
open Types
include Generic.Syntax
let comments =
[ Nested_multiline ("(*", "*)")
; Nested_multiline ("{", "}")
; Until_newline "//"
]
end
include Matcher.Make(Syntax)
end
module Julia = struct
module Syntax = struct
open Types
include Generic.Syntax
let comments =
[ Nested_multiline ("#=", "=#")
; Until_newline "#"
]
end
include Matcher.Make(Syntax)
end
module Fortran = struct
module Syntax = struct
open Types
include Generic.Syntax
let comments =
[ Until_newline "!"
]
end
include Matcher.Make(Syntax)
end
module Haskell = struct
module Syntax = struct
open Types