fix bug with :: in scala-mode

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2010-12-09 13:14:36 -05:00
parent 6e02ce8b4d
commit ebbbd8d819
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ class ScalaGrammar(Grammar):
RegionRule('scala.comment', r'/\*', NestedCommentGrammar, r'\*/'),
RegionRule('scala.script', r'#!.+$', ShGrammar, r'!#'),
PatternMatchRule('x', r'(:)([a-zA-Z0-9_]+)',
PatternMatchRule('x', r'(?<!:)(:)([a-zA-Z0-9_]+)',
'delimiter', 'scala.type'),
PatternMatchRule('x', r'(:)( +)([a-zA-Z0-9_]+)',
PatternMatchRule('x', r'(?<!:)(:)( +)([a-zA-Z0-9_]+)',
'delimiter', 'spaces', 'scala.type'),
#PatternMatchRule('x', r'(?<=[a-zA-Z0-9_ ])(:)([a-zA-Z0-9_]+)',
# 'delimiter', 'scala.type'),