You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By SLexer, 'break(' IS a Name.Function token, but 'break' (without '()') is not.
For highlighting 'break', 'else' etc. -- we exclude him from the key 'keywords' (in r.py):
'keywords': [
(r'(if|for|while|return|switch|function)'
r'(?![\w.])',
Keyword.Reserved),
],
and we specify him on the _first scanned state in 'root':
'root': [
# calls: (r'\b(else|next|break|repeat|in)\b', Name.Function),
(r'(%s)\s*(?=()' % valid_name, Name.Function),
include('statements'),
# blocks:
(r'{|}', Punctuation),
# (r'{', Punctuation, 'block'),
(r'.', Text),
],
Indeed, a very simple solution...
The text was updated successfully, but these errors were encountered:
By SLexer, 'break(' IS a Name.Function token, but 'break' (without '()') is not.
For highlighting 'break', 'else' etc. -- we exclude him from the key 'keywords' (in r.py):
'keywords': [
(r'(if|for|while|return|switch|function)'
r'(?![\w.])',
Keyword.Reserved),
],
and we specify him on the _first scanned state in 'root':
'root': [
# calls:
(r'\b(else|next|break|repeat|in)\b', Name.Function),
(r'(%s)\s*(?=()' % valid_name, Name.Function),
include('statements'),
# blocks:
(r'{|}', Punctuation),
# (r'{', Punctuation, 'block'),
(r'.', Text),
],
Indeed, a very simple solution...
The text was updated successfully, but these errors were encountered: