 
     ruleStack = null
     for line, lineNr in lines
-      {tags, ruleStack} = grammar.tokenizeLine(line, ruleStack, lineNr is 0)
+      {tags, ruleStack} = grammar.tokenizeLine line, ruleStack, lineNr is 0
+      # console.log 'tags line '+lineNr + JSON.stringify tags
       # tokenizeLines returns newline tags only sometimes (e.g. at the end of line comments), which has two consequences
       # - We cannot add content tags to get an accurate bufferIx, as newlines will be missing, so we use
       #   characterIndexForPosition, which is only log(bufferText.length) and also avoids CRLF issues.

          bufferIx += tag

    if inIgnoreRange
      ignoredRanges.push [startOfIgnoreRange, bufferIx]

    ignoredRanges



        ignoredScopeIds.push scopeId

    lines = bufferText.split('\n')
    # console.log  JSON.stringify grammar.tokenizeLines bufferText
    ignoredRanges = []
    currentIgnoreRanges = []
    inIgnoreRange = false
