Skip to content

Commit

Permalink
Support JSX filetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesstelford committed Aug 31, 2017
1 parent c93a212 commit c2f3a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/jspretmpl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function! jspretmpl#applySyntax(filetype, startCondition)
let group = s:tmplSyntaxGroup(a:filetype)
let region = s:tmplSyntaxRegion(a:filetype)
let b:jspre_current_ft = a:filetype
if &ft == 'javascript' || &ft == 'typescript'
if &ft == 'javascript' || &ft == 'typescript' || &ft == 'jsx' || &ft == 'javascript.jsx'
if strlen(a:startCondition)
let regexp_start = a:startCondition
else
Expand Down

0 comments on commit c2f3a84

Please sign in to comment.