Skip to content

Commit

Permalink
Try to fix syntax highlighting on github
Browse files Browse the repository at this point in the history
github-linguist/linguist#3677
My understanding is that github uses linguist to identify what type of source file.
And there are two problems:
- The syntax highlighter used by linguist when it gets the wrong file type doesn't work with githubs regex engine.
- And Linguist doesn't correctly identify the jsx files as jsx.

I saw this gitattributes fix mentioned, so I'm giving it a try.
  • Loading branch information
scytacki committed Jun 19, 2018
1 parent 52b4f86 commit 6426fef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js linguist-language=JSX

0 comments on commit 6426fef

Please sign in to comment.