Merge pull request #5375 from Nicop06/underscore_highlight

Merge pull request 5375
This commit is contained in:
jekyllbot 2016-09-20 17:05:49 -07:00 committed by GitHub
commit 3a7cbadd82
2 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module Jekyll
# forms: name, name=value, or name="<quoted list>"
#
# <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)
super

View File

@ -59,6 +59,7 @@ CONTENT
assert_match r, "xml+cheetah"
assert_match r, "x.y"
assert_match r, "coffee-script"
assert_match r, "shell_session"
refute_match r, "blah^"