Sublime Forum

SQL syntax highliting and "JOIN"

#1

The SQL syntax highlighting doesn’t understand an unqualified JOIN keyword:

SELECT a FROM foo JOIN bar ON foo.a = bar.b

On most DBMSs, “JOIN” is an alias for “INNER JOIN”.

0 Likes

#2

I’ve made a few changes to the SQL syntax file. Give me a minute and I’ll push to Github for you.

0 Likes

#3

Here are my current changes.

0 Likes

#4

Thanks!

I’ve compared your SQL.tmLanguage with Sublime’s “pristine” one and the only difference is a few added functions, nothing related to the JOIN keyword. Are you sure you uploaded the lastest revision of this file?

0 Likes

#5

Sorry, my test file only used “LEFT JOIN”.

0 Likes