https://github.com/cescue/language-autohotkey
![Image](https://github.com/cescue/language-autohotkey/raw/master/sample.png)
These colors are determined by Atom themes, not the syntax package. The syntax package simply identifies constructs of the language, themes handle which of those constructs should be highlighted (and in what color).guest3456 wrote:comments in orange?
normal variables in faded gray?
This is valid criticism, I'll eventually update the screenshot.guest3456 wrote: aString = "Three point one four" is a literal string, with quotes included, since you used = instead of :=
Code: Select all
/* This is a comment
This is a comment */
This is still a comment ....
*/
This is not a comment
gotcha, similar to Vimcescue wrote: These colors are determined by Atom themes, not the syntax package. The syntax package simply identifies constructs of the language, themes handle which of those constructs should be highlighted (and in what color).
Exactly. I'll eventually add some screenshots with different themes to the readme, but I'd like to iron out the kinks before working on the documentation.guest3456 wrote:gotcha, similar to Vimcescue wrote: These colors are determined by Atom themes, not the syntax package. The syntax package simply identifies constructs of the language, themes handle which of those constructs should be highlighted (and in what color).
I think that's only how to change text color for functions. Not changing what in the text gets detected as a functions. The problem is Cescue's syntax highlight code doesn't recognize all valid AutoHotkey functions (and strings, ...) as such. All "RegExMatch" instances in my image above should have the same color, since they're the same language entity. But the colors differ. All three needle strings should also have the same color.joedf wrote:maybe this can help?
http://flight-manual.atom.io/hacking-at ... g-a-theme/
Those do look similar. Will look for some spec on the Atom syntax file and how they differ and then try to port over from Sublime. But troubleshooting regex code for detecting regex code is disorienting.Coco wrote:@cescue: I'm not really familiar w/ Atom's customization. Last I read, Atom chose to emulate Sublime/TextMate language grammar definition(.tmLanguage), the only difference is the storage mechanism which is CSON/JSON for Atom. As reference, you can check out the AutoHotkey package for Sublime which comes with the language file or you can check out my custom language file for Sublime.
Users browsing this forum: No registered users and 13 guests