Bug 1185540 - Support YouCompleteMe vim plugin in comm-central. r=mkmelin a=SM CLOSED TREE
authorPhilipp Kewisch <mozilla@kewis.ch>
Mon, 20 Jul 2015 17:31:37 +0200
changeset 23036 4a3dca917204472c1d1bd029a085fe8c745887da
parent 23035 b0a9ac1ed7f0ec7779022b36577f0eb3c1e5b9d1
child 23037 c462becfd6123d063a85a55ff91e8e0366fcc73c
push id1474
push usermbanner@mozilla.com
push dateMon, 21 Sep 2015 17:20:48 +0000
treeherdercomm-beta@3094bab4c31f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, SM
bugs1185540
Bug 1185540 - Support YouCompleteMe vim plugin in comm-central. r=mkmelin a=SM CLOSED TREE
.ycm_extra_conf.py
new file mode 100644
--- /dev/null
+++ b/.ycm_extra_conf.py
@@ -0,0 +1,15 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+import imp, os, sys
+
+old_bytecode = sys.dont_write_bytecode
+sys.dont_write_bytecode = True
+
+ycm_module = imp.load_source("_ycm_extra_conf", os.path.join("mozilla", ".ycm_extra_conf.py"))
+
+sys.dont_write_bytecode = old_bytecode
+
+# Expose the FlagsForFile function from mozilla/.ycm_extra_conf.py
+FlagsForFile = ycm_module.FlagsForFile