package ocamlformat-lib
Auto-formatter for OCaml code
Install
Dune Dependency
github.com
Readme
Changelog
MIT; LGPL-2.1-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (5)
Authors
Maintainers
Sources
ocamlformat-0.25.1.tbz
sha256=dc8f2a330ca3930b36cacb2623bb360ed8bdf6e4a8acd293dbd9e2241a6fd33d
sha512=b28f545425fb5375447c90022d065dc7fd51ed2f66d8c1f65a71a6ad2465d039a8686e8f18249e5ad3a2362fee6149c855ef30eb45fb9d06d743a53d26b3e26f
doc/src/ocamlformat-lib.odoc_parser/parse_error.ml.html
Source file parse_error.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
let capitalize_ascii = Astring.String.Ascii.capitalize let bad_markup : ?suggestion:string -> string -> Loc.span -> Warning.t = fun ?suggestion -> Warning.make ?suggestion "'%s': bad markup." let leading_zero_in_heading_level : string -> Loc.span -> Warning.t = Warning.make "'%s': leading zero in heading level." let should_not_be_empty : what:string -> Loc.span -> Warning.t = fun ~what -> Warning.make "%s should not be empty." (capitalize_ascii what) let markup_should_not_be_used : what:string -> Loc.span -> Warning.t = fun ~what -> Warning.make "%s should not be used because it has no effect." (capitalize_ascii what) let should_begin_on_its_own_line : what:string -> Loc.span -> Warning.t = fun ~what -> Warning.make "%s should begin on its own line." (capitalize_ascii what) let should_be_followed_by_whitespace : what:string -> Loc.span -> Warning.t = fun ~what -> Warning.make "%s should be followed by space, a tab, or a new line." (capitalize_ascii what) let not_allowed : ?suggestion:string -> what:string -> in_what:string -> Loc.span -> Warning.t = fun ?suggestion ~what ~in_what -> Warning.make ?suggestion "%s is not allowed in %s." (capitalize_ascii what) in_what let no_leading_whitespace_in_verbatim : Loc.span -> Warning.t = Warning.make "'{v' should be followed by whitespace." let no_trailing_whitespace_in_verbatim : Loc.span -> Warning.t = Warning.make "'v}' should be preceded by whitespace." let stray_at : Loc.span -> Warning.t = Warning.make "Stray '@'." let stray_cr : Loc.span -> Warning.t = Warning.make "Stray '\\r' (carriage return character)." let truncated_before : Loc.span -> Warning.t = Warning.make "'@before' expects version number on the same line." let truncated_param : Loc.span -> Warning.t = Warning.make "'@param' expects parameter name on the same line." let truncated_raise : string -> Loc.span -> Warning.t = Warning.make "'%s' expects exception constructor on the same line." let truncated_see : Loc.span -> Warning.t = Warning.make "'@see' should be followed by <url>, 'file', or \"document title\"." let unknown_tag : string -> Loc.span -> Warning.t = Warning.make "Unknown tag '%s'." let unpaired_right_brace : Loc.span -> Warning.t = Warning.make ~suggestion:"try '\\}'." "Unpaired '}' (end of markup)." let unpaired_right_bracket : Loc.span -> Warning.t = Warning.make ~suggestion:"try '\\]'." "Unpaired ']' (end of code)." let no_language_tag_in_meta : Loc.span -> Warning.t = Warning.make ~suggestion:"try '{[ ... ]}' or '{@ocaml[ ... ]}'." "'{@' should be followed by a language tag." let language_tag_invalid_char lang_tag : char -> Loc.span -> Warning.t = let suggestion = "try '{@" ^ lang_tag ^ "[ ... ]}'." in Warning.make ~suggestion "Invalid character '%c' in language tag." let truncated_code_block_meta : Loc.span -> Warning.t = Warning.make ~suggestion:"try '{@ocaml[ ... ]}'." "Missing end of code block." let truncated_code_block : Loc.span -> Warning.t = Warning.make ~suggestion:"add ']}'." "Missing end of code block."
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>