Skip auto-complete of XML processing instructions

Fixes #2050
This commit is contained in:
dail8859 2016-07-17 19:51:31 -04:00
parent ace8a4cf58
commit daafd77c51

View File

@ -404,6 +404,9 @@ void AutoCompletion::getCloseTag(char *closeTag, size_t closeTagSize, size_t car
if (tagHead[1] == '/') // "</toto>" will be ignored
return;
if (tagHead[1] == '?') // "<?" (Processing Instructions) will be ignored
return;
if (strncmp(tagHead, "<!--", 4) == 0) // Comments will be ignored
return;