summaryrefslogtreecommitdiff
path: root/pygments/lexers/actionscript.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/actionscript.py')
-rw-r--r--pygments/lexers/actionscript.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pygments/lexers/actionscript.py b/pygments/lexers/actionscript.py
index 9a33dc18..d15b1338 100644
--- a/pygments/lexers/actionscript.py
+++ b/pygments/lexers/actionscript.py
@@ -11,7 +11,7 @@
import re
-from pygments.lexer import RegexLexer, bygroups, using, this, words
+from pygments.lexer import RegexLexer, bygroups, using, this, words, default
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation
@@ -179,12 +179,14 @@ class ActionScript3Lexer(RegexLexer):
'type': [
(r'(\s*)(:)(\s*)(' + typeidentifier + r'|\*)',
bygroups(Text, Operator, Text, Keyword.Type), '#pop:2'),
- (r'\s*', Text, '#pop:2')
+ (r'\s+', Text, '#pop:2'),
+ default('#pop:2')
],
'defval': [
(r'(=)(\s*)([^(),]+)(\s*)(,?)',
bygroups(Operator, Text, using(this), Text, Operator), '#pop'),
- (r',?', Operator, '#pop')
+ (r',', Operator, '#pop'),
+ default('#pop')
]
}