angular-ui / AngularJS-Atom

An AngularJS package for Github's Atom editor
https://atom.io/packages/angularjs
MIT License
284 stars 49 forks source link

ng-model-options not colored correctly #58

Closed livelazily closed 8 years ago

livelazily commented 8 years ago

The -options part not colored

screen shot 2016-02-22 at 16 03 49

prezmo commented 8 years ago

There's a little bug in regexp string in file grammars/angularjs.cson in the package. You can easily correct it yourself :). Replace line line 147 with: 'messages|message|model-options|model|mousedown|mouseenter|mouseleave|mousemove|mouseover|mouseup|' + Similar problem with switch-when and switch-default in line 152 you can replace it with: 'selected|show|src|srcset|style|strict-di|submit|switch-when|switch-default|switch|' +

Gabrielmtn commented 8 years ago

awesome fix! I added it, would recommend for a PR