- New lexer: go (thanks @hashmal!)
- Clojure bugfix: allow # in keywords and symbols
- Basic prompt support in the shell lexer
- Add CSS3 attributes to CSS/Sass/SCSS lexers
- Bugfix for a crash in the vim lexer
- Another hotfix release for the Sass/SCSS lexers, because I am being dumb
- Hotfix release: fix errors loading the SCSS lexer on some systems.
- Refactor source guessing to return fewer false positives, and
to be better at disambiguating between filename matches (such as
nginx.conf
vs.*.conf
, or*.pl
for both prolog and perl) - Added
Lexer.guesses
which can return multiple or zero results for a guess. - Fix number literals in C#
- New lexers:
- Gherkin (cucumber)
- Prolog (@coffeejunk)
- LLVM (@coffeejunk)
- New lexer: lua (thanks, @nathany!)
- Add extra filetypes that map to Ruby (
Capfile
,Vagrantfile
,*.ru
and*.prawn
) (@nathany) - Bugfix: add demos for ini and toml
- The
thankful_eyes
theme now colorsLiteral.Date
- No more gigantic load list in
lib/rouge.rb
- New lexers:
- puppet
- literate coffeescript
- literate haskell
- ini
- toml (@coffeejunk)
- clojure:
cljs
alias, and make it more visually balanced by usingName
instead ofName.Variable
. - Stop trying to read /etc/bash.bashrc in the specs (@coffeejunk)
- Highlight ClojureScipt files (
*.cljs
) as Clojure (@blom) - README and doc enhancements (plus an actual wiki!) (@robin850)
- Don't open
Regexp
, especially if we're not adding anything to it.
- Python: bugfix for lone quotes in triple-quoted strings
- Ruby: bugfix for
#
in%
-delimited strings
- New lexer: C# (csharp)
- rust: better macro handling
- Python bugfix for "'" and '"' (@garybernhardt)
- New lexer: rust (rust-lang.org)
- Include rouge.gemspec with the built gem
- Update the PHP builtins
- New lexers: io, sed, conf, and nginx
- fixed an error on numbers in the shell lexer
- performance bumps for shell and ruby by prioritizing more common patterns
- (@korny) Future-proofed the regexes in the Perl lexer
rougify
now streams the formatted text to stdout as it's available instead of waiting for the lex to be done.
- Bugfix for tableized line numbers when the code doesn't end with a newline.
- Major performance improvements. 80% running time reduction for some files since v0.2.5 (thanks again @korny!)
- Deprecated
postprocess
for performance reasons - it wasn't that useful in the first place. - The shell lexer should now recognize .bashrc, .profile and friends
- coffeescript: don't yield error tokens for keywords as attributes
- add the
--scope=SELECTOR
option torougify style
- Add the
:line_numbers
option to the HTML formatter to get line numbers! The styling for the line numbers is determined by the theme's styling for'Generic.Lineno'
- Massive performance improvements by reducing calls to
option
and toRegexp#source
(@korny)
- hotfix: ship the demos with the gem.
- Several improvements to the javasript and scheme lexers
- Lexer.demo, with small demos for each lexer
- Rouge.highlight takes a string for the formatter
- Formatter.format delegates to the instance
- sass: Support the @extend syntax, fix new-style attributes, and support 3.2 placeholder syntax
- Fixed several postprocessing-related bugs
- New lexers: coffeescript, sass, smalltalk, handlebars/mustache
- In terminal256, stop highlighting backgrounds of text-like tokens
- Fix a bug which was breaking guessing with filenames beginning with .
- Fix the require path for redcarpet in the README (@JustinCampbell)
- New lexers: clojure, groovy, sass, scss
- YAML: detect files with the %YAML directive
- Fail fast for non-UTF-8 strings
- Formatter#render deprecated, renamed to Formatter#format. To be removed in v0.3.
- Lexer#tag delegates to the class
- Better keyword/builtin highlighting for CSS
- Add the
:token
option to the text lexer
- Began the changelog
- Removed several unused methods and features from Lexer and RegexLexer
- Added a lexer for SQL
- Added a lexer for VimL, along with
rake builtins:vim
- Added documentation for RegexLexer, TextAnalyzer, and the formatters
- Refactored
rake phpbuiltins
- renamed torake builtins:php
- Fixed a major bug in the Ruby lexer that prevented highlighting the
module
keyword. - Changed the default formatter for the
rougify
executable toterminal256
. - Implemented
rougify list
, and added short descriptions to all of the lexers. - Fixed a bug in the C lexer that was yielding error tokens in case statements.