diff --git a/mode_perl.py b/mode_perl.py index 1b53bed..b364cdf 100644 --- a/mode_perl.py +++ b/mode_perl.py @@ -89,11 +89,6 @@ class PerlGrammar(Grammar): PatternRule(name=r'function', pattern=r"(?:[a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*(?= *\()"), PatternRule(name=r'class', pattern=r"(?:[a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*(?=->)"), - # nested regions - #RegionRule(name=r'paren', start=r'\(', grammar=None, end=r'\)'), - #RegionRule(name=r'brace', start=r'{', grammar=None, end=r'}'), - #RegionRule(name=r'bracket', start=r'\[', grammar=None, end=r'\]'), - # some basic stuff PatternRule(name=r'delimiter', pattern=r"[,;=\?(){}\[\]]|->|=>|(?>=|<<=|\*\*="), @@ -314,6 +309,7 @@ class PerlCheckSyntax(method.Method): '''Check the syntax of a perl file''' def _execute(self, w, **vargs): app = w.application + app.set_error("Checking Syntax...") cmd = "perl -c -I '%s' '%s'" % (w.mode.perllib, w.buffer.path) (status, output) = commands.getstatusoutput(cmd) if status == 0: