- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>html</string>
</array>
<key>name</key>
<string>HTML (Angular.js)</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>double curly braces</string>
<key>match</key>
<string>\{\{[^\}\}]+\}\}</string>
<key>name</key>
<string>text.html.angular.expression</string>
</dict>
</array>
<key>scopeName</key>
<string>text.html</string>
<key>uuid</key>
<string>de8141c6-c6a3-4452-8a75-eb0f527dc043</string>
</dict>
</plist>
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?