declare function foo() {
()
};
declare function bar() {
()
};
()
Delete the () in foo.
Type <foo> -- the </foo> is inserted by autocomplete.
At this point, the declare function in bar gets the identifier syntax highlighting instead of keyword highlighting. NOTE: I don't see this happen if bar contains <bar></bar>, but have seen this happen in other cases (although I don't know what triggers those cases).
Given:
()
infoo
.<foo>
-- the</foo>
is inserted by autocomplete.At this point, the
declare function
inbar
gets the identifier syntax highlighting instead of keyword highlighting. NOTE: I don't see this happen ifbar
contains<bar></bar>
, but have seen this happen in other cases (although I don't know what triggers those cases).