import vx

import os.path

def mode_from_filename(file):
    root, ext = os.path.splitext(file)
    ext = ext if ext else root

    mode = None
    if ext == '.c':
        return c_mode

class mode:
    def __init__(self, window):
        self.breaks = ('_', ' ', '\n')

class python_mode(mode):
    def __init__(self, window):
        super(python_mode, self).__init__(window)

        self.breaks = ('_', ' ', '\n', '(', ')', '{', '}', '.', ',', '#')

        self.keywords = ('return', 'for', 'while', 'break', 'continue', 'def')

class c_mode(mode):
    def __init__(self, window):
        super(c_mode, self).__init__(window)

        self.breaks = ('_', ' ', '\n', '(', ')', '<', '>', '.', ',', '#')

        self.keywords = ('return', 'goto', 'break', 'continue')

@@ -261,16 +261,22 @@
  ', '%5Cn'
+, '%5Ct'
 )%0A%0Aclass
@@ -408,32 +408,38 @@
 ('_', ' ', '%5Cn',
+ '%5Ct',
  '(', ')', '%7B', 
@@ -675,16 +675,22 @@
 ', '%5Cn',
+ '%5Ct',
  '(', ')

Include tabs as breaks in all modes