#NEWLINE# def normalize_multiline_comment( view , region ) : #NEWLINE# #INDENT# '\n    This is needed since in some languages it seems\n    the boundaries for proper block-comments\n    and chained single-line comments differ. The\n    chaines single-line comments have the last point\n    ( .end() .b etc) of their region set to the subsequent line,\n    while the block comments have it set to the last char\n    of their last line.\n\n    Example where the @ char signifies\n    the last endpoint:\n\n    BLOCK COMMENT\n\n    /**\n     * This is an example comment\n     */@ <---\n    function foobar() {\n\n    MULTIPLE SINGLE COMMENTS\n\n    //\n    // This is an example comment\n    //\n    @function foobar() { <---\n\n    What we do to fix this is not to use the boundaries\n    for the regions, but instead use the last line\n    for the region - which seems to have the correct end\n    point set.\n    ' #NEWLINE# lines = view . lines ( region ) #NEWLINE# last_line = lines [ ( - 1 ) ] #NEWLINE# last_point = last_line . b #NEWLINE# return Region ( region . a , view )