mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
9204836d705105ce050bdb69691bb346449cf079
If the Ruby on Rails grammar depends on HTML, but it isn't loaded, its syntax highlighting won't include HTMl tokens. If we later load HTML, we should update any buffer with the Rails grammar to reflect the change. This commit changes grammars to memoize their initial rule and repository. If an included grammar is added or removed, we clear the memoized rules and emit a 'grammar-updated' event. Any tokenized buffer that points to this grammar can then retokenize to reflect the newly available/unavailable included grammar.
Atom — Futuristic Text Editing
Check out our documentation on the docs tab.
Building from source
Requirements
- Mountain Lion
- The Setup™ or Boxen
- Xcode (available in the App Store)
Installation
-
gh-setup atom -
cd ~/github/atom && rake install
Description
Languages
JavaScript
88.3%
Less
8.7%
CoffeeScript
2.8%
Shell
0.1%
