Skip to content

Commit c87bb43

Browse files
authored
auto load flow file with comment header (pangloss#911)
* auto load flow file with comment header * shorter regex * don't move the cursor * better regex * very magic
1 parent 8fb55c5 commit c87bb43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ if exists("javascript_plugin_jsdoc")
233233
endif
234234
endif
235235

236-
if exists("javascript_plugin_flow")
236+
if exists("javascript_plugin_flow") || search('\v\C%^\_s*%(//\s*|/\*[ \t\n*]*)\@flow>','nw')
237237
runtime extras/flow.vim
238238
endif
239239

0 commit comments

Comments
 (0)