diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 19:42:33 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 19:42:33 +0100 | 
| commit | e4f906d9a543dfb3520eebe6806eac2ff38c4388 (patch) | |
| tree | f850c02f742fd36ada1dab9e90c11f0e7616bf1d | |
| parent | 8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec (diff) | |
| download | vim-polyglot-e4f906d9a543dfb3520eebe6806eac2ff38c4388.tar.gz vim-polyglot-e4f906d9a543dfb3520eebe6806eac2ff38c4388.zip | |
Fix specs
Diffstat (limited to '')
| -rw-r--r-- | spec/build_spec.rb | 8 | ||||
| -rwxr-xr-x | spec/spec_helper.rb | 4 | ||||
| -rw-r--r-- | syntax/pug.vim | 4 | 
3 files changed, 6 insertions, 10 deletions
| diff --git a/spec/build_spec.rb b/spec/build_spec.rb deleted file mode 100644 index 9bdc5c48..00000000 --- a/spec/build_spec.rb +++ /dev/null @@ -1,8 +0,0 @@ -$plugin_path = File.expand_path('../..', __FILE__) - -describe 'build script' do -  it 'should run and return success code' do -    Dir.chdir($plugin_path) -    expect(system('bash ./build')).to be_true -  end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 938a9a7f..06abca1a 100755 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,6 +8,10 @@ Vimrunner::RSpec.configure do |config|    # instance per test (slower, but can be easier to manage).    config.reuse_server = !ENV['REUSE_SERVER'].nil? +  if Gem::Platform.local.os == "darwin" +    config.reuse_server = true +  end +    # Decide how to start a Vim instance. In this block, an instance should be    # spawned and set up with anything project-specific.    config.start_vim do diff --git a/syntax/pug.vim b/syntax/pug.vim index 49ed6da4..509d62a1 100644 --- a/syntax/pug.vim +++ b/syntax/pug.vim @@ -73,8 +73,8 @@ syn region  pugPlainFilter matchgroup=pugFilter start="^\z(\s*\):\%(sass\|less\|  syn match  pugScriptConditional "^\s*\<\%(if\|else\|else if\|elif\|unless\|while\|until\|case\|when\|default\)\>[?!]\@!"  syn match  pugScriptStatement "^\s*\<\%(each\|for\|block\|prepend\|append\|mixin\|extends\|include\)\>[?!]\@!" -syn region  pugScriptLoopRegion start="^\s*\(for \)" end="$" contains=pugScriptLoopKeywords -syn keyword  pugScriptLoopKeywords for in +syn region  pugScriptLoopRegion start="^\s*\(for\|each\)" end="$" contains=pugScriptLoopKeywords +syn keyword  pugScriptLoopKeywords contained for each in  syn region  pugJavascript start="^\z(\s*\)script\%(:\w\+\)\=" end="^\%(\z1\s\|\s*$\)\@!" contains=@htmlJavascript,pugJavascriptTag,pugCoffeescriptFilter keepend  syn region javascriptInterpolation start=/${/ end=/}/ contained | 
