From 466b7e69e49a5f4bba36b834a2e046f120ece07c Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 2 Oct 2016 12:02:53 +0200 Subject: Move bullet detection from lexer to parser (bug #5102). That way, bullet detection no longer depends on a global variable indicating whether a line is starting. This causes a small change in the recognized language. Before the commit, "--++" was recognized as a bullet "--" followed by a keyword "++" when at the start of a line; now it is always recognized as a keyword "--++". This also fixes a bug in Tok.to_string as a side-effect. --- parsing/tok.mli | 1 - 1 file changed, 1 deletion(-) (limited to 'parsing/tok.mli') diff --git a/parsing/tok.mli b/parsing/tok.mli index b9286c53e..b1e79dc90 100644 --- a/parsing/tok.mli +++ b/parsing/tok.mli @@ -16,7 +16,6 @@ type t = | INT of string | STRING of string | LEFTQMARK - | BULLET of string | EOI val equal : t -> t -> bool -- cgit v1.2.3