         'until'
         'while'
       ]
-      lines = grammar.tokenizeLines keywords.join('\n')
+      lines = grammar.tokenizeLines(keywords.join '\n')
       for i in [0...lines.length]
-        expect(lines[i][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'
+        ]
 
     it 'tokenizes goto statements', ->
       keywordsAndOpcodes = [


      tokens = lines[0]
      expect(tokens.length).toBe 15
      expect(tokens[0]).toEqual value: 'instr', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'keyword.function.csound']
      expect(tokens[1]).toEqual value: '/*', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.block.csound', 'punctuation.definition.comment.begin.csound']
      expect(tokens[2]).toEqual value: '*/', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.block.csound', 'punctuation.definition.comment.end.csound']
      expect(tokens[3]).toEqual value: '1', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'entity.name.function.csound']
      expect(tokens[4]).toEqual value: ',', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound']
      expect(tokens[5]).toEqual value: '/*', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.block.csound', 'punctuation.definition.comment.begin.csound']
      expect(tokens[6]).toEqual value: '*/', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.block.csound', 'punctuation.definition.comment.end.csound']
      expect(tokens[7]).toEqual value: 'N_a_M_e_', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'entity.name.function.csound']
      expect(tokens[8]).toEqual value: ',', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound']
      expect(tokens[9]).toEqual value: '/*', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.block.csound', 'punctuation.definition.comment.begin.csound']
      expect(tokens[10]).toEqual value: '*/', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.block.csound', 'punctuation.definition.comment.end.csound']
      expect(tokens[11]).toEqual value: '+', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound']
      expect(tokens[12]).toEqual value: 'Name', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'entity.name.function.csound']
      expect(tokens[13]).toEqual value: '//', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound', 'comment.line.csound', 'punctuation.definition.comment.line.csound']
      expect(tokens[14]).toEqual value: '', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.instrument-declaration.csound']

      tokens = lines[1]
      expect(tokens[0]).toEqual value: 'aLabel', scopes: ['source.csound', 'meta.instrument-block.csound', 'entity.name.label.csound']
      expect(tokens[1]).toEqual value: ':', scopes: ['source.csound', 'meta.instrument-block.csound', 'entity.punctuation.label.csound']

      tokens = lines[2]
      expect(tokens[1]).toEqual value: 'i', scopes: ['source.csound', 'meta.instrument-block.csound', 'storage.type.csound']
      expect(tokens[2]).toEqual value: 'Duration', scopes: ['source.csound', 'meta.instrument-block.csound', 'meta.other.csound']
      expect(tokens[3]).toEqual value: ' ', scopes: ['source.csound', 'meta.instrument-block.csound']
      expect(tokens[4]).toEqual value: '=', scopes: ['source.csound', 'meta.instrument-block.csound', 'keyword.operator.csound']
      expect(tokens[5]).toEqual value: ' ', scopes: ['source.csound', 'meta.instrument-block.csound']
      expect(tokens[6]).toEqual value: 'p3', scopes: ['source.csound', 'meta.instrument-block.csound', 'support.variable.csound']

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

    it 'tokenizes user-defined opcodes', ->
      # The Csound Orchestra grammar relies on the existence of an active text

        '\\345'
        '\\67'
      ]
      lines = grammar.tokenizeLines "\"#{escapedCharacters.join ''}\""
      tokens = lines[0]
      expect(tokens[0]).toEqual value: '"', scopes: [
        'source.csound'
        'string.quoted.csound'
        'punctuation.definition.string.begin.csound'
      ]
      for i in [1...tokens.length - 1]
        expect(tokens[i]).toEqual value: escapedCharacters[i - 1], scopes: [
          'source.csound'
          'string.quoted.csound'
          'constant.character.escape.csound'
        ]
      expect(tokens[tokens.length - 1]).toEqual value: '"', scopes: [
        'source.csound'
        'string.quoted.csound'
        'punctuation.definition.string.end.csound'
      ]

    it 'tokenizes braced strings', ->
      lines = grammar.tokenizeLines '{{characters}}'
      tokens = lines[0]
      expect(tokens[0]).toEqual value: '{{', scopes: [
        'source.csound'
        'string.braced.csound'
      ]
      expect(tokens[1]).toEqual value: 'characters', scopes: [
        'source.csound'
        'string.braced.csound'
      ]
      expect(tokens[2]).toEqual value: '}}', scopes: [
        'source.csound'
        'string.braced.csound'
      ]

    it 'tokenizes keywords', ->
      keywords = [
