I’m trying to extend HTML.tmLanguage and add some new scopes for a javascript framework. I followed the docs here (docs.sublimetext.info/en/latest/ … xdefs.html) and made the following simple file:
[code]<?xml version="1.0" encoding="UTF-8"?>
fileTypes html name HTML (Angular.js) patterns comment double curly braces match \{\{^\}\}]+\}\} name text.html.angular.expression scopeName text.html uuid de8141c6-c6a3-4452-8a75-eb0f527dc043 [/code]The problem is that unlike other tmLanguage files that extend HTML like HTML (Rails).tmLanguage, when I choose the HTML (Angular.js) file syntax form the status bar, I loose all the default HTML syntax highlighting.
What am I missing here? how one can extend HTML or any other syntax without loosing the default patterns and rules?