Currently we use the emmet modules html-matcher and css-parser to parse html,css,less,scss files to determine whether or not current position is a valid location to expand emmet abbreviation. Cons of this approach are
- The parsers are slow when it comes to large files
- The parsers are not tolerant for incomplete files.
The parsers used in the html and css extensions on the other hand are faster and more accurate