Skip to content

Commit

Permalink
Typos: replace two occurrences of [#endef] with [#enddef].
Browse files Browse the repository at this point in the history
  • Loading branch information
fpottier committed Aug 22, 2024
1 parent d7c3426 commit c140a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ at the beginning of a line, possibly preceded by some whitespace, and followed
by a valid directive name or by a number:

```ocaml
BLANK* "#" BLANK* ("def"|"endef"|"define"|"undef"
BLANK* "#" BLANK* ("def"|"enddef"|"define"|"undef"
|"if"|"ifdef"|"ifndef"|"else"|"elif"|"endif"
|"include"
|"warning"|"error"
Expand Down
2 changes: 1 addition & 1 deletion src/cppo_lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ and directive e = parse
(* #enddef ends a definition, which (we expect) has been opened by #def.
Because we use the same pair of tokens, namely [DEF] and [ENDEF], for
both kinds of definitions (#define and #def), it is in fact possible to
begin a definition with #define and end it with #endef. We do not
begin a definition with #define and end it with #enddef. We do not
document this fact, and users should not rely on it. *)
| blank* "enddef"
{ blank_until_eol e lexbuf;
Expand Down

0 comments on commit c140a3a

Please sign in to comment.