   maxTokensPerLine: 100
 
   constructor: ({ @name, @fileTypes, @scopeName, injections, patterns, repository, @foldingStopMarker, firstLineMatch}) ->
-    injections = @parseInjections(injections)
+    injections = new Injections(this, injections)
     @initialRule = new Rule(this, {@scopeName, patterns, injections})
     @repository = {}
     @firstLineRegex = new OnigRegExp(firstLineMatch) if firstLineMatch

  getMaxTokensPerLine: ->
    @maxTokensPerLine

class Rule
  grammar: null
  scopeName: null


    injected = false
    patterns = @getIncludedPatterns(baseGrammar)
    @injections?.getPatterns(ruleStack, patterns)

    scanner = @createScanner(patterns, firstLine, position)
    unless scanner.anchored or injected
