mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
updateNestingIndicator now setup on a setInterval every 30 ms (This is due to timing issues and solves this without being noticable) Only if we have a context for the given tag build up the array If so, reset htmlTagArray and build up the array again This means we stick with the old array if we're in a script or style block (for example) Set the tagString to be the last item in the array If caretLocType is JS, set the tagString to script (This is because CodeMirror doesn't recognise this as a tag) updateNestingIndicator now works by: - checking if we have a cM instance and not in JS, Coffee etc filetypes - gets token information for the very end of the document - detects if it's className is an error or not to determin if the nesting is broken Fix to detecting the code type we're in as without -1, JavaScript is ignored as it's array item 0