def set_syntax(self, syntax):
        shortcuts = {
            'javascript': 'Packages/JavaScript/JavaScript.tmLanguage',
            'python': 'Packages/Python/Python.tmLanguage',
            'css': 'Packages/CSS/CSS.tmLanguage'
        }
        if syntax in shortcuts.keys():
            syntax = shortcuts[syntax]
        self.view.set_syntax_file(syntax)

#
# Settings functions
# (allows us to have differnt settings for different tests - and restore to
# normal afterwards)
#
dataset/ETHPy150Open kizza/Table-of-comments/tests/testcase.py/TestCase.set_syntax/original