Merge pull request #5375 from Nicop06/underscore_highlight
Merge pull request 5375
This commit is contained in:
commit
3a7cbadd82
|
@ -8,7 +8,7 @@ module Jekyll
|
||||||
# forms: name, name=value, or name="<quoted list>"
|
# forms: name, name=value, or name="<quoted list>"
|
||||||
#
|
#
|
||||||
# <quoted list> is a space-separated list of numbers
|
# <quoted list> is a space-separated list of numbers
|
||||||
SYNTAX = %r!^([a-zA-Z0-9.+#-]+)((\s+\w+(=(\w+|"([0-9]+\s)*[0-9]+"))?)*)$!
|
SYNTAX = %r!^([a-zA-Z0-9.+#_-]+)((\s+\w+(=(\w+|"([0-9]+\s)*[0-9]+"))?)*)$!
|
||||||
|
|
||||||
def initialize(tag_name, markup, tokens)
|
def initialize(tag_name, markup, tokens)
|
||||||
super
|
super
|
||||||
|
|
|
@ -59,6 +59,7 @@ CONTENT
|
||||||
assert_match r, "xml+cheetah"
|
assert_match r, "xml+cheetah"
|
||||||
assert_match r, "x.y"
|
assert_match r, "x.y"
|
||||||
assert_match r, "coffee-script"
|
assert_match r, "coffee-script"
|
||||||
|
assert_match r, "shell_session"
|
||||||
|
|
||||||
refute_match r, "blah^"
|
refute_match r, "blah^"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue