Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!LBL-RTSG.ARPA!vern%lbl-pistachio From: vern%lbl-pistachio@LBL-RTSG.ARPA (Vern Paxson) Newsgroups: comp.sources.bugs Subject: Re: flex escape sequences Message-ID: <8805052140.AA01897@lbl-pistachio> Date: 5 May 88 21:40:10 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 27 Greg Lee mentioned a bug regarding "\^" not correctly matching a caret in the input. This is due to a throw-back to the dark ages, and the fix follows. Vern RCS/scan.l,v --> stdout revision 1.3 *** scan.l Thu May 5 14:32:53 1988 --- /tmp/da1563 Thu May 5 14:36:11 1988 *************** *** 48,54 **** SCNAME {NAME} ! ESCSEQ \\([^\n]|0[0-9]{1,3}) %% static int bracelevel, didadef; --- 48,54 ---- SCNAME {NAME} ! ESCSEQ \\([^^\n]|"^".|0[0-9]{1,3}) %% static int bracelevel, didadef;