-
Notifications
You must be signed in to change notification settings - Fork 115
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash Scanner #119
base: master
Are you sure you want to change the base?
Bash Scanner #119
Conversation
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. |
Conflicts: lib/coderay/helpers/file_type.rb
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:
|
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 with 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.rb
Loaded suite CodeRay::Scanners
Started
>> Skipping tests for bash, no scanner found <<
.
>> Testing C scanner <<
Random test - finished.
Loading examples in 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 speed for C scanner: 2779 kB/s scanning / 1330 kB/s highlighting to HTML page.
Finished in 8.48s. So you are trying to implement the bash scanner, right? Kindly regards Matthias |
Work in progress. Lacks tests. Solves #19, might be related to #115.