diff options
author | Alex Gilding <alex.gilding@talktalk.net> | 2013-05-03 20:35:05 +0100 |
---|---|---|
committer | Alex Gilding <alex.gilding@talktalk.net> | 2013-05-03 20:35:05 +0100 |
commit | 392a48daf85bd2f47e834dfddeb9233a0f6fa2af (patch) | |
tree | 5eb57001314f88312752b566e5ee7954eb63ed9a | |
parent | 71516a4003f0a215447c2605af4c05f3dfa7e26e (diff) | |
download | pygments-392a48daf85bd2f47e834dfddeb9233a0f6fa2af.tar.gz |
added test.bb (corrections)
-rw-r--r-- | pygments/lexers/compiled.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 38dd3d5f..9a89f935 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -2647,9 +2647,9 @@ class BlitzBasicLexer(RegexLexer): 'First|Last|Before|After)\b') bb_sktypes = r'@{1,2}|[#$%]' bb_name = r'[a-z][a-z0-9_]*' - bb_var = (r'(%s)(?:([ \t]*)(%s)|([ \t]*)(\.)([ \t]*)(?:(%s)))') % \ + bb_var = (r'(%s)(?:([ \t]*)(%s)|([ \t]*)([.])([ \t]*)(?:(%s)))') % \ (bb_name, bb_sktypes, bb_name) - bb_func = bb_var + r'?((?:[ \t])([(])' + bb_func = bb_var + r'?(?:[ \t]*)(\()' flags = re.MULTILINE | re.IGNORECASE tokens = { @@ -2672,21 +2672,19 @@ class BlitzBasicLexer(RegexLexer): (r'[(),.:\[\]\\]', Punctuation), (r'(?:\.[\w \t]*)', Name.Label), # Identifiers - (r'\b(New)\b([ \t]?)([(]?)(%s)' % (bb_name), - bygroups(Keyword.Reserved, Text, Punctuation, Name.Class)), - (bb_func, bygroups(Name.Function, Text, Keyword.Type, - Operator, Text, Punctuation, Text, - Keyword.Type, Name.Class, Text, - Keyword.Type, Text, Punctuation)), - (bb_var, bygroups(Name.Variable, Text, Keyword.Type, Operator, - Text, Punctuation, Text, Keyword.Type, - Name.Class, Text, Keyword.Type)), + (r'\b(New)\b([ \t]?)(%s)' % (bb_name), + bygroups(Keyword.Reserved, Text, Name.Class)), + (bb_func, bygroups(Name.Function, Text, Keyword.Type, + Text, Punctuation, Text, Name.Class, + Punctuation)), + (bb_var, bygroups(Name.Variable, Text, Keyword.Type, + Text, Punctuation, Text, Name.Class)), (r'\b(Type)([ \t]+)(%s)' % (bb_name), bygroups(Keyword.Reserved, Text, Name.Class)), # Keywords (r'\b(Pi|True|False|Null)\b', Keyword.Constant), (r'\b(Local|Global|Const|Field)\b', Keyword.Declaration), - (r'End|Return|Exit' + (r'\b(End|Return|Exit' r'Chr|Len|Asc|' r'New|Delete|Insert|' r'Include|' |