         ]
 
     it 'tokenizes quoted strings', ->
-      tokens = (grammar.tokenizeLines '"characters$MACRO."')[0]
+      {tokens} = grammar.tokenizeLine '"characters$MACRO."'
       expect(tokens.length).toBe 4
       expect(tokens[0]).toEqual value: '"', scopes: [
         'source.csound'

        '\\T'
      ]
      for opcode in opcodes
        tokens = (grammar.tokenizeLines "#{opcode} \"#{escapeSequences.join ''}\"")[0]
        expect(tokens[0]).toEqual value: opcode, scopes: [
          'source.csound'
          'support.function.csound'

        '\\345'
        '\\67'
      ]
      {tokens} = grammar.tokenizeLine "\"#{escapeSequences.join ''}\""
      for i in [1...tokens.length - 1]
        expect(tokens[i]).toEqual value: escapeSequences[i - 1], scopes: [
          'source.csound'
          'string.quoted.csound'
          'constant.character.escape.csound'
        ]
      {tokens} = grammar.tokenizeLine "{{#{escapeSequences.join ''}}}"
      for i in [1...tokens.length - 1]
        expect(tokens[i]).toEqual value: escapeSequences[i - 1], scopes: [
          'source.csound'
