Commit 0e3f1bee authored by Wilke Pierre's avatar Wilke Pierre
Browse files

Correction de l'expression régulière pour les commentaires multi-ligne

parent 8a87987a
......@@ -105,11 +105,11 @@ let list_regexp : (regexp * (string -> token option)) list =
fun s -> None);
(Cat(keyword_regexp "/*",
Cat(
Star (Alt (
Cat (Star (Alt (
char_range (List.filter (fun c -> c <> '*') alphabet),
Cat (Star(char_regexp '*'),
plus(char_range (List.filter (fun c -> c <> '/' && c <> '*') alphabet)))
)),
)), Star (char_range ['*'])),
keyword_regexp "*/")),
fun s -> None);
(Cat (char_regexp '\'',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment