components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/js/source-editor/completion-engine.js
/**
             * Add "end" keyword after checking for end of partition
             *
             * @private
             * @param {string[]} regexResults Array of groups from the regex execution of the query
             */
Add "end" keyword after checking for end of partition
@private
@param {string[]} regexResults Array of groups from the regex execution of the query
Add " end " keyword after checking for end of partition @private @param { string [] } regexResults Array of groups from the regex execution of the query
function handleEndOfPartitionCheck(regexResults) {
                if (isInsidePartition(regexResults.input)) {
                    addCompletions({caption: "end", value: "\nend;"});
                }
            }
function handleEndOfPartitionCheck ( regexResults ) { if ( isInsidePartition ( regexResults . input ) ) { addCompletions ( { caption : "end" , value : "\nend;" } ) ; } }
Add "end" keyword after checking for end of partition
 @private
 @param {string[]} regexResults Array of groups from the regex execution of the query
Add " end " keyword after checking for end of partition @private @param { string [] } regexResults Array of groups from the regex execution of the query