From 27e8836893974434ff4f54273a3b59b4ce86f74c Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Fri, 4 May 2012 14:53:56 +0200 Subject: fix buggy indentation in documentation (issue #23) --- lib/coderay.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/coderay.rb b/lib/coderay.rb index 876d770..88c7cc2 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -78,12 +78,12 @@ # Read this to get a general view what CodeRay provides. # # == Scanning -# -# Scanning means analysing an input string, splitting it up into Tokens. -# Each Token knows about what type it is: string, comment, class name, etc. +# +# Scanning means analysing an input string, splitting it up into Tokens. +# Each Token knows about what type it is: string, comment, class name, etc. # -# Each +lang+ (language) has its own Scanner; for example, :ruby code is -# handled by CodeRay::Scanners::Ruby. +# Each +lang+ (language) has its own Scanner; for example, :ruby code is +# handled by CodeRay::Scanners::Ruby. # # CodeRay.scan:: Scan a string in a given language into Tokens. # This is the most common method to use. -- cgit v1.2.1 From 3ebeee9c8a667a796d2940e23c3ef26381f1e2d3 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 19 Jun 2012 16:48:06 +0200 Subject: HTML scanner accepts boolean attributes; fixes issue #26 --- lib/coderay/scanners/html.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb index 98d06fc..733dd6f 100644 --- a/lib/coderay/scanners/html.rb +++ b/lib/coderay/scanners/html.rb @@ -149,12 +149,9 @@ module Scanners if match = scan(/=/) #/ encoder.text_token match, :operator state = :attribute_value - elsif scan(/#{ATTR_NAME}/o) || scan(/#{TAG_END}/o) - state = :attribute - next else - encoder.text_token getch, :error state = :attribute + next end when :attribute_value -- cgit v1.2.1 From ef4dbe053349ba0a52b8396d4f494c23119cb39e Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Thu, 21 Jun 2012 19:44:34 +0200 Subject: replace LGPL license with MIT [GH-25] --- lib/coderay/helpers/word_list.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') diff --git a/lib/coderay/helpers/word_list.rb b/lib/coderay/helpers/word_list.rb index ea969c3..4a42c4a 100644 --- a/lib/coderay/helpers/word_list.rb +++ b/lib/coderay/helpers/word_list.rb @@ -4,11 +4,6 @@ module CodeRay # # A Hash subclass designed for mapping word lists to token types. # - # Copyright (c) 2006-2011 by murphy (Kornelius Kalnbach) - # - # License:: LGPL / ask the author - # Version:: 2.0 (2011-05-08) - # # A WordList is a Hash with some additional features. # It is intended to be used for keyword recognition. # -- cgit v1.2.1