parent
1856f888aa
commit
2078918a3c
|
@ -95,7 +95,11 @@ MacroGrammar.rules.extend(CGrammar.rules)
|
|||
class CTabber2(tab.StackTabber2):
|
||||
open_tokens = {'delimiter': {'{': '}', '(': ')', '[': ']'}}
|
||||
close_tokens = {'delimiter': {'}': '{', ')': '(', ']': '['}}
|
||||
control_tokens = {'c.builtin': {'if': 1, 'else': 1, 'while': 1, 'do': 1, 'for': 1}}
|
||||
# NOTE: we actually need at least two kinds of control tokens:
|
||||
# an if/else class, and a do/for/while class. this is so we can get
|
||||
# indenting support for else working correctly.
|
||||
control_tokens = {'c.builtin': {'if': 1, 'else': 1, 'while': 1,
|
||||
'do': 1, 'for': 1}}
|
||||
end_at_eof = False
|
||||
end_at_tokens = {'delimiter': {';': 1}}
|
||||
nocontinue_tokens = {'delimiter': {';': 1, ',': 1}}
|
||||
|
|
Loading…
Reference in New Issue