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 ++-- lib/LXRng/Lang/GnuAsm.pm | 4 ++-- lib/LXRng/Lang/Kconfig.pm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') 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+<', '>']; diff --git a/lib/LXRng/Lang/GnuAsm.pm b/lib/LXRng/Lang/GnuAsm.pm index 4ad83d8..a1dcb1b 100644 --- a/lib/LXRng/Lang/GnuAsm.pm +++ b/lib/LXRng/Lang/GnuAsm.pm @@ -95,8 +95,8 @@ sub parsespec { 'atom', '[.][a-z0-9]+', undef, # Directives '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+<', '>', diff --git a/lib/LXRng/Lang/Kconfig.pm b/lib/LXRng/Lang/Kconfig.pm index 4c8df6c..2bc524a 100644 --- a/lib/LXRng/Lang/Kconfig.pm +++ b/lib/LXRng/Lang/Kconfig.pm @@ -58,8 +58,8 @@ sub reserved { sub parsespec { return ['atom', '\\\\.', undef, 'comment', '#', "\$", - 'string', '"(?:[^\\\\]*\\\\.)*[^\\\\]*"', undef, - 'string', "'(?:[^\\\\]*\\\\.)*[^\\\\]*'", undef, + 'string', '"(?:[^\\\\"]*\\\\.)*[^\\\\"]*"', undef, + 'string', "'(?:[^\\\\']*\\\\.)*[^\\\\']*'", undef, 'help', 'help', "^(?=[^ \t\n])", 'include', '^source\s+"', '"']; } -- cgit v1.2.3