Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bash Scanner#119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
korny wants to merge10 commits intomaster
base:master
Choose a base branch
Loading
frombash-scanner
Open

Bash Scanner#119

korny wants to merge10 commits intomasterfrombash-scanner

Conversation

@korny
Copy link
Member

Work in progress. Lacks tests. Solves#19, might be related to#115.

@ghostghost assignedkornyJun 10, 2013
@wikimatze
Copy link

When will this be merged? I'm using@kou rabbit plugin for presentations and it would be nice to use backticks for highlightning code.

I think that I'm not the only person waiting for this.

@korny
Copy link
MemberAuthor

It cannot be merged because it's broken. It's not my code, it was a contribution. As always, we need test code examples.

Currently, when I run the tests:

$ new=bash.* ruby test/scanners/suite.rbLoaded suite CodeRay::ScannersStarted    >> Testing bash script scanner <<Random test - finished.Loading examples in test/scanners/bash/*.in.sh...4 examples found.              erb_bash    138 B   incremental, shuffled, new test, identity, highlighting, too small.               example  456.5 KiB incremental, shuffled, complete...scanning.../Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+//Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:246: warning: character class has duplicated range: /[^\)\$RubyWrapper\\]+/encoding...Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:shell, :string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :shell].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string, :string].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string, :string].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:string, :shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string, :string].Malformed token stream: Trying to close a token group (:string) that is not open. Open are: [:shell].Malformed token stream: Trying to close a token group (:shell) that is not open. Open are: [:string].EFinished in 5.550383 seconds.  1) Error:test_ALL(Bash):CodeRay::Scanners::Scanner::ScanError: ***ERROR in scanner.rb:333:in `raise_inspect': unknown token kind :bin (text was "&") (after  tokens)tokens:current line: 21  column: 36  pos: 502matched: "&"  state: "Error in CodeRay::Scanners::Bash#scan_tokens, initial state was: :initial"bol?: false,  eos?: falsesurrounding code:"[[ -n \"${current_bundle}\" ]] &"  ~~  "& builtin command -v bundle >/"***ERROR***    /Users/murphy/ruby/coderay/lib/coderay/encoders/debug_lint.rb:22:in `text_token'    /Users/murphy/ruby/coderay/lib/coderay/scanners/bash.rb:257:in `scan_tokens'    /Users/murphy/ruby/coderay/lib/coderay/scanner.rb:190:in `tokenize'    /Users/murphy/ruby/coderay/lib/coderay/encoder.rb:85:in `encode'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:379:in `complete_test'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:280:in `example_test'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:208:in `block (2 levels) in examples_test'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:187:in `each'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:187:in `block in examples_test'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:124:in `block in dir'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:123:in `chdir'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:123:in `dir'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:173:in `examples_test'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:161:in `block in test_ALL'    /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'    /Users/murphy/ruby/coderay/test/scanners/coderay_suite.rb:158:in `test_ALL'1 tests, 0 assertions, 0 failures, 1 errors

@wikimatze
Copy link

Hi@korny is there a way that we can pair on a remote session with vim and tmux to fix that problem? When I run the tests of the original repo on my machine withrake test:units orrake test:functional everything is green. But runningrake test:scanners gives me the following:

Cloning into'test/scanners'...remote: Reusing existing pack: 1037, done.remote: Total 1037 (delta 0), reused 0 (delta 0)Receiving objects: 100% (1037/1037), 10.59 MiB| 888.00 KiB/s, done.Resolving deltas: 100% (483/483), done.Checking connectivity...done/home/wikimatze/.rubies/ruby-2.1.0/bin/ruby test/scanners/suite.rbLoaded suite CodeRay::ScannersStarted>> Skipping testsfor bash, no scanner found <<.>> Testing C scanner <<Randomtest - finished.Loading examplesin test/scanners/c/*.in.c...7 examples found.                 elvis    370 B   incremental, shuffled, complete, identity, highlighting, too small.                 empty      0 B   incremental, -skipped- complete, identity, highlighting, too small.                 error      4 B   incremental, -skipped- complete, identity, highlighting, too small.                error2      3 B   incremental, -skipped- complete, identity, highlighting, too small.           open-string      1 B   incremental, -skipped- complete, identity, highlighting, too small.                  ruby    2.2 MiB incremental, shuffled, complete, identity, highlighting,in kTok/s:  761 scan +  473 encode =  292 both,  364 stream,in kB/s:  2779 /  1330.               strange    3.7 KiB incremental, shuffled, complete, identity, highlighting,in kTok/s:  559 scan +  252 encode =  174 both,  203 stream,in kB/s:  3049 /  1104.Average speedfor C scanner: 2779 kB/s scanning / 1330 kB/s highlighting to HTML page.Finishedin 8.48s.

So you are trying to implement the bash scanner, right?

Kindly regards

Matthias

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@kornykorny

Labels

Projects

None yet

Milestone

1.2

Development

Successfully merging this pull request may close these issues.

3 participants

@korny@wikimatze

[8]ページ先頭

©2009-2025 Movatter.jp