()
| 27 | var jsMode = CodeMirror.getMode(config, 'javascript'); |
| 28 | |
| 29 | function State() { |
| 30 | this.javaScriptLine = false; |
| 31 | this.javaScriptLineExcludesColon = false; |
| 32 | |
| 33 | this.javaScriptArguments = false; |
| 34 | this.javaScriptArgumentsDepth = 0; |
| 35 | |
| 36 | this.isInterpolating = false; |
| 37 | this.interpolationNesting = 0; |
| 38 | |
| 39 | this.jsState = jsMode.startState(); |
| 40 | |
| 41 | this.restOfLine = ''; |
| 42 | |
| 43 | this.isIncludeFiltered = false; |
| 44 | this.isEach = false; |
| 45 | |
| 46 | this.lastTag = ''; |
| 47 | this.scriptType = ''; |
| 48 | |
| 49 | // Attributes Mode |
| 50 | this.isAttrs = false; |
| 51 | this.attrsNest = []; |
| 52 | this.inAttributeName = true; |
| 53 | this.attributeIsType = false; |
| 54 | this.attrValue = ''; |
| 55 | |
| 56 | // Indented Mode |
| 57 | this.indentOf = Infinity; |
| 58 | this.indentToken = ''; |
| 59 | |
| 60 | this.innerMode = null; |
| 61 | this.innerState = null; |
| 62 | |
| 63 | this.innerModeForLine = false; |
| 64 | } |
| 65 | /** |
| 66 | * Safely copy a state |
| 67 | * |
nothing calls this directly
no outgoing calls
no test coverage detected