sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rouge::Lexers::JSON.analyze_text
TODO: is this too much of a performance hit? JSON is quite simple, so I'd think this wouldn't be too bad, but for large documents this could mean doing two full lexes.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/rouge/lib/rouge/lexers/javascript.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rouge--Lexers--JSON-analyze_text-for-pr
# Commit to gitgit add app/server/ruby/vendor/rouge/lib/rouge/lexers/javascript.rbgit commit -m "better docs for Rouge::Lexers::JSON.analyze_text"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rouge--Lexers--JSON-analyze_text-for-pr
hub pull-request
# Celebrate!