bundles/org.eclipse.orion.client.webtools/web/webtools/htmlContentAssist.js
function(node, offset, source) {
			if (node){
				if (node.type === 'tag'){
					var name = node.name ? node.name.toLowerCase() : '';
					if (name === 'script' || name === 'style') {
						if (node.openrange && node.endrange){
							// If we are in the tag itself we are not actually in the script block
							if (offset < node.openrange[1] || offset > node.endrange[0]){
								return false;
							}
						}
						return true;
					}
				}
			}
			return false;
		}
function(node, offset, source) {
			if (node){
				if (node.type === 'tag'){
					var name = node.name ? node.name.toLowerCase() : '';
					if (name === 'script' || name === 'style') {
						if (node.openrange && node.endrange){
							// If we are in the tag itself we are not actually in the script block
							if (offset < node.openrange[1] || offset > node.endrange[0]){
								return false;
							}
						}
						return true;
					}
				}
			}
			return false;
		}
function ( node , offset , source ) { if ( node ) { if ( node . type === 'tag' ) { var name = node . name ? node . name . toLowerCase ( ) : '' ; if ( name === 'script' || name === 'style' ) { if ( node . openrange && node . endrange ) { // If we are in the tag itself we are not actually in the script block if ( offset < node . openrange [ 1 ] || offset > node . endrange [ 0 ] ) { return false ; } } return true ; } } } return false ; }
Returns if the tag block that we are in is a style of script block
@param {Object} node The node
@returns {Boolean} True if the current node context is style or script
@since 10.0
Returns if the tag block that we are in is a style of script block