From cb948c082a1d383ae7b605f81ba82a0b23a52fe6 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Tue, 21 Jul 2009 16:21:16 -0400 Subject: [PATCH] fixed perl string highlighting bug --HG-- branch : pmacs2 --- mode/perl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode/perl.py b/mode/perl.py index 5610a3d..b2a9c8d 100644 --- a/mode/perl.py +++ b/mode/perl.py @@ -85,9 +85,9 @@ class StrictStringGrammar(Grammar): rules = [ PatternRule('data', r"[^\\']+"), ] class StringGrammar(Grammar): - rules = _make_string_rules('"') + [PatternRule('data', '[^\\"]+')] + rules = _make_string_rules('"') + [PatternRule('data', r'[^\\"]+')] class EvalGrammar(Grammar): - rules = _make_string_rules('`') + [PatternRule('data', '[^\\`]+')] + rules = _make_string_rules('`') + [PatternRule('data', r'[^\\`]+')] class TranslateGrammar1(Grammar): rules = [PatternRule('data', r"(?:\\.|[^\\/])")]