         'until',
         'while'
       ]
-      lines = grammar.tokenizeLines keywords.join('\n')
+      lines = grammar.tokenizeLines keywords.join '\n'
       for i in [0...lines.length]
-        tokens = lines[i]
-        expect(tokens[0]).toEqual value: keywords[i], scopes: ['source.csound', 'keyword.control.csound']
+        expect(lines[i][0]).toEqual value: keywords[i], scopes: ['source.csound', 'keyword.control.csound']

      tokens = lines[2]
      expect(tokens[0]).toEqual value: 'endin', scopes: ['source.csound', 'meta.instrument-block.csound', 'keyword.other.csound']

    it 'tokenizes preprocessor directives', ->
      preprocessorDirectives = [
        '#else',

        'nchnls_i',
        'sr'
      ]
      lines = grammar.tokenizeLines headerGlobalVariables.join '\n'
      for i in [0...lines.length]
        expect(lines[i][0]).toEqual value: headerGlobalVariables[i], scopes: ['source.csound', 'variable.other.readwrite.global.csound']

    it 'tokenizes quoted strings', ->
      lines = grammar.tokenizeLines '"characters$MACRO."'
