wingyplus / language-robot-framework

Robot Framework grammar for Atom Text Editor.
https://atom.io/packages/language-robot-framework
26 stars 17 forks source link

Atom doesn't change grammar when file has .txt extension #28

Open wingyplus opened 8 years ago

wingyplus commented 8 years ago

I will reproduce later

gliviu commented 8 years ago

https://discuss.atom.io/t/how-can-i-selectively-load-a-language-based-on-file-content/32695/1

wingyplus commented 8 years ago

I think I should revert commit https://github.com/wingyplus/language-robot-framework/commit/755f88e395b1a54983ba7dcfaa279fa99f36c8e6 back to fix this bug.

gliviu commented 8 years ago

Also we have to consider top file comments which will break the first line rule. Fully reverting the commit would not help as all .txt files will be considered robot syntax which would upset many users. Since this is not so trivial I would go only for '.robot' extension.

wingyplus commented 8 years ago

@gliviu I found workaround solution by using other plugin like https://atom.io/packages/modeline to set syntax with comment. Maybe it can help you.

gliviu commented 8 years ago

interesting alternative