From a3464e8e24e5c2bf1a824f2e6a581f095e244b7a Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Thu, 5 Aug 2010 10:18:02 +0200 Subject: Fix string termination markup bug. --- lib/LXRng/Lang/C.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/LXRng/Lang/C.pm') diff --git a/lib/LXRng/Lang/C.pm b/lib/LXRng/Lang/C.pm index 892e104..5daa3d3 100644 --- a/lib/LXRng/Lang/C.pm +++ b/lib/LXRng/Lang/C.pm @@ -67,8 +67,8 @@ sub parsespec { return ['atom', '\\\\.', undef, 'comment', '/\*', '\*/', 'comment', '//', "\$", - 'string', '"(?:[^\\\\]*\\\\.)*[^\\\\]*"', undef, - 'string', "'(?:[^\\\\]*\\\\.)*[^\\\\]*'", undef, + 'string', '"(?:[^\\\\"]*\\\\.)*[^\\\\"]*"', undef, + 'string', "'(?:[^\\\\']*\\\\.)*[^\\\\']*'", undef, 'atom', '#\s*(?:ifn?def|define|else|endif|undef)', undef, 'include', '#\s*include\s+"', '"', 'include', '#\s*include\s+<', '>']; -- cgit v1.2.3