 
         it "should tokenize 'Try'", ->
           expect(tokens[0].value).toEqual "try"
-          expect(tokens[0]).toHaveScope "keyword.control.flow.powershell"
+          expect(tokens[0]).toHaveScopes ["keyword.control.flow.powershell"]
 
         it "should tokenize 'Catch'", ->
           expect(tokens[8].value).toEqual "catch"
-          expect(tokens[8]).toHaveScope "keyword.control.flow.powershell"
+          expect(tokens[8]).toHaveScopes ["keyword.control.flow.powershell"]
 
         it "should tokenize 'Finally'", ->
           expect(tokens[16].value).toEqual "finally"
-          expect(tokens[16]).toHaveScope "keyword.control.flow.powershell"
+          expect(tokens[16]).toHaveScopes ["keyword.control.flow.powershell"]
 
     describe "Logical operator keywords", ->
       logicalOperators = [ "-and", "-or", "-xor", "-not", "!"]


      it "should tokenize variable names", ->
        expect(tokens[3].value).toEqual "name"
        expect(tokens[3]).toHaveScope "embedded.variable.other.powershell"

      it "should not tokenize as a variable when leading $ has been escaped", ->
        expect(tokens[4].value).toEqual " `$bob"

      for character in escapedCharacters
        {tokens} = grammar.tokenizeLine character
        expect(tokens[0].value).toEqual character
        expect(tokens[0]).toHaveScopes ["constant.character.escape.powershell"]

  describe "Constants", ->
    describe "Constant values in kilobytes, megabytes, and gigabytes", ->
