Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

0.8.7

Update documentation links for Lua/APR binding

0.8.6

Bug fix: Recognize default stylesheet in lxsh.formatters.html.preamble()

0.8.5

Lexer & syntax highlighter for shell script code

0.8.4

Refactor lexer and highlighter initialization (in preparation for ...)

0.8.3

Syntax highlighter for BibTeX source code

0.8.2

BibTeX lexer contributed by Brendan O'Flaherty
I made the following modifications:

 * Case insensitive entry name matching using the ic() function
 * The string literal pattern now includes end of line characters
   because http://en.wikipedia.org/wiki/BibTeX#Examples gave me
   the impression that string literals can span multiple lines

0.8.1

Track line/column numbers in lxsh.lexers.*.gmatch()

0.8

Support for multiple output formats (HTML, LaTeX, RTF)

0.7

Documentation links for LuaSocket, LuaFileSystem & Penlight.

0.6.10

Refactor documentation link handling
The Lua lexer previously always matched expressions like "io.input" as
one identifier. This was a quick and dirty hack to add support for
documentation links in the Lua highlighter. I've decided to keep the
hack because it can save quite a lot of code however this behavior is
now disabled by default and can be enabled with join_identifiers=true
(the Lua highlighter of course enables this behavior by default).

0.6.9

Don't highlight escape sequences in Lua long strings
I've also changed the highlighter definition to use a table with
named fields which makes the definitions more self explanatory
and ready for future expansion :-)

0.6.8

Refactor highlighters to use decorated token stream
The previous implementation applied several text replacement filters
one after the other and they could clash and cause all sorts of
nastyness. It was also difficult to apply escaping correctly and I
hope that this refactoring will make it easier for me to make the
code robust instead of fragile.

0.6.7

Linkify and obfuscate e-mail addresses

0.6.6

Add lexer.find(), lexer.match(), match keywords using LPeg patterns

0.6.5

Separate generic code into lxsh.lexers.* and lxsh.highlighters.*
Thanks to David Manura (@davidm) for the suggestion :-). While separating
the code I also implemented autoloading for everything in the lxsh.*
name space to make the code a bit more pleasant to read and write.

0.6.4

Lua highlighter tests, automatic rockspec generation, and then some

0.6.3

Tests for the lexers and changes for problems found by the tests
Lua lexer:
 * Include vertical tab in white space
 * Match numbers before operators (.1 is a number)

C lexer:
 * Optionally match trailing newline after CPP directives
  * Same goes for single line comments (C++ comments)
 * Match numbers before operators (.1 is a number)

0.6.2

Basic support for Lua interactive prompt highlighting
This should really be a separate mode but that's
complicated so for now this will have to do :-)

0.6.1

Optional style sheet switcher using JavaScript

0.6

Support for external style sheets
Something went wrong with that request. Please try again.