jekyll-highlight 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea61e69200183a55b09ae6c6813f07cb9c32c9e5
4
- data.tar.gz: db03e4f78a8f62139e12522251f83e9143048b5b
3
+ metadata.gz: 0f3ae31657ba202f452f0e6b665a375e044ce2e5
4
+ data.tar.gz: 0f7f56bbff4fdf6f0f3a6f8bbd0e6af34c25d5a8
5
5
  SHA512:
6
- metadata.gz: 7d7e78c7e99f45b7ff6d860a11437d6b82d626cb7aad8ea28dc8d18dd9df231505ba3fadba7c4f644313d570bbc747ef8877958487a6af751d126e6f2f6ebcd4
7
- data.tar.gz: 72198773368704bb3369bbbb1f243b4462648107be70976c9942e19133462a3cd92a297d09eebe8526535cfd475bc85ef76e7d154aae72e03ef7e4a15bdb4841
6
+ metadata.gz: cc0507dca6dab255e3a18b14175144a63cfe3aa61e3c05e3e36c314cc52517a311b41fbd20287ac7ff18ed7fb444a0e1c11383817775ecb0c731ef1c940dfc06
7
+ data.tar.gz: c2d61f515d591222543cd89af2ddd72b7dd10ade1b2e0ac56a047240adb2b5f284122461984c88678552479386f4a31ce0625c8b361e7a0c9496eee518fc0b7e
@@ -8,11 +8,11 @@ module Jekyll
8
8
  # forms: name, name=value, or name="<quoted list>"
9
9
  #
10
10
  # <quoted list> is a space-separated list of numbers
11
- SYNTAX = %r{/^([a-zA-Z0-9.+#_-]+)((\s+\w+(=(\w+|"([0-9]+\s)*[0-9]+"))?)*)$/}
11
+ PARAM_SYNTAX = %r{/^([a-zA-Z0-9.+#_-]+)((\s+\w+(=(\w+|"([0-9]+\s)*[0-9]+"))?)*)$/}
12
12
 
13
13
  def initialize(tag_name, markup, tokens)
14
14
  super
15
- unless markup.strip =~ SYNTAX
15
+ unless markup.strip =~ PARAM_SYNTAX
16
16
  return raise SyntaxError, <<-eos
17
17
  Syntax Error in tag 'highlight' while parsing the following markup:
18
18
 
@@ -21,7 +21,6 @@ Syntax Error in tag 'highlight' while parsing the following markup:
21
21
  Valid syntax: highlight <lang> [linenos]
22
22
  eos
23
23
  end
24
- # if markup.strip =~ SYNTAX
25
24
  @lang = Regexp.last_match(1).downcase
26
25
  @highlight_options = parse_options(Regexp.last_match(2))
27
26
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Highlight
3
- VERSION = "1.0.1".freeze
3
+ VERSION = "1.0.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-highlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torgny Bjers