Pull requests

#113 Merged
Repository
Deleted repository
Branch
default (54368bf5c782)
Repository
birkenfeld/pygments-main pygments-main
Branch
default

more fixes for the Lasso lexer

Author
  1. Eric Knibbe
Reviewers
Description

Some further fixes for issues since revealed by putting the lexer to work on other people's code.

  • marks namespace_using as Keyword.Namespace

  • if no delimiters are found at the start, assume the file starts as L9 unless the first character is a <

  • removed 'requiredelimiters' from LassoHtmlLexer and LassoXmlLexer

  • support for comma-separated public / protected / private / provide method signatures

  • support for colouring signatures in require statements

I've taken out the BOM removal line in hopes that the rest of this pull request will be accepted before version 1.6 comes out.

  • Learn about pull requests

Comments (2)

  1. Eric Knibbe author

    Earlier versions of Lasso would only read files as UTF-8 if they contained a BOM, so most .lasso files from then include one. Originally this lexer used "text = text.lstrip(u'\xef\xbb\xbf\ufeff')" to remove it; can anyone suggest a better method?