Skip to content

Instantly share code, notes, and snippets.

View alex-shamshurin's full-sized avatar

Alexander Shamshurin alex-shamshurin

  • SIT Development
  • Moscow
View GitHub Profile
@alex-shamshurin
alex-shamshurin / easy-tags.diff
Created May 10, 2017 11:56
vim-easy-tag patch fro jsctags
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
old mode 100644
new mode 100755
index d0dec21..43f985d
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -6,7 +6,6 @@
let g:xolox#easytags#version = '3.11'
let g:xolox#easytags#default_pattern_prefix = '\C\<'
let g:xolox#easytags#default_pattern_suffix = '\>'
'use strict';
class Abstract {
// A static abstract method.
static foo() {
if (this === Abstract) {
// Error Type 2. Abstract methods can not be called directly.
throw new TypeError("Can not call static abstract method foo.");
} else if (this.foo === Abstract.foo) {
// Error Type 3. The child has not implemented this method.
throw new TypeError("Please implement static abstract method foo.");