From e85f937810ba96b1b6fa96257658527c4fa6ec78 Mon Sep 17 00:00:00 2001
From: paladox <paladox@users.noreply.github.com>
Date: Sat, 7 Oct 2017 16:39:27 +0100
Subject: [PATCH] [vim bindings] Disable jsdoc for findWord by doing /* instead
 of /**

This is to prevent the closure compiler from failing with

bazel-out/darwin_x86_64-fastbuild/bin/polygerrit-ui/app/gr-app.js:51233: ERROR - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.
     * @return {Object{from:number, to:number, line: number}} The boundaries of
                      ^
  ProTip: "JSC_TYPE_PARSE_ERROR" or "checkTypes" can be added to the `suppress` attribute of:
  //polygerrit-ui/app:polygerrit_ui_closure_lib
  Alternatively /** @suppress {checkTypes} */ can be added to the source file.

1 error(s), 1 warning(s)
---
 keymap/vim.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keymap/vim.js b/keymap/vim.js
index 18b6d6344..13c39a1ea 100644
--- a/keymap/vim.js
+++ b/keymap/vim.js
@@ -3245,7 +3245,7 @@
       return cur;
     }
 
-    /**
+    /*
      * Returns the boundaries of the next word. If the cursor in the middle of
      * the word, then returns the boundaries of the current word, starting at
      * the cursor. If the cursor is at the start/end of a word, and we are going
-- 
GitLab