Open marcobambini opened 7 years ago
I already have them by using sublime text, but I'll happy to add the file if it can help others, thank you!
Oh did you mean in GH pages?
Yep!
Seems to work in test files, but not in main one. Maybe there is some syntax there not allowed by swift lang?
I am currently using it in my main Gravity repository and everything worked as expected...
If you look at: https://github.com/parro-it/gravity-func/blob/master/gravity-func.gravity it's sadly black & white. But e.g. https://github.com/parro-it/gravity-func/blob/master/test/pipe.gravity has now good syntax highlights... I don't have idea why...
I guess it is the - character in the name that caused the issue...
Uhm, no, I try to rename pipe.gravity to pi-pe.gravity and it still is highlighted
Also, if you look at http://pygments.org/demo/6353109/, the same code is highlighted correctly as swiftr, so it can't be a syntax problem either...
You should add a .gitattributes file with the following content: *.gravity linguist-language=swift
In this way you'll have syntax highlight for the Gravity files.