atom / language-sql

SQL package for Atom
Other
38 stars 50 forks source link

Create additional grammars for catering for the various variants #40

Closed gontadu closed 8 years ago

gontadu commented 8 years ago

It appears that there is enough differentiation between SQL variants such as T-SQL from Microsoft and the MySQL stuff for instance.

As there is functionality for multiple grammars e.g. how c and c++ are catered for by one package.

Would it make sense to add new grammars to this package then. There are two forks currently for each of the languages: MySQL: https://atom.io/packages/language-sql-mysql by @typester T-SQL: https://atom.io/packages/language-tsql by @mattiascibien

Perhaps it would be helpful so that we avoid issues like #28 and we could invite the original developers of this package to make those changes?

mattiascibien commented 8 years ago

I think this is a better idea than having different packages as it will centralize the development.

winstliu commented 8 years ago

Do MySQL and T-SQL have different file extensions, or do they share the same ones as SQL?

mattiascibien commented 8 years ago

@50Wliu as far as I know i guess they have the same extension.

winstliu commented 8 years ago

Then combining the grammars into one repository won't be possible until there is intelligent language detection. Going to close this out for now.

gontadu commented 8 years ago

In the meantime, is it possible to group all the mysql exclusive keywords into a different colour/capture? That way it stays in the code but not in the same colour as the popular common SQL keywords like SELECT, etc.

winstliu commented 8 years ago

Yes, that can be done. The root scope could be changed from .sql to .mysql.