amehat / atom-language-d

plugins and themes for Atom
Other
16 stars 6 forks source link

Grammar issue for bool #3

Closed dchammond closed 9 years ago

dchammond commented 10 years ago

I noticed that bool was not being highlighted, all though most other types were highlighted (void, int, etc...). The fix I found for this was in grammars/d.cson, every time the data types were declared, "boolean" was used instead of "bool". This happens 4 times. Switching the word "boolean" to "bool" allowed "bool" to be highlighted in the same manner as other data types. Below are the "fixed" versions with "boolean" changed to "bool". The first two instances were on lines 733 and 740 (with no wrapping on the code lines)

bool 1-2

and the second two instances were on line 814.

bool 3 bool 4

jameslzhu commented 9 years ago

Fixed in pull request #4.