ajaxorg/ace — pull request #1093 by gjtorikian (2012-11-10 07:24:11+00:00)
Title: Mode/makefile

Fixes https://github.com/ajaxorg/ace/issues/1024

I'm finding it increasingly difficult to pull in keywords from languages into other highlighters. The only solution I can come up with is is exporting the objects. I did this for Obj-C, too. The problem is that the default value of "identifier" is being incorrectly applied to any alphanumeric configuration. Ideally, the highlighter should just not apply any token; if a second highlighter picks up the set, it would apply the highlights there.

I was going to go down a different path while embedding the Sh rules into the Makefile, so I changed `embedRules` to accept one more argument, append, which inserts new rules to the end of the set rather than the beginning. I think this makes sense in certain scenarios but we can remove it if you disagree (I'm not using it).