Code lines such as
mprintf("%s",'this is a function')
break the line number counting in functions if not properly colorized as textquoted.
Solution could be to detect all quoted strings, with single or double quotes, and .textarea tag add some invisibletextquoted aside the existing (visible) textquoted tag used for colorization, and use only invisibletextquoted for Scilab function detection within buffers, in other words, separate the strings detection from their colorization
Note: when done, the messageBox in proc checkforduplicateorunterminatedfuns must be updated (and the msg files as well)