diff options
Diffstat (limited to 'lib/LXRng/Lang/C.pm')
-rw-r--r-- | lib/LXRng/Lang/C.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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+<', '>']; |