subtleGradient / language-javascript-jsx

JavaScript with JSX Bundle for Atom
45 stars 6 forks source link

JSX detected as JS #16

Open prescottprue opened 8 years ago

prescottprue commented 8 years ago

A file that contains JSX and has a .js extension is highlighted as normal Javascript (not with JSX). This has only started happening recently, and was working fine on these types of files until a few days ago.

Maybe something changed within my editor to cause this, but it seems like it is related to how file type/syntax is detected with language-javascript-jsx.

davidhariri commented 8 years ago

+1

qpowell commented 8 years ago

+1

psypersky commented 7 years ago

+1

davecarlson commented 7 years ago

Is it possible to have an option to default to a particular type ? This happens to me also, and I have to keep manually selecting JSX as the filetype

djbingham commented 6 years ago

I currently have the opposite problem, that normal JS files without JSX are being opened as JSX. I'd rather indicate JSX files by using the extension .jsx and have all .js files open as regular JavaScript but I can't find any settings related to file extensions for either language.